public static final class Credentials.Builder
extends java.lang.Object
Credentials.| Constructor and Description |
|---|
Builder(boolean interactiveSession,
Credentials.Type type)
Constructor with parameters for the required properties of
Credentials. |
| Modifier and Type | Method and Description |
|---|---|
Credentials |
build() |
Credentials.Builder |
setPassword(char[] password)
password.
|
Credentials.Builder |
setSamlToken(char[] samlToken)
SAML Bearer Token.
|
Credentials.Builder |
setUserName(java.lang.String userName)
For
Credentials.Type.SAML_BEARER_TOKEN, this
is the guest user to be associated with the credentials. |
public Builder(boolean interactiveSession,
Credentials.Type type)
Credentials.public Credentials.Builder setUserName(java.lang.String userName)
Credentials.Type.SAML_BEARER_TOKEN, this
is the guest user to be associated with the credentials. For Credentials.Type.USERNAME_PASSWORD this is the
guest username. This property was added in vSphere API 7.0.2.0.
If no user is specified for Credentials.Type.SAML_BEARER_TOKEN, a guest
dependent mapping will decide what guest user account is applied.userName - New value for the property.public Credentials.Builder setPassword(char[] password)
getType() is Credentials.Type.USERNAME_PASSWORD.password - New value for the property.public Credentials.Builder setSamlToken(char[] samlToken)
getType() is Credentials.Type.SAML_BEARER_TOKEN.samlToken - New value for the property.public Credentials build()