Package org.forgerock.oauth
Class OAuthClientConfiguration.Builder<T extends OAuthClientConfiguration.Builder<T,C>,C extends OAuthClientConfiguration>
java.lang.Object
org.forgerock.oauth.OAuthClientConfiguration.Builder<T,C>
- Type Parameters:
T
- the type of OAuth client configuration builder to build.C
- the type of OAuth Client Configuration to build.
- Direct Known Subclasses:
OAuth2ClientConfiguration.Builder
- Enclosing class:
- OAuthClientConfiguration
public abstract static class OAuthClientConfiguration.Builder<T extends OAuthClientConfiguration.Builder<T,C>,C extends OAuthClientConfiguration>
extends Object
Base builder used to create OAuthClientConfiguration instances.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds an OAuthClientConfiguration instance.protected T
self()
Returns this object, as its actual type.withAuthenticationIdKey
(String authenticationIdKey) Set the authenticationIdKey.withProvider
(String provider) Sets the provider name.
-
Constructor Details
-
Builder
Creates an OAuthClientConfiguration builder instance.- Parameters:
builder
- OAuthClientConfiguration builder.
-
-
Method Details
-
self
Returns this object, as its actual type.- Returns:
- this object.
-
withProvider
Sets the provider name.- Parameters:
provider
- provider name.- Returns:
- Builder
-
withAuthenticationIdKey
Set the authenticationIdKey.- Parameters:
authenticationIdKey
- the unique authentication id that an authentication server uses to identify a user by.- Returns:
- Builder
-
build
Builds an OAuthClientConfiguration instance.- Returns:
- OAuthClientConfiguration.
-