public static final class ClientCredentialsGrantTokenProvider.Builder extends Object
ClientCredentialsGrantTokenProvider.
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 |
|---|---|
ClientCredentialsGrantTokenProvider |
build()
Builds a new
ClientCredentialsGrantTokenProvider. |
ClientCredentialsGrantTokenProvider.Builder |
clientId(String clientId)
Initializes the value for the
clientId attribute. |
ClientCredentialsGrantTokenProvider.Builder |
clientSecret(String clientSecret)
Initializes the value for the
clientSecret attribute. |
ClientCredentialsGrantTokenProvider.Builder |
from(AbstractUaaTokenProvider instance)
Fill a builder with attribute values from the provided
org.cloudfoundry.reactor.tokenprovider.AbstractUaaTokenProvider instance. |
ClientCredentialsGrantTokenProvider.Builder |
from(ClientCredentialsGrantTokenProvider instance)
Fill a builder with attribute values from the provided
ClientCredentialsGrantTokenProvider instance. |
public final ClientCredentialsGrantTokenProvider.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 ClientCredentialsGrantTokenProvider.Builder from(ClientCredentialsGrantTokenProvider instance)
ClientCredentialsGrantTokenProvider instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ClientCredentialsGrantTokenProvider.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 ClientCredentialsGrantTokenProvider.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 ClientCredentialsGrantTokenProvider build()
ClientCredentialsGrantTokenProvider.IllegalStateException - if any required attributes are missingCopyright © 2017 Pivotal Software, Inc.. All rights reserved.