Package org.forgerock.oauth.clients.oidc
Class OpenIDConnectClientConfiguration
- java.lang.Object
-
- org.forgerock.oauth.OAuthClientConfiguration
-
- org.forgerock.oauth.clients.oauth2.OAuth2ClientConfiguration
-
- org.forgerock.oauth.clients.oidc.OpenIDConnectClientConfiguration
-
public class OpenIDConnectClientConfiguration extends OAuth2ClientConfiguration
Configuration used for OpenID Connect Client Implementations.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OpenIDConnectClientConfiguration.Builder<T extends OpenIDConnectClientConfiguration.Builder<T,C>,C extends OAuth2ClientConfiguration>
Builder class for creating the OpenIDConnectClientConfiguration.
-
Field Summary
-
Fields inherited from class org.forgerock.oauth.OAuthClientConfiguration
PROVIDER
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
OpenIDConnectClientConfiguration(OpenIDConnectClientConfiguration.Builder<?,?> builder)
Creates an OpenIDConnectClientConfiguration instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<?>
getClientClass()
Gets the class name of the client implementation consuming theOpenIDConnectClientConfiguration
.String
getIssuer()
Gets the issuer.URI
getJwkSetEndpoint()
Gets jwk set endpoint used to configure theOpenIdResolverService
.String
getKeyAlias()
Gets the key alias used to configure theOpenIdResolverService
.String
getKeystoreLocation()
Gets the keystore location used to configure theOpenIdResolverService
.String
getKeystorePassword()
Gets the keystore password used to configure theOpenIdResolverService
.String
getKeystoreType()
Gets the keystore type used to configure theOpenIdResolverService
.protected Map<String,String>
getOpenIdResolverServiceConfig()
Returns the configuration needed to configureOpenIdResolverService
.URI
getWellKnownEndpoint()
Gets the well-known endpoint.static OpenIDConnectClientConfiguration.Builder<? extends OpenIDConnectClientConfiguration.Builder,OpenIDConnectClientConfiguration>
openIdConnectClientConfiguration()
Creates a new builder for OpenIDConnectClientConfiguration.-
Methods inherited from class org.forgerock.oauth.clients.oauth2.OAuth2ClientConfiguration
getAuthorizationEndpoint, getClientId, getClientSecret, getClientSecretReference, getPkceMethod, getRedirectUri, getScope, getScopeDelimiter, getTokenEndpoint, getUserInfoEndpoint, oauth2ClientConfiguration, usesBasicAuth
-
Methods inherited from class org.forgerock.oauth.OAuthClientConfiguration
getAuthenticationIdKey, getProvider
-
-
-
-
Constructor Detail
-
OpenIDConnectClientConfiguration
protected OpenIDConnectClientConfiguration(OpenIDConnectClientConfiguration.Builder<?,?> builder)
Creates an OpenIDConnectClientConfiguration instance.- Parameters:
builder
- OpenIDConnectClientConfiguration instance builder.
-
-
Method Detail
-
openIdConnectClientConfiguration
public static OpenIDConnectClientConfiguration.Builder<? extends OpenIDConnectClientConfiguration.Builder,OpenIDConnectClientConfiguration> openIdConnectClientConfiguration()
Creates a new builder for OpenIDConnectClientConfiguration.- Returns:
- new OpenIDConnectClientConfiguration builder instance.
-
getClientClass
public Class<?> getClientClass()
Gets the class name of the client implementation consuming theOpenIDConnectClientConfiguration
.- Overrides:
getClientClass
in classOAuth2ClientConfiguration
- Returns:
- the client implementation class name.
-
getWellKnownEndpoint
public URI getWellKnownEndpoint()
Gets the well-known endpoint.- Returns:
- well-known endpoint.
-
getKeyAlias
public String getKeyAlias()
Gets the key alias used to configure theOpenIdResolverService
.- Returns:
- key alias.
-
getJwkSetEndpoint
public URI getJwkSetEndpoint()
Gets jwk set endpoint used to configure theOpenIdResolverService
.- Returns:
- jwkSetEndpoint.
-
getKeystoreLocation
public String getKeystoreLocation()
Gets the keystore location used to configure theOpenIdResolverService
.- Returns:
- keystore location.
-
getKeystorePassword
public String getKeystorePassword()
Gets the keystore password used to configure theOpenIdResolverService
.- Returns:
- keystore password.
-
getKeystoreType
public String getKeystoreType()
Gets the keystore type used to configure theOpenIdResolverService
.- Returns:
- keystore type.
-
getIssuer
public String getIssuer()
Gets the issuer.- Returns:
- issuer's name - the OpenID Connect "iss" field.
-
getOpenIdResolverServiceConfig
protected Map<String,String> getOpenIdResolverServiceConfig()
Returns the configuration needed to configureOpenIdResolverService
.- Returns:
Map
of configuration.
-
-