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.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description C
build()
Builds an OAuthClientConfiguration instance.protected T
self()
Returns this object, as its actual type.T
withAuthenticationIdKey(String authenticationIdKey)
Set the authenticationIdKey.T
withProvider(String provider)
Sets the provider name.
-
-
-
Method Detail
-
self
protected T self()
Returns this object, as its actual type.- Returns:
- this object.
-
withProvider
public T withProvider(String provider)
Sets the provider name.- Parameters:
provider
- provider name.- Returns:
- Builder
-
withAuthenticationIdKey
public T withAuthenticationIdKey(String authenticationIdKey)
Set the authenticationIdKey.- Parameters:
authenticationIdKey
- the unique authentication id that an authentication server uses to identify a user by.- Returns:
- Builder
-
build
public C build()
Builds an OAuthClientConfiguration instance.- Returns:
- OAuthClientConfiguration.
-
-