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.
- 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.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
withIssuer(String issuer)
Set the issuer.T
withJwk(String jwkSetEndpoint)
Set the JWK Set URL Endpoint.T
withKeyAlias(String keyAlias)
Set the keyAlias.T
withKeystoreLocation(String keystoreLocation)
Set the keystoreLocation.T
withKeystorePassword(String keystorePassword)
Set the keystorePassword.T
withKeystoreType(String keystoreType)
Set the keystoreType.T
withWellKnownEndpoint(String wellKnownEndpoint)
Set the wellKnownEndpoint.-
Methods inherited from class org.forgerock.oauth.clients.oauth2.OAuth2ClientConfiguration.Builder
withAuthorizationEndpoint, withBasicAuth, withClientId, withClientSecret, withClientSecret, withPkceMethod, withRedirectUri, withScope, withScopeDelimiter, withTokenEndpoint, withUserInfoEndpoint
-
Methods inherited from class org.forgerock.oauth.OAuthClientConfiguration.Builder
build, self, withAuthenticationIdKey, withProvider
-
-
-
-
Constructor Detail
-
Builder
protected Builder(Function<T,C> builder)
Limit visibility.- Parameters:
builder
-OpenIDConnectClientConfiguration
builder
-
-
Method Detail
-
withWellKnownEndpoint
public T withWellKnownEndpoint(String wellKnownEndpoint)
Set the wellKnownEndpoint.- Parameters:
wellKnownEndpoint
- well-known url.- Returns:
- Builder
-
withKeyAlias
public T withKeyAlias(String keyAlias)
Set the keyAlias.- Parameters:
keyAlias
- the name under which the key is stored in the trust store.- Returns:
- Builder
-
withJwk
public T withJwk(String jwkSetEndpoint)
Set the JWK Set URL Endpoint.- Parameters:
jwkSetEndpoint
- the URL of the configuration to use to generate the resolver.- Returns:
- Builder
-
withKeystoreLocation
public T withKeystoreLocation(String keystoreLocation)
Set the keystoreLocation.- Parameters:
keystoreLocation
- the location of the trust store file.- Returns:
- Builder
-
withKeystorePassword
public T withKeystorePassword(String keystorePassword)
Set the keystorePassword.- Parameters:
keystorePassword
- the password to the keystore.- Returns:
- Builder
-
withKeystoreType
public T withKeystoreType(String keystoreType)
Set the keystoreType.- Parameters:
keystoreType
- the type of keystore to which the location param points.- Returns:
- Builder
-
-