public static final class ConnectionSpec.Builder
extends java.lang.Object
ConnectionSpec
.Constructor and Description |
---|
Builder(java.lang.String hostname)
Constructor with parameters for the required properties of
ConnectionSpec . |
Modifier and Type | Method and Description |
---|---|
ConnectionSpec |
build() |
ConnectionSpec.Builder |
setPassword(char[] password)
Password for the specified user.
|
ConnectionSpec.Builder |
setPort(java.lang.Long port)
Port number.
|
ConnectionSpec.Builder |
setSslThumbprint(java.lang.String sslThumbprint)
SHA1 hash of the server SSL certificate.
|
ConnectionSpec.Builder |
setUsername(java.lang.String username)
Username to access the server.
|
public Builder(java.lang.String hostname)
ConnectionSpec
.public ConnectionSpec.Builder setPort(java.lang.Long port)
null
, port 443 will be used.port
- New value for the property.public ConnectionSpec.Builder setSslThumbprint(java.lang.String sslThumbprint)
null
, empty ssl thumbprint is assumed.sslThumbprint
- New value for the property.public ConnectionSpec.Builder setUsername(java.lang.String username)
null
, an error is returned. In
the future, if this property is null
, the system will attempt to
identify the user. If a user cannot be identified, then the requested operation
will fail.username
- New value for the property.public ConnectionSpec.Builder setPassword(char[] password)
null
, an empty password is
assumed. In the future, if this property is null
, the system will
attempt to authenticate the user. If a user cannot be identified, then the
requested operation will fail.password
- New value for the property.public ConnectionSpec build()