public static class OidcProviderConfiguration.Builder extends AbstractOAuth2AuthorizationServerMetadata.AbstractBuilder<OidcProviderConfiguration,OidcProviderConfiguration.Builder>
OidcProviderConfiguration.| Modifier and Type | Method and Description |
|---|---|
OidcProviderConfiguration |
build()
Validate the claims and build the
OidcProviderConfiguration. |
OidcProviderConfiguration.Builder |
idTokenSigningAlgorithm(java.lang.String signingAlgorithm)
Add this
JWS signing algorithm to the collection of id_token_signing_alg_values_supported
in the resulting OidcProviderConfiguration, REQUIRED. |
OidcProviderConfiguration.Builder |
idTokenSigningAlgorithms(java.util.function.Consumer<java.util.List<java.lang.String>> signingAlgorithmsConsumer)
A
Consumer of the JWS signing algorithms for the ID Token
allowing the ability to add, replace, or remove. |
OidcProviderConfiguration.Builder |
subjectType(java.lang.String subjectType)
Add this Subject Type to the collection of
subject_types_supported in the resulting
OidcProviderConfiguration, REQUIRED. |
OidcProviderConfiguration.Builder |
subjectTypes(java.util.function.Consumer<java.util.List<java.lang.String>> subjectTypesConsumer)
A
Consumer of the Subject Types(s) allowing the ability to add, replace, or remove. |
OidcProviderConfiguration.Builder |
userInfoEndpoint(java.lang.String userInfoEndpoint)
Use this
userinfo_endpoint in the resulting OidcProviderConfiguration, OPTIONAL. |
protected void |
validate() |
authorizationEndpoint, claim, claims, codeChallengeMethod, codeChallengeMethods, getClaims, getThis, grantType, grantTypes, issuer, jwkSetUrl, responseType, responseTypes, scope, scopes, tokenEndpoint, tokenEndpointAuthenticationMethod, tokenEndpointAuthenticationMethods, tokenIntrospectionEndpoint, tokenIntrospectionEndpointAuthenticationMethod, tokenIntrospectionEndpointAuthenticationMethods, tokenRevocationEndpoint, tokenRevocationEndpointAuthenticationMethod, tokenRevocationEndpointAuthenticationMethods, validateURLpublic OidcProviderConfiguration.Builder subjectType(java.lang.String subjectType)
subject_types_supported in the resulting
OidcProviderConfiguration, REQUIRED.subjectType - the Subject Type that the OpenID Provider supportsOidcProviderConfiguration.Builder for further configurationpublic OidcProviderConfiguration.Builder subjectTypes(java.util.function.Consumer<java.util.List<java.lang.String>> subjectTypesConsumer)
Consumer of the Subject Types(s) allowing the ability to add, replace, or remove.subjectTypesConsumer - a Consumer of the Subject Types(s)OidcProviderConfiguration.Builder for further configurationpublic OidcProviderConfiguration.Builder idTokenSigningAlgorithm(java.lang.String signingAlgorithm)
JWS signing algorithm to the collection of id_token_signing_alg_values_supported
in the resulting OidcProviderConfiguration, REQUIRED.signingAlgorithm - the JWS signing algorithm supported for the ID TokenOidcProviderConfiguration.Builder for further configurationpublic OidcProviderConfiguration.Builder idTokenSigningAlgorithms(java.util.function.Consumer<java.util.List<java.lang.String>> signingAlgorithmsConsumer)
Consumer of the JWS signing algorithms for the ID Token
allowing the ability to add, replace, or remove.signingAlgorithmsConsumer - a Consumer of the JWS signing algorithms for the ID TokenOidcProviderConfiguration.Builder for further configurationpublic OidcProviderConfiguration.Builder userInfoEndpoint(java.lang.String userInfoEndpoint)
userinfo_endpoint in the resulting OidcProviderConfiguration, OPTIONAL.userInfoEndpoint - the URL of the OpenID Connect 1.0 UserInfo EndpointOidcProviderConfiguration.Builder for further configurationpublic OidcProviderConfiguration build()
OidcProviderConfiguration.
The following claims are REQUIRED:
issuer, authorization_endpoint, token_endpoint, jwks_uri,
response_types_supported, subject_types_supported and
id_token_signing_alg_values_supported.
build in class AbstractOAuth2AuthorizationServerMetadata.AbstractBuilder<OidcProviderConfiguration,OidcProviderConfiguration.Builder>OidcProviderConfigurationprotected void validate()