public static class OidcClientRegistration.Builder
extends java.lang.Object
OidcClientRegistration.| Modifier and Type | Method and Description |
|---|---|
OidcClientRegistration |
build()
Validate the claims and build the
OidcClientRegistration. |
OidcClientRegistration.Builder |
claim(java.lang.String name,
java.lang.Object value)
Sets the claim.
|
OidcClientRegistration.Builder |
claims(java.util.function.Consumer<java.util.Map<java.lang.String,java.lang.Object>> claimsConsumer)
Provides access to every
claim(String, Object) declared so far
allowing the ability to add, replace, or remove. |
OidcClientRegistration.Builder |
clientId(java.lang.String clientId)
Sets the Client Identifier, REQUIRED.
|
OidcClientRegistration.Builder |
clientIdIssuedAt(java.time.Instant clientIdIssuedAt)
Sets the time at which the Client Identifier was issued, OPTIONAL.
|
OidcClientRegistration.Builder |
clientName(java.lang.String clientName)
Sets the name of the Client to be presented to the End-User, OPTIONAL.
|
OidcClientRegistration.Builder |
clientSecret(java.lang.String clientSecret)
Sets the Client Secret, OPTIONAL.
|
OidcClientRegistration.Builder |
clientSecretExpiresAt(java.time.Instant clientSecretExpiresAt)
Sets the time at which the
client_secret will expire or null if it will not expire, REQUIRED if client_secret was issued. |
OidcClientRegistration.Builder |
grantType(java.lang.String grantType)
Add the OAuth 2.0
grant_type that the Client will restrict itself to using, OPTIONAL. |
OidcClientRegistration.Builder |
grantTypes(java.util.function.Consumer<java.util.List<java.lang.String>> grantTypesConsumer)
A
Consumer of the OAuth 2.0 grant_type values that the Client will restrict itself to using,
allowing the ability to add, replace, or remove, OPTIONAL. |
OidcClientRegistration.Builder |
idTokenSignedResponseAlgorithm(java.lang.String idTokenSignedResponseAlgorithm)
Sets the
JWS algorithm required for signing the ID Token issued to the Client, OPTIONAL. |
OidcClientRegistration.Builder |
jwkSetUrl(java.lang.String jwkSetUrl)
Sets the
URL for the Client's JSON Web Key Set, OPTIONAL. |
OidcClientRegistration.Builder |
redirectUri(java.lang.String redirectUri)
Add the redirection
URI used by the Client, REQUIRED. |
OidcClientRegistration.Builder |
redirectUris(java.util.function.Consumer<java.util.List<java.lang.String>> redirectUrisConsumer)
A
Consumer of the redirection URI values used by the Client,
allowing the ability to add, replace, or remove, REQUIRED. |
OidcClientRegistration.Builder |
registrationAccessToken(java.lang.String registrationAccessToken)
Sets the Registration Access Token that can be used at the Client Configuration Endpoint, OPTIONAL.
|
OidcClientRegistration.Builder |
registrationClientUrl(java.lang.String registrationClientUrl)
Sets the
URL of the Client Configuration Endpoint where the Registration Access Token can be used, OPTIONAL. |
OidcClientRegistration.Builder |
responseType(java.lang.String responseType)
Add the OAuth 2.0
response_type that the Client will restrict itself to using, OPTIONAL. |
OidcClientRegistration.Builder |
responseTypes(java.util.function.Consumer<java.util.List<java.lang.String>> responseTypesConsumer)
A
Consumer of the OAuth 2.0 response_type values that the Client will restrict itself to using,
allowing the ability to add, replace, or remove, OPTIONAL. |
OidcClientRegistration.Builder |
scope(java.lang.String scope)
Add the OAuth 2.0
scope that the Client will restrict itself to using, OPTIONAL. |
OidcClientRegistration.Builder |
scopes(java.util.function.Consumer<java.util.List<java.lang.String>> scopesConsumer)
A
Consumer of the OAuth 2.0 scope values that the Client will restrict itself to using,
allowing the ability to add, replace, or remove, OPTIONAL. |
OidcClientRegistration.Builder |
tokenEndpointAuthenticationMethod(java.lang.String tokenEndpointAuthenticationMethod)
Sets the authentication method used by the Client for the Token Endpoint, OPTIONAL.
|
OidcClientRegistration.Builder |
tokenEndpointAuthenticationSigningAlgorithm(java.lang.String authenticationSigningAlgorithm)
Sets the
JWS algorithm that must be used for signing the JWT used to authenticate
the Client at the Token Endpoint for the private_key_jwt and
client_secret_jwt authentication methods, OPTIONAL. |
public OidcClientRegistration.Builder clientId(java.lang.String clientId)
clientId - the Client IdentifierOidcClientRegistration.Builder for further configurationpublic OidcClientRegistration.Builder clientIdIssuedAt(java.time.Instant clientIdIssuedAt)
clientIdIssuedAt - the time at which the Client Identifier was issuedOidcClientRegistration.Builder for further configurationpublic OidcClientRegistration.Builder clientSecret(java.lang.String clientSecret)
clientSecret - the Client SecretOidcClientRegistration.Builder for further configurationpublic OidcClientRegistration.Builder clientSecretExpiresAt(java.time.Instant clientSecretExpiresAt)
client_secret will expire or null if it will not expire, REQUIRED if client_secret was issued.clientSecretExpiresAt - the time at which the client_secret will expire or null if it will not expireOidcClientRegistration.Builder for further configurationpublic OidcClientRegistration.Builder clientName(java.lang.String clientName)
clientName - the name of the Client to be presented to the End-UserOidcClientRegistration.Builder for further configurationpublic OidcClientRegistration.Builder redirectUri(java.lang.String redirectUri)
URI used by the Client, REQUIRED.redirectUri - the redirection URI used by the ClientOidcClientRegistration.Builder for further configurationpublic OidcClientRegistration.Builder redirectUris(java.util.function.Consumer<java.util.List<java.lang.String>> redirectUrisConsumer)
Consumer of the redirection URI values used by the Client,
allowing the ability to add, replace, or remove, REQUIRED.redirectUrisConsumer - a Consumer of the redirection URI values used by the ClientOidcClientRegistration.Builder for further configurationpublic OidcClientRegistration.Builder tokenEndpointAuthenticationMethod(java.lang.String tokenEndpointAuthenticationMethod)
tokenEndpointAuthenticationMethod - the authentication method used by the Client for the Token EndpointOidcClientRegistration.Builder for further configurationpublic OidcClientRegistration.Builder tokenEndpointAuthenticationSigningAlgorithm(java.lang.String authenticationSigningAlgorithm)
JWS algorithm that must be used for signing the JWT used to authenticate
the Client at the Token Endpoint for the private_key_jwt and
client_secret_jwt authentication methods, OPTIONAL.authenticationSigningAlgorithm - the JWS algorithm that must be used for signing the JWT
used to authenticate the Client at the Token EndpointOidcClientRegistration.Builder for further configurationpublic OidcClientRegistration.Builder grantType(java.lang.String grantType)
grant_type that the Client will restrict itself to using, OPTIONAL.grantType - the OAuth 2.0 grant_type that the Client will restrict itself to usingOidcClientRegistration.Builder for further configurationpublic OidcClientRegistration.Builder grantTypes(java.util.function.Consumer<java.util.List<java.lang.String>> grantTypesConsumer)
Consumer of the OAuth 2.0 grant_type values that the Client will restrict itself to using,
allowing the ability to add, replace, or remove, OPTIONAL.grantTypesConsumer - a Consumer of the OAuth 2.0 grant_type values that the Client will restrict itself to usingOidcClientRegistration.Builder for further configurationpublic OidcClientRegistration.Builder responseType(java.lang.String responseType)
response_type that the Client will restrict itself to using, OPTIONAL.responseType - the OAuth 2.0 response_type that the Client will restrict itself to usingOidcClientRegistration.Builder for further configurationpublic OidcClientRegistration.Builder responseTypes(java.util.function.Consumer<java.util.List<java.lang.String>> responseTypesConsumer)
Consumer of the OAuth 2.0 response_type values that the Client will restrict itself to using,
allowing the ability to add, replace, or remove, OPTIONAL.responseTypesConsumer - a Consumer of the OAuth 2.0 response_type values that the Client will restrict itself to usingOidcClientRegistration.Builder for further configurationpublic OidcClientRegistration.Builder scope(java.lang.String scope)
scope that the Client will restrict itself to using, OPTIONAL.scope - the OAuth 2.0 scope that the Client will restrict itself to usingOidcClientRegistration.Builder for further configurationpublic OidcClientRegistration.Builder scopes(java.util.function.Consumer<java.util.List<java.lang.String>> scopesConsumer)
Consumer of the OAuth 2.0 scope values that the Client will restrict itself to using,
allowing the ability to add, replace, or remove, OPTIONAL.scopesConsumer - a Consumer of the OAuth 2.0 scope values that the Client will restrict itself to usingOidcClientRegistration.Builder for further configurationpublic OidcClientRegistration.Builder jwkSetUrl(java.lang.String jwkSetUrl)
URL for the Client's JSON Web Key Set, OPTIONAL.jwkSetUrl - the URL for the Client's JSON Web Key SetOidcClientRegistration.Builder for further configurationpublic OidcClientRegistration.Builder idTokenSignedResponseAlgorithm(java.lang.String idTokenSignedResponseAlgorithm)
JWS algorithm required for signing the ID Token issued to the Client, OPTIONAL.idTokenSignedResponseAlgorithm - the JWS algorithm required for signing the ID Token issued to the ClientOidcClientRegistration.Builder for further configurationpublic OidcClientRegistration.Builder registrationAccessToken(java.lang.String registrationAccessToken)
registrationAccessToken - the Registration Access Token that can be used at the Client Configuration EndpointOidcClientRegistration.Builder for further configurationpublic OidcClientRegistration.Builder registrationClientUrl(java.lang.String registrationClientUrl)
URL of the Client Configuration Endpoint where the Registration Access Token can be used, OPTIONAL.registrationClientUrl - the URL of the Client Configuration Endpoint where the Registration Access Token can be usedOidcClientRegistration.Builder for further configurationpublic OidcClientRegistration.Builder claim(java.lang.String name, java.lang.Object value)
name - the claim namevalue - the claim valueOidcClientRegistration.Builder for further configurationpublic OidcClientRegistration.Builder claims(java.util.function.Consumer<java.util.Map<java.lang.String,java.lang.Object>> claimsConsumer)
claim(String, Object) declared so far
allowing the ability to add, replace, or remove.claimsConsumer - a Consumer of the claimsOidcClientRegistration.Builder for further configurationspublic OidcClientRegistration build()
OidcClientRegistration.
The following claims are REQUIRED:
client_id, redirect_uris.
OidcClientRegistration