protected abstract static class AbstractOAuth2AuthorizationServerMetadata.AbstractBuilder<T extends AbstractOAuth2AuthorizationServerMetadata,B extends AbstractOAuth2AuthorizationServerMetadata.AbstractBuilder<T,B>>
extends java.lang.Object
AbstractOAuth2AuthorizationServerMetadata.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractBuilder() |
| Modifier and Type | Method and Description |
|---|---|
B |
authorizationEndpoint(java.lang.String authorizationEndpoint)
Use this
authorization_endpoint in the resulting AbstractOAuth2AuthorizationServerMetadata, REQUIRED. |
abstract T |
build()
Creates the
AbstractOAuth2AuthorizationServerMetadata. |
B |
claim(java.lang.String name,
java.lang.Object value)
Use this claim in the resulting
AbstractOAuth2AuthorizationServerMetadata. |
B |
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 with
the possibility to add, replace, or remove. |
B |
codeChallengeMethod(java.lang.String codeChallengeMethod)
Add this Proof Key for Code Exchange (PKCE)
code_challenge_method to the collection of code_challenge_methods_supported
in the resulting AbstractOAuth2AuthorizationServerMetadata, OPTIONAL. |
B |
codeChallengeMethods(java.util.function.Consumer<java.util.List<java.lang.String>> codeChallengeMethodsConsumer)
A
Consumer of the Proof Key for Code Exchange (PKCE) code_challenge_method values supported allowing the ability to add, replace, or remove. |
protected java.util.Map<java.lang.String,java.lang.Object> |
getClaims() |
protected B |
getThis() |
B |
grantType(java.lang.String grantType)
Add this OAuth 2.0
grant_type to the collection of grant_types_supported
in the resulting AbstractOAuth2AuthorizationServerMetadata, OPTIONAL. |
B |
grantTypes(java.util.function.Consumer<java.util.List<java.lang.String>> grantTypesConsumer)
A
Consumer of the OAuth 2.0 grant_type values supported allowing the ability to add, replace, or remove. |
B |
issuer(java.lang.String issuer)
Use this
issuer in the resulting AbstractOAuth2AuthorizationServerMetadata, REQUIRED. |
B |
jwkSetUrl(java.lang.String jwkSetUrl)
Use this
jwks_uri in the resulting AbstractOAuth2AuthorizationServerMetadata, OPTIONAL. |
B |
responseType(java.lang.String responseType)
Add this OAuth 2.0
response_type to the collection of response_types_supported
in the resulting AbstractOAuth2AuthorizationServerMetadata, REQUIRED. |
B |
responseTypes(java.util.function.Consumer<java.util.List<java.lang.String>> responseTypesConsumer)
A
Consumer of the OAuth 2.0 response_type values supported allowing the ability to add, replace, or remove. |
B |
scope(java.lang.String scope)
Add this OAuth 2.0
scope to the collection of scopes_supported
in the resulting AbstractOAuth2AuthorizationServerMetadata, RECOMMENDED. |
B |
scopes(java.util.function.Consumer<java.util.List<java.lang.String>> scopesConsumer)
A
Consumer of the OAuth 2.0 scope values supported allowing the ability to add, replace, or remove. |
B |
tokenEndpoint(java.lang.String tokenEndpoint)
Use this
token_endpoint in the resulting AbstractOAuth2AuthorizationServerMetadata, REQUIRED. |
B |
tokenEndpointAuthenticationMethod(java.lang.String authenticationMethod)
Add this client authentication method to the collection of
token_endpoint_auth_methods_supported
in the resulting AbstractOAuth2AuthorizationServerMetadata, OPTIONAL. |
B |
tokenEndpointAuthenticationMethods(java.util.function.Consumer<java.util.List<java.lang.String>> authenticationMethodsConsumer)
A
Consumer of the client authentication method(s) allowing the ability to add, replace, or remove. |
B |
tokenIntrospectionEndpoint(java.lang.String tokenIntrospectionEndpoint)
Use this
introspection_endpoint in the resulting AbstractOAuth2AuthorizationServerMetadata, OPTIONAL. |
B |
tokenIntrospectionEndpointAuthenticationMethod(java.lang.String authenticationMethod)
Add this client authentication method to the collection of
introspection_endpoint_auth_methods_supported
in the resulting AbstractOAuth2AuthorizationServerMetadata, OPTIONAL. |
B |
tokenIntrospectionEndpointAuthenticationMethods(java.util.function.Consumer<java.util.List<java.lang.String>> authenticationMethodsConsumer)
A
Consumer of the client authentication method(s) allowing the ability to add, replace, or remove. |
B |
tokenRevocationEndpoint(java.lang.String tokenRevocationEndpoint)
Use this
revocation_endpoint in the resulting AbstractOAuth2AuthorizationServerMetadata, OPTIONAL. |
B |
tokenRevocationEndpointAuthenticationMethod(java.lang.String authenticationMethod)
Add this client authentication method to the collection of
revocation_endpoint_auth_methods_supported
in the resulting AbstractOAuth2AuthorizationServerMetadata, OPTIONAL. |
B |
tokenRevocationEndpointAuthenticationMethods(java.util.function.Consumer<java.util.List<java.lang.String>> authenticationMethodsConsumer)
A
Consumer of the client authentication method(s) allowing the ability to add, replace, or remove. |
protected void |
validate() |
protected static void |
validateURL(java.lang.Object url,
java.lang.String errorMessage) |
protected java.util.Map<java.lang.String,java.lang.Object> getClaims()
protected final B getThis()
public B issuer(java.lang.String issuer)
issuer in the resulting AbstractOAuth2AuthorizationServerMetadata, REQUIRED.issuer - the URL of the Authorization Server's Issuer IdentifierAbstractOAuth2AuthorizationServerMetadata.AbstractBuilder for further configurationpublic B authorizationEndpoint(java.lang.String authorizationEndpoint)
authorization_endpoint in the resulting AbstractOAuth2AuthorizationServerMetadata, REQUIRED.authorizationEndpoint - the URL of the OAuth 2.0 Authorization EndpointAbstractOAuth2AuthorizationServerMetadata.AbstractBuilder for further configurationpublic B tokenEndpoint(java.lang.String tokenEndpoint)
token_endpoint in the resulting AbstractOAuth2AuthorizationServerMetadata, REQUIRED.tokenEndpoint - the URL of the OAuth 2.0 Token EndpointAbstractOAuth2AuthorizationServerMetadata.AbstractBuilder for further configurationpublic B tokenEndpointAuthenticationMethod(java.lang.String authenticationMethod)
token_endpoint_auth_methods_supported
in the resulting AbstractOAuth2AuthorizationServerMetadata, OPTIONAL.authenticationMethod - the client authentication method supported by the OAuth 2.0 Token EndpointAbstractOAuth2AuthorizationServerMetadata.AbstractBuilder for further configurationpublic B tokenEndpointAuthenticationMethods(java.util.function.Consumer<java.util.List<java.lang.String>> authenticationMethodsConsumer)
Consumer of the client authentication method(s) allowing the ability to add, replace, or remove.authenticationMethodsConsumer - a Consumer of the client authentication method(s) supported by the OAuth 2.0 Token EndpointAbstractOAuth2AuthorizationServerMetadata.AbstractBuilder for further configurationpublic B jwkSetUrl(java.lang.String jwkSetUrl)
jwks_uri in the resulting AbstractOAuth2AuthorizationServerMetadata, OPTIONAL.jwkSetUrl - the URL of the JSON Web Key SetAbstractOAuth2AuthorizationServerMetadata.AbstractBuilder for further configurationpublic B scope(java.lang.String scope)
scope to the collection of scopes_supported
in the resulting AbstractOAuth2AuthorizationServerMetadata, RECOMMENDED.scope - the OAuth 2.0 scope value supportedAbstractOAuth2AuthorizationServerMetadata.AbstractBuilder for further configurationpublic B scopes(java.util.function.Consumer<java.util.List<java.lang.String>> scopesConsumer)
Consumer of the OAuth 2.0 scope values supported allowing the ability to add, replace, or remove.scopesConsumer - a Consumer of the OAuth 2.0 scope values supportedAbstractOAuth2AuthorizationServerMetadata.AbstractBuilder for further configurationpublic B responseType(java.lang.String responseType)
response_type to the collection of response_types_supported
in the resulting AbstractOAuth2AuthorizationServerMetadata, REQUIRED.responseType - the OAuth 2.0 response_type value supportedAbstractOAuth2AuthorizationServerMetadata.AbstractBuilder for further configurationpublic B responseTypes(java.util.function.Consumer<java.util.List<java.lang.String>> responseTypesConsumer)
Consumer of the OAuth 2.0 response_type values supported allowing the ability to add, replace, or remove.responseTypesConsumer - a Consumer of the OAuth 2.0 response_type values supportedAbstractOAuth2AuthorizationServerMetadata.AbstractBuilder for further configurationpublic B grantType(java.lang.String grantType)
grant_type to the collection of grant_types_supported
in the resulting AbstractOAuth2AuthorizationServerMetadata, OPTIONAL.grantType - the OAuth 2.0 grant_type value supportedAbstractOAuth2AuthorizationServerMetadata.AbstractBuilder for further configurationpublic B grantTypes(java.util.function.Consumer<java.util.List<java.lang.String>> grantTypesConsumer)
Consumer of the OAuth 2.0 grant_type values supported allowing the ability to add, replace, or remove.grantTypesConsumer - a Consumer of the OAuth 2.0 grant_type values supportedAbstractOAuth2AuthorizationServerMetadata.AbstractBuilder for further configurationpublic B tokenRevocationEndpoint(java.lang.String tokenRevocationEndpoint)
revocation_endpoint in the resulting AbstractOAuth2AuthorizationServerMetadata, OPTIONAL.tokenRevocationEndpoint - the URL of the OAuth 2.0 Token Revocation EndpointAbstractOAuth2AuthorizationServerMetadata.AbstractBuilder for further configurationpublic B tokenRevocationEndpointAuthenticationMethod(java.lang.String authenticationMethod)
revocation_endpoint_auth_methods_supported
in the resulting AbstractOAuth2AuthorizationServerMetadata, OPTIONAL.authenticationMethod - the client authentication method supported by the OAuth 2.0 Token Revocation EndpointAbstractOAuth2AuthorizationServerMetadata.AbstractBuilder for further configurationpublic B tokenRevocationEndpointAuthenticationMethods(java.util.function.Consumer<java.util.List<java.lang.String>> authenticationMethodsConsumer)
Consumer of the client authentication method(s) allowing the ability to add, replace, or remove.authenticationMethodsConsumer - a Consumer of the client authentication method(s) supported by the OAuth 2.0 Token Revocation EndpointAbstractOAuth2AuthorizationServerMetadata.AbstractBuilder for further configurationpublic B tokenIntrospectionEndpoint(java.lang.String tokenIntrospectionEndpoint)
introspection_endpoint in the resulting AbstractOAuth2AuthorizationServerMetadata, OPTIONAL.tokenIntrospectionEndpoint - the URL of the OAuth 2.0 Token Introspection EndpointAbstractOAuth2AuthorizationServerMetadata.AbstractBuilder for further configurationpublic B tokenIntrospectionEndpointAuthenticationMethod(java.lang.String authenticationMethod)
introspection_endpoint_auth_methods_supported
in the resulting AbstractOAuth2AuthorizationServerMetadata, OPTIONAL.authenticationMethod - the client authentication method supported by the OAuth 2.0 Token Introspection EndpointAbstractOAuth2AuthorizationServerMetadata.AbstractBuilder for further configurationpublic B tokenIntrospectionEndpointAuthenticationMethods(java.util.function.Consumer<java.util.List<java.lang.String>> authenticationMethodsConsumer)
Consumer of the client authentication method(s) allowing the ability to add, replace, or remove.authenticationMethodsConsumer - a Consumer of the client authentication method(s) supported by the OAuth 2.0 Token Introspection EndpointAbstractOAuth2AuthorizationServerMetadata.AbstractBuilder for further configurationpublic B codeChallengeMethod(java.lang.String codeChallengeMethod)
code_challenge_method to the collection of code_challenge_methods_supported
in the resulting AbstractOAuth2AuthorizationServerMetadata, OPTIONAL.codeChallengeMethod - the code_challenge_method value supportedAbstractOAuth2AuthorizationServerMetadata.AbstractBuilder for further configurationpublic B codeChallengeMethods(java.util.function.Consumer<java.util.List<java.lang.String>> codeChallengeMethodsConsumer)
Consumer of the Proof Key for Code Exchange (PKCE) code_challenge_method values supported allowing the ability to add, replace, or remove.codeChallengeMethodsConsumer - a Consumer of the code_challenge_method values supportedAbstractOAuth2AuthorizationServerMetadata.AbstractBuilder for further configurationpublic B claim(java.lang.String name, java.lang.Object value)
AbstractOAuth2AuthorizationServerMetadata.name - the claim namevalue - the claim valueAbstractOAuth2AuthorizationServerMetadata.AbstractBuilder for further configurationpublic B claims(java.util.function.Consumer<java.util.Map<java.lang.String,java.lang.Object>> claimsConsumer)
claim(String, Object) declared so far with
the possibility to add, replace, or remove.claimsConsumer - a Consumer of the claimsAbstractOAuth2AuthorizationServerMetadata.AbstractBuilder for further configurationspublic abstract T build()
AbstractOAuth2AuthorizationServerMetadata.AbstractOAuth2AuthorizationServerMetadataprotected void validate()
protected static void validateURL(java.lang.Object url,
java.lang.String errorMessage)