Class DefaultOpenIdProviderMetadata
java.lang.Object
io.micronaut.security.oauth2.client.DefaultOpenIdProviderMetadata
- All Implemented Interfaces:
OpenIdProviderMetadata
- Since:
- 1.2.0
- Author:
- Sergio del Amo
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionDefaultOpenIdProviderMetadata
(String authorizationEndpoint, List<String> idTokenSigningAlgValuesSupported, String issuer, String jwksUri, List<String> acrValuesSupported, List<String> responseTypesSupported, List<String> responseModesSupported, List<String> scopesSupported, List<String> grantTypesSupported, List<String> subjectTypesSupported, String tokenEndpoint, List<String> tokenEndpointAuthMethodsSupported, String userinfoEndpoint, String registrationEndpoint, List<String> claimsSupported, List<String> codeChallengeMethodsSupported, String introspectionEndpoint, List<String> introspectionEndpointAuthMethodsSupported, String revocationEndpoint, List<String> revocationEndpointAuthMethodsSupported, String endSessionEndpoint, Boolean requestParameterSupported, Boolean requestUriParameterSupported, Boolean requireRequestUriRegistration, List<String> requestObjectSigningAlgValuesSupported, String serviceDocumentation, List<String> idTokenEncryptionEncValuesSupported, List<String> displayValuesSupported, List<String> claimTypesSupported, Boolean claimsParameterSupported, String opTosUri, String opPolicyUri, List<String> uriLocalesSupported, List<String> claimsLocalesSupported, List<String> userinfoEncryptionAlgValuesSupported, List<String> userinfoEncryptionEncValuesSupported, List<String> tokenEndpointAuthSigningAlgValuesSupported, List<String> requestObjectEncryptionAlgValuesSupported, List<String> requestObjectEncryptionEncValuesSupported, String checkSessionIframe) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
acr_values_supported.authorization_endpoint.check_session_iframe.claims_locales_supported OPTIONAL.claims_parameter_supported OPTIONAL.claims_supported RECOMMENDED.claim_types_supported OPTIONAL.code_challenge_methods_supported.As specified in Open ID Discovery Spec, if omitted, the default value is ["authorization_code", "implicit"].display_values_supported OPTIONAL.end_session_endpoint.grant_types_supported.id_token_encryption_enc_values_supported OPTIONAL.id_token_signing_alg_values_supported REQUIRED.issuer.jwks_uri.op_policy_uri OPTIONAL.op_tos_uri.registration_endpoint.request_object_encryption_alg_values_supported OPTIONAL.request_object_encryption_enc_values_supported OPTIONAL.request_object_signing_alg_values_supported.request_parameter_supported OPTIONAL.request_uri_parameter_supported OPTIONAL.require_request_uri_registration OPTIONAL.response_modes_supported.As specified in Open ID Discovery Spec, if omitted, the default for Dynamic OpenID Providers is ["query", "fragment"].scopes_supported.service_documentation OPTIONAL.subject_types_supported.token_endpoint.token_endpoint_auth_methods_supported OPTIONAL.token_endpoint_auth_signing_alg_values_supported OPTIONAL.ui_locales_supported OPTIONAL.userinfo_encryption_alg_values_supported.userinfo_encryption_enc_values_supported OPTIONAL.userinfo_endpoint.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.security.oauth2.client.OpenIdProviderMetadata
getTokenEndpointAuthMethods
-
Constructor Details
-
DefaultOpenIdProviderMetadata
public DefaultOpenIdProviderMetadata(@Nullable String authorizationEndpoint, @NonNull List<String> idTokenSigningAlgValuesSupported, @NonNull String issuer, @NonNull String jwksUri, @Nullable List<String> acrValuesSupported, @Nullable List<String> responseTypesSupported, @Nullable List<String> responseModesSupported, @Nullable List<String> scopesSupported, @Nullable List<String> grantTypesSupported, @NonNull List<String> subjectTypesSupported, @NonNull String tokenEndpoint, @Nullable List<String> tokenEndpointAuthMethodsSupported, @Nullable String userinfoEndpoint, @Nullable String registrationEndpoint, @Nullable List<String> claimsSupported, @Nullable List<String> codeChallengeMethodsSupported, @Nullable String introspectionEndpoint, @Nullable List<String> introspectionEndpointAuthMethodsSupported, @Nullable String revocationEndpoint, @Nullable List<String> revocationEndpointAuthMethodsSupported, @Nullable String endSessionEndpoint, @Nullable Boolean requestParameterSupported, @Nullable Boolean requestUriParameterSupported, @Nullable Boolean requireRequestUriRegistration, @Nullable List<String> requestObjectSigningAlgValuesSupported, @Nullable String serviceDocumentation, @Nullable List<String> idTokenEncryptionEncValuesSupported, @Nullable List<String> displayValuesSupported, @Nullable List<String> claimTypesSupported, @Nullable Boolean claimsParameterSupported, @Nullable String opTosUri, @Nullable String opPolicyUri, @Nullable List<String> uriLocalesSupported, @Nullable List<String> claimsLocalesSupported, @Nullable List<String> userinfoEncryptionAlgValuesSupported, @Nullable List<String> userinfoEncryptionEncValuesSupported, @Nullable List<String> tokenEndpointAuthSigningAlgValuesSupported, @Nullable List<String> requestObjectEncryptionAlgValuesSupported, @Nullable List<String> requestObjectEncryptionEncValuesSupported, @Nullable String checkSessionIframe)
-
-
Method Details
-
getRequireRequestUriRegistration
Description copied from interface:OpenIdProviderMetadata
require_request_uri_registration OPTIONAL.- Specified by:
getRequireRequestUriRegistration
in interfaceOpenIdProviderMetadata
- Returns:
- Boolean value specifying whether the OP requires any request_uri values used to be pre-registered using the request_uris registration parameter.
-
getDefaultRequireRequestUriRegistration
- Returns:
- If require_request_uri_registration omitted, the default value is false.
-
getAuthorizationEndpoint
Description copied from interface:OpenIdProviderMetadata
authorization_endpoint. REQUIRED.- Specified by:
getAuthorizationEndpoint
in interfaceOpenIdProviderMetadata
- Returns:
- URL of the Open ID Provider's OAuth 2.0 Authorization Endpoint
-
getIdTokenSigningAlgValuesSupported
Description copied from interface:OpenIdProviderMetadata
id_token_signing_alg_values_supported REQUIRED.- Specified by:
getIdTokenSigningAlgValuesSupported
in interfaceOpenIdProviderMetadata
- Returns:
- List of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT].
-
getIdTokenEncryptionEncValuesSupported
Description copied from interface:OpenIdProviderMetadata
id_token_encryption_enc_values_supported OPTIONAL.- Specified by:
getIdTokenEncryptionEncValuesSupported
in interfaceOpenIdProviderMetadata
- Returns:
- List of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT].
-
getUserInfoEncryptionAlgValuesSupported
Description copied from interface:OpenIdProviderMetadata
userinfo_encryption_alg_values_supported. OPTIONAL.- Specified by:
getUserInfoEncryptionAlgValuesSupported
in interfaceOpenIdProviderMetadata
- Returns:
- List of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].
-
getUserinfoEncryptionEncValuesSupported
Description copied from interface:OpenIdProviderMetadata
userinfo_encryption_enc_values_supported OPTIONAL.- Specified by:
getUserinfoEncryptionEncValuesSupported
in interfaceOpenIdProviderMetadata
- Returns:
- List of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].
-
getIssuer
Description copied from interface:OpenIdProviderMetadata
issuer. REQUIRED.- Specified by:
getIssuer
in interfaceOpenIdProviderMetadata
- Returns:
- URL using the https scheme with no query or fragment component that the Open ID Provider asserts as its Issuer Identifier.
-
getJwksUri
Description copied from interface:OpenIdProviderMetadata
jwks_uri. REQUIRED- Specified by:
getJwksUri
in interfaceOpenIdProviderMetadata
- Returns:
- URL of the Open ID Provider's JSON Web Key Set
-
getResponseTypesSupported
As specified in Open ID Discovery Spec, if omitted, the default for Dynamic OpenID Providers is ["query", "fragment"].- Specified by:
getResponseTypesSupported
in interfaceOpenIdProviderMetadata
- Returns:
- Supported response types.
-
getDefaultResponseTypesSupported
- Returns:
- if Response Types Supported is ommited, default for Dynamic OpenID Providers is ["query", "fragment"].
-
getScopesSupported
Description copied from interface:OpenIdProviderMetadata
scopes_supported. RECOMMENDED.- Specified by:
getScopesSupported
in interfaceOpenIdProviderMetadata
- Returns:
- List of the OAuth 2.0 [RFC6749] scope values that this server supports.
-
getSubjectTypesSupported
Description copied from interface:OpenIdProviderMetadata
subject_types_supported. REQUIRED- Specified by:
getSubjectTypesSupported
in interfaceOpenIdProviderMetadata
- Returns:
- List of the Subject Identifier types that this OP supports.
-
getTokenEndpoint
Description copied from interface:OpenIdProviderMetadata
token_endpoint. This is REQUIRED unless only the Implicit Flow is used.- Specified by:
getTokenEndpoint
in interfaceOpenIdProviderMetadata
- Returns:
- URL of the Open ID Provider's OAuth 2.0 Token Endpoint
-
getTokenEndpointAuthMethodsSupported
Description copied from interface:OpenIdProviderMetadata
token_endpoint_auth_methods_supported OPTIONAL.- Specified by:
getTokenEndpointAuthMethodsSupported
in interfaceOpenIdProviderMetadata
- Returns:
- List of Client Authentication methods supported by this Token Endpoint.
-
getTokenEndpointAuthSigningAlgValuesSupported
Description copied from interface:OpenIdProviderMetadata
token_endpoint_auth_signing_alg_values_supported OPTIONAL.- Specified by:
getTokenEndpointAuthSigningAlgValuesSupported
in interfaceOpenIdProviderMetadata
- Returns:
- List of the JWS signing algorithms (alg values) supported by the Token Endpoint.
-
getDisplayValuesSupported
Description copied from interface:OpenIdProviderMetadata
display_values_supported OPTIONAL.- Specified by:
getDisplayValuesSupported
in interfaceOpenIdProviderMetadata
- Returns:
- List of the display parameter values that the OpenID Provider supports.
-
getClaimTypesSupported
Description copied from interface:OpenIdProviderMetadata
claim_types_supported OPTIONAL.- Specified by:
getClaimTypesSupported
in interfaceOpenIdProviderMetadata
- Returns:
- List of the Claim Types that the OpenID Provider supports.
-
getUserinfoEndpoint
Description copied from interface:OpenIdProviderMetadata
userinfo_endpoint. RECOMMENDED. This URL MUST use the https scheme and MAY contain port, path, and query parameter components.- Specified by:
getUserinfoEndpoint
in interfaceOpenIdProviderMetadata
- Returns:
- URL of the Open ID Provider's UserInfo Endpoint
-
getResponseModesSupported
Description copied from interface:OpenIdProviderMetadata
response_modes_supported. OPTIONAL- Specified by:
getResponseModesSupported
in interfaceOpenIdProviderMetadata
- Returns:
- List of the OAuth 2.0 response_mode values that this Open ID Provider supports.
-
getGrantTypesSupported
Description copied from interface:OpenIdProviderMetadata
grant_types_supported. OPTIONAL- Specified by:
getGrantTypesSupported
in interfaceOpenIdProviderMetadata
- Returns:
- List of the OAuth 2.0 Grant Type values that this Open ID Provider supports.
-
getDefaultGrantTypesSupported
As specified in Open ID Discovery Spec, if omitted, the default value is ["authorization_code", "implicit"].- Returns:
- Default Grant Types if grantTypesSupported is ommited.
-
getAcrValuesSupported
Description copied from interface:OpenIdProviderMetadata
acr_values_supported. OPTIONAL.- Specified by:
getAcrValuesSupported
in interfaceOpenIdProviderMetadata
- Returns:
- List of the Authentication Context Class References that this OP supports.
-
getRegistrationEndpoint
Description copied from interface:OpenIdProviderMetadata
registration_endpoint. RECOMMENDED- Specified by:
getRegistrationEndpoint
in interfaceOpenIdProviderMetadata
- Returns:
- URL of the Open ID Provider's Dynamic Client Registration Endpoint
-
getClaimsSupported
Description copied from interface:OpenIdProviderMetadata
claims_supported RECOMMENDED.- Specified by:
getClaimsSupported
in interfaceOpenIdProviderMetadata
- Returns:
- List of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for.
-
getServiceDocumentation
Description copied from interface:OpenIdProviderMetadata
service_documentation OPTIONAL.- Specified by:
getServiceDocumentation
in interfaceOpenIdProviderMetadata
- Returns:
- URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider.
-
getClaimsLocalesSupported
Description copied from interface:OpenIdProviderMetadata
claims_locales_supported OPTIONAL.- Specified by:
getClaimsLocalesSupported
in interfaceOpenIdProviderMetadata
- Returns:
- Languages and scripts supported for values in Claims
-
getUriLocalesSupported
Description copied from interface:OpenIdProviderMetadata
ui_locales_supported OPTIONAL.- Specified by:
getUriLocalesSupported
in interfaceOpenIdProviderMetadata
- Returns:
- Languages and scripts supported for the user interface
-
getClaimsParameterSupported
Description copied from interface:OpenIdProviderMetadata
claims_parameter_supported OPTIONAL.- Specified by:
getClaimsParameterSupported
in interfaceOpenIdProviderMetadata
- Returns:
- Boolean value specifying whether the OP supports use of the claims parameter.
-
getCodeChallengeMethodsSupported
Description copied from interface:OpenIdProviderMetadata
code_challenge_methods_supported.- Specified by:
getCodeChallengeMethodsSupported
in interfaceOpenIdProviderMetadata
- Returns:
- List of the supported transformation methods by the authorisation code verifier for Proof Key for Code Exchange (PKCE).
-
getIntrospectionEndpoint
- Specified by:
getIntrospectionEndpoint
in interfaceOpenIdProviderMetadata
- Returns:
- The fully qualified URL of the server's introspection endpoint defined by OAuth Token Introspection [RFC7662]
- See Also:
-
getIntrospectionEndpointAuthMethodsSupported
- Specified by:
getIntrospectionEndpointAuthMethodsSupported
in interfaceOpenIdProviderMetadata
- Returns:
- List of Client Authentication methods supported by Introspection Endpoint
-
getRevocationEndpoint
- Specified by:
getRevocationEndpoint
in interfaceOpenIdProviderMetadata
- Returns:
- The fully qualified URL of the server's revocation endpoint defined by Oauth Token Revocation.
- See Also:
-
getRevocationEndpointAuthMethodsSupported
- Specified by:
getRevocationEndpointAuthMethodsSupported
in interfaceOpenIdProviderMetadata
- Returns:
- List of Client Authentication methods supported by Revocation Endpoint
-
getCheckSessionIframe
Description copied from interface:OpenIdProviderMetadata
check_session_iframe. REQUIRED- Specified by:
getCheckSessionIframe
in interfaceOpenIdProviderMetadata
- Returns:
- URL of an OP iframe that supports cross-origin communications for session state information with the RP Client, using the HTML5 postMessage API.
-
getEndSessionEndpoint
Description copied from interface:OpenIdProviderMetadata
end_session_endpoint. REQUIRED- Specified by:
getEndSessionEndpoint
in interfaceOpenIdProviderMetadata
- Returns:
- URL at the OP to which an RP can perform a redirect to request that the End-User be logged out at the OP.
-
getRequestParameterSupported
Description copied from interface:OpenIdProviderMetadata
request_parameter_supported OPTIONAL.- Specified by:
getRequestParameterSupported
in interfaceOpenIdProviderMetadata
- Returns:
- Boolean value specifying whether the OP supports use of the request parameter, with true indicating support.
-
getDefaultRequestParameterSupported
- Returns:
- As per spec, If requestParameterSupported omitted, the default value is false.
-
getRequestUriParameterSupported
Description copied from interface:OpenIdProviderMetadata
request_uri_parameter_supported OPTIONAL.- Specified by:
getRequestUriParameterSupported
in interfaceOpenIdProviderMetadata
- Returns:
- Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support.
-
getDefaultRequestUriParameterSupported
- Returns:
- As per spec, If requestUriParameterSupported omitted, the default value is false.
-
getOpPolicyUri
Description copied from interface:OpenIdProviderMetadata
op_policy_uri OPTIONAL.- Specified by:
getOpPolicyUri
in interfaceOpenIdProviderMetadata
- Returns:
- URL that the OpenID Provider provides to the person registering the Client to read about the OP's requirements on how the Relying Party can use the data provided by the OP.
-
getOpTosUri
Description copied from interface:OpenIdProviderMetadata
op_tos_uri. OPTIONAL.- Specified by:
getOpTosUri
in interfaceOpenIdProviderMetadata
- Returns:
- URL that the OpenID Provider provides to the person registering the Client to read about OpenID Provider's terms of service.
-
getRequestObjectSigningAlgValuesSupported
Description copied from interface:OpenIdProviderMetadata
request_object_signing_alg_values_supported. OPTIONAL- Specified by:
getRequestObjectSigningAlgValuesSupported
in interfaceOpenIdProviderMetadata
- Returns:
- List of the JWS signing algorithms (alg values) supported by the OP for Request Objects.
-
getRequestObjectEncryptionAlgValuesSupported
Description copied from interface:OpenIdProviderMetadata
request_object_encryption_alg_values_supported OPTIONAL.- Specified by:
getRequestObjectEncryptionAlgValuesSupported
in interfaceOpenIdProviderMetadata
- Returns:
- list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects.
-
getRequestObjectEncryptionEncValuesSupported
Description copied from interface:OpenIdProviderMetadata
request_object_encryption_enc_values_supported OPTIONAL.- Specified by:
getRequestObjectEncryptionEncValuesSupported
in interfaceOpenIdProviderMetadata
- Returns:
- List of the JWE encryption algorithms (enc values) supported by the OP for Request Objects.
-
builder
- Returns:
- Creates a Builder.
-