public static final class PasswordGrantTokenProvider.Builder extends Object
PasswordGrantTokenProvider.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
PasswordGrantTokenProvider |
build()
Builds a new
PasswordGrantTokenProvider. |
PasswordGrantTokenProvider.Builder |
clientId(String clientId)
Initializes the value for the
clientId attribute. |
PasswordGrantTokenProvider.Builder |
clientSecret(String clientSecret)
Initializes the value for the
clientSecret attribute. |
PasswordGrantTokenProvider.Builder |
from(org.cloudfoundry.reactor.tokenprovider._PasswordGrantTokenProvider instance)
Copy abstract value type
_PasswordGrantTokenProvider instance into builder. |
PasswordGrantTokenProvider.Builder |
from(AbstractUaaTokenProvider instance)
Fill a builder with attribute values from the provided
org.cloudfoundry.reactor.tokenprovider.AbstractUaaTokenProvider instance. |
PasswordGrantTokenProvider.Builder |
from(PasswordGrantTokenProvider instance)
Fill a builder with attribute values from the provided
PasswordGrantTokenProvider instance. |
PasswordGrantTokenProvider.Builder |
identityZoneSubdomain(String identityZoneSubdomain)
Initializes the value for the
identityZoneSubdomain attribute. |
PasswordGrantTokenProvider.Builder |
loginHint(String loginHint)
Initializes the value for the
loginHint attribute. |
PasswordGrantTokenProvider.Builder |
password(String password)
Initializes the value for the
password attribute. |
PasswordGrantTokenProvider.Builder |
username(String username)
Initializes the value for the
username attribute. |
public final PasswordGrantTokenProvider.Builder from(PasswordGrantTokenProvider instance)
PasswordGrantTokenProvider instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final PasswordGrantTokenProvider.Builder from(org.cloudfoundry.reactor.tokenprovider._PasswordGrantTokenProvider instance)
_PasswordGrantTokenProvider instance into builder.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final PasswordGrantTokenProvider.Builder from(AbstractUaaTokenProvider instance)
org.cloudfoundry.reactor.tokenprovider.AbstractUaaTokenProvider instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final PasswordGrantTokenProvider.Builder loginHint(String loginHint)
loginHint attribute.loginHint - The value for loginHint (can be null)this builder for use in a chained invocationpublic final PasswordGrantTokenProvider.Builder password(String password)
password attribute.password - The value for passwordthis builder for use in a chained invocationpublic final PasswordGrantTokenProvider.Builder username(String username)
username attribute.username - The value for usernamethis builder for use in a chained invocationpublic final PasswordGrantTokenProvider.Builder clientId(String clientId)
clientId attribute.
If not set, this attribute will have a default value as returned by the initializer of clientId.
clientId - The value for clientIdthis builder for use in a chained invocationpublic final PasswordGrantTokenProvider.Builder clientSecret(String clientSecret)
clientSecret attribute.
If not set, this attribute will have a default value as returned by the initializer of clientSecret.
clientSecret - The value for clientSecretthis builder for use in a chained invocationpublic final PasswordGrantTokenProvider.Builder identityZoneSubdomain(String identityZoneSubdomain)
identityZoneSubdomain attribute.identityZoneSubdomain - The value for identityZoneSubdomain (can be null)this builder for use in a chained invocationpublic PasswordGrantTokenProvider build()
PasswordGrantTokenProvider.IllegalStateException - if any required attributes are missingCopyright © 2019. All rights reserved.