Package org.forgerock.oauth.clients.oidc
Class OpenIDConnectClientConfiguration.Builder<T extends OpenIDConnectClientConfiguration.Builder<T,C>,C extends OAuth2ClientConfiguration>
java.lang.Object
org.forgerock.oauth.OAuthClientConfiguration.Builder<T,C>
org.forgerock.oauth.clients.oauth2.OAuth2ClientConfiguration.Builder<T,C>
org.forgerock.oauth.clients.oidc.OpenIDConnectClientConfiguration.Builder<T,C>
- Type Parameters:
T
- the type ofOAuthClientConfiguration
builder to build.C
- the type ofOAuthClientConfiguration
to build.
- Direct Known Subclasses:
AppleClientConfiguration.Builder
- Enclosing class:
- OpenIDConnectClientConfiguration
public abstract static class OpenIDConnectClientConfiguration.Builder<T extends OpenIDConnectClientConfiguration.Builder<T,C>,C extends OAuth2ClientConfiguration>
extends OAuth2ClientConfiguration.Builder<T,C>
Builder class for creating the OpenIDConnectClientConfiguration.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionwithAcrValues
(List<String> acrValues) Set the acr values.withClaims
(Claims claims) Sets the request "claims" parameter value.withEncryptedIdTokens
(boolean encryptedIdTokens) Sets whether the client should expect received ID tokens to be encrypted.withIssuer
(String issuer) Set the issuer.Set the JWK Set URL Endpoint.withJwtRequestParameterOption
(JwtRequestParameterOption jwtRequestParameterOption) Set the request parameter jwt option.withKeyAlias
(String keyAlias) Set the keyAlias.withKeystoreLocation
(String keystoreLocation) Set the keystoreLocation.withKeystorePassword
(String keystorePassword) Set the keystorePassword.withKeystoreType
(String keystoreType) Set the keystoreType.withWellKnownEndpoint
(String wellKnownEndpoint) Set the wellKnownEndpoint.Methods inherited from class org.forgerock.oauth.clients.oauth2.OAuth2ClientConfiguration.Builder
withAuthorizationEndpoint, withBasicAuth, withClientAuthenticationFilter, withClientId, withClientSecret, withClientSecret, withIntrospectEndpoint, withPkceMethod, withRedirectUri, withResponseMode, withScope, withScopeDelimiter, withTokenEndpoint, withUserInfoEndpoint
Methods inherited from class org.forgerock.oauth.OAuthClientConfiguration.Builder
build, self, withAuthenticationIdKey, withProvider
-
Constructor Details
-
Builder
Limit visibility.- Parameters:
builder
-OpenIDConnectClientConfiguration
builder
-
-
Method Details
-
withWellKnownEndpoint
Set the wellKnownEndpoint.- Parameters:
wellKnownEndpoint
- well-known url.- Returns:
- Builder
-
withKeyAlias
Set the keyAlias.- Parameters:
keyAlias
- the name under which the key is stored in the trust store.- Returns:
- Builder
-
withJwk
Set the JWK Set URL Endpoint.- Parameters:
jwkSetEndpoint
- the URL of the configuration to use to generate the resolver.- Returns:
- Builder
-
withKeystoreLocation
Set the keystoreLocation.- Parameters:
keystoreLocation
- the location of the trust store file.- Returns:
- Builder
-
withKeystorePassword
Set the keystorePassword.- Parameters:
keystorePassword
- the password to the keystore.- Returns:
- Builder
-
withKeystoreType
Set the keystoreType.- Parameters:
keystoreType
- the type of keystore to which the location param points.- Returns:
- Builder
-
withIssuer
Set the issuer.- Parameters:
issuer
- issuer's name - the OpenID Connect "iss" field.- Returns:
- Builder
-
withAcrValues
Set the acr values.- Parameters:
acrValues
- the acr values.- Returns:
- Builder
-
withEncryptedIdTokens
Sets whether the client should expect received ID tokens to be encrypted.- Parameters:
encryptedIdTokens
- whether the client should expect received ID tokens to be encrypted- Returns:
- Builder
-
withJwtRequestParameterOption
Set the request parameter jwt option.- Parameters:
jwtRequestParameterOption
- the request parameter jwt option.- Returns:
- Builder
-
withClaims
Sets the request "claims" parameter value.- Parameters:
claims
- the request "claims" parameter.- Returns:
- Builder.
-