Class OAuth2ClientConfiguration
java.lang.Object
org.forgerock.oauth.OAuthClientConfiguration
org.forgerock.oauth.clients.oauth2.OAuth2ClientConfiguration
- Direct Known Subclasses:
FacebookClientConfiguration
,LinkedInClientConfiguration
,OpenIDConnectClientConfiguration
Configuration used for OAuth2 Client Implementations.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
OAuth2ClientConfiguration.Builder<T extends OAuth2ClientConfiguration.Builder<T,
C>, C extends OAuth2ClientConfiguration> Builder class for creating the OAuth2ClientConfiguration. -
Field Summary
Fields inherited from class org.forgerock.oauth.OAuthClientConfiguration
PROVIDER
-
Constructor Summary
ConstructorDescriptionOAuth2ClientConfiguration
(OAuth2ClientConfiguration.Builder<?, ?> builder) Creates an OAuth2ClientConfiguration instance. -
Method Summary
Modifier and TypeMethodDescriptionGets the filter that will update the request with authentication information on the request sent to the OAuth provider.Gets endpoint for authentication and authorization of a user.Class<?>
Gets the class name of the client implementation consuming theOAuth2ClientConfiguration
.Gets OAuth 2.0 client identifier.Deprecated.Returns a reference to the client secret.Gets endpoint for OAuth2 token validation.Gets the PKCE transformation method to us when making requests to the authorization endpoint.Gets redirect uri.Retrieves the non-null response mode.getScope()
Gets OAuth scopes being requested.Gets the delimiter used by an auth server to separate scopes.Gets endpoint for requesting access tokens.Gets endpoint for requesting user information.static OAuth2ClientConfiguration.Builder<? extends OAuth2ClientConfiguration.Builder,
OAuth2ClientConfiguration> Creates a new builder for OAuth2ClientConfiguration.Methods inherited from class org.forgerock.oauth.OAuthClientConfiguration
getAuthenticationIdKey, getProvider
-
Constructor Details
-
OAuth2ClientConfiguration
Creates an OAuth2ClientConfiguration instance.- Parameters:
builder
- OAuth2ClientConfiguration instance builder.
-
-
Method Details
-
oauth2ClientConfiguration
public static OAuth2ClientConfiguration.Builder<? extends OAuth2ClientConfiguration.Builder,OAuth2ClientConfiguration> oauth2ClientConfiguration()Creates a new builder for OAuth2ClientConfiguration.- Returns:
- new OAuth2ClientConfiguration builder instance.
-
getClientClass
Gets the class name of the client implementation consuming theOAuth2ClientConfiguration
.- Specified by:
getClientClass
in classOAuthClientConfiguration
- Returns:
- the client implementation class name.
-
getClientId
Gets OAuth 2.0 client identifier.- Returns:
- OAuth 2.0 client identifier.
-
getClientSecret
Deprecated.UsegetClientSecretReference()
instead.Gets OAuth 2.0 client secret.- Returns:
- OAuth 2.0 client secret.
-
getClientSecretReference
Returns a reference to the client secret.- Returns:
- a reference to the current client secret.
-
getAuthorizationEndpoint
Gets endpoint for authentication and authorization of a user.- Returns:
- Endpoint for authentication and authorization of a user.
-
getTokenEndpoint
Gets endpoint for requesting access tokens.- Returns:
- Endpoint for requesting access tokens.
-
getUserInfoEndpoint
Gets endpoint for requesting user information.- Returns:
- Endpoint for requesting user information.
-
getIntrospectEndpoint
Gets endpoint for OAuth2 token validation.- Returns:
- Endpoint for OAuth2 token validation.
-
getRedirectUri
Gets redirect uri.- Returns:
- redirect uri.
-
getScopeDelimiter
Gets the delimiter used by an auth server to separate scopes.- Returns:
- delimiter used to separate scope params.
-
getScope
Gets OAuth scopes being requested.- Returns:
- OAuth scopes being requested.
-
getAuthenticationFilter
Gets the filter that will update the request with authentication information on the request sent to the OAuth provider.- Returns:
- The filter.
-
getPkceMethod
Gets the PKCE transformation method to us when making requests to the authorization endpoint.- Returns:
- the PKCE transformation method.
-
getResponseMode
Retrieves the non-null response mode.- Returns:
- the response mode
-
getClientSecretReference()
instead.