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, waitMethods 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:OpenIdProviderMetadatarequire_request_uri_registration OPTIONAL.- Specified by:
getRequireRequestUriRegistrationin 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:OpenIdProviderMetadataauthorization_endpoint. REQUIRED.- Specified by:
getAuthorizationEndpointin interfaceOpenIdProviderMetadata- Returns:
- URL of the Open ID Provider's OAuth 2.0 Authorization Endpoint
-
getIdTokenSigningAlgValuesSupported
Description copied from interface:OpenIdProviderMetadataid_token_signing_alg_values_supported REQUIRED.- Specified by:
getIdTokenSigningAlgValuesSupportedin 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:OpenIdProviderMetadataid_token_encryption_enc_values_supported OPTIONAL.- Specified by:
getIdTokenEncryptionEncValuesSupportedin 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:OpenIdProviderMetadatauserinfo_encryption_alg_values_supported. OPTIONAL.- Specified by:
getUserInfoEncryptionAlgValuesSupportedin 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:OpenIdProviderMetadatauserinfo_encryption_enc_values_supported OPTIONAL.- Specified by:
getUserinfoEncryptionEncValuesSupportedin 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:OpenIdProviderMetadataissuer. REQUIRED.- Specified by:
getIssuerin 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:OpenIdProviderMetadatajwks_uri. REQUIRED- Specified by:
getJwksUriin 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:
getResponseTypesSupportedin 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:OpenIdProviderMetadatascopes_supported. RECOMMENDED.- Specified by:
getScopesSupportedin interfaceOpenIdProviderMetadata- Returns:
- List of the OAuth 2.0 [RFC6749] scope values that this server supports.
-
getSubjectTypesSupported
Description copied from interface:OpenIdProviderMetadatasubject_types_supported. REQUIRED- Specified by:
getSubjectTypesSupportedin interfaceOpenIdProviderMetadata- Returns:
- List of the Subject Identifier types that this OP supports.
-
getTokenEndpoint
Description copied from interface:OpenIdProviderMetadatatoken_endpoint. This is REQUIRED unless only the Implicit Flow is used.- Specified by:
getTokenEndpointin interfaceOpenIdProviderMetadata- Returns:
- URL of the Open ID Provider's OAuth 2.0 Token Endpoint
-
getTokenEndpointAuthMethodsSupported
Description copied from interface:OpenIdProviderMetadatatoken_endpoint_auth_methods_supported OPTIONAL.- Specified by:
getTokenEndpointAuthMethodsSupportedin interfaceOpenIdProviderMetadata- Returns:
- List of Client Authentication methods supported by this Token Endpoint.
-
getTokenEndpointAuthSigningAlgValuesSupported
Description copied from interface:OpenIdProviderMetadatatoken_endpoint_auth_signing_alg_values_supported OPTIONAL.- Specified by:
getTokenEndpointAuthSigningAlgValuesSupportedin interfaceOpenIdProviderMetadata- Returns:
- List of the JWS signing algorithms (alg values) supported by the Token Endpoint.
-
getDisplayValuesSupported
Description copied from interface:OpenIdProviderMetadatadisplay_values_supported OPTIONAL.- Specified by:
getDisplayValuesSupportedin interfaceOpenIdProviderMetadata- Returns:
- List of the display parameter values that the OpenID Provider supports.
-
getClaimTypesSupported
Description copied from interface:OpenIdProviderMetadataclaim_types_supported OPTIONAL.- Specified by:
getClaimTypesSupportedin interfaceOpenIdProviderMetadata- Returns:
- List of the Claim Types that the OpenID Provider supports.
-
getUserinfoEndpoint
Description copied from interface:OpenIdProviderMetadatauserinfo_endpoint. RECOMMENDED. This URL MUST use the https scheme and MAY contain port, path, and query parameter components.- Specified by:
getUserinfoEndpointin interfaceOpenIdProviderMetadata- Returns:
- URL of the Open ID Provider's UserInfo Endpoint
-
getResponseModesSupported
Description copied from interface:OpenIdProviderMetadataresponse_modes_supported. OPTIONAL- Specified by:
getResponseModesSupportedin interfaceOpenIdProviderMetadata- Returns:
- List of the OAuth 2.0 response_mode values that this Open ID Provider supports.
-
getGrantTypesSupported
Description copied from interface:OpenIdProviderMetadatagrant_types_supported. OPTIONAL- Specified by:
getGrantTypesSupportedin 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:OpenIdProviderMetadataacr_values_supported. OPTIONAL.- Specified by:
getAcrValuesSupportedin interfaceOpenIdProviderMetadata- Returns:
- List of the Authentication Context Class References that this OP supports.
-
getRegistrationEndpoint
Description copied from interface:OpenIdProviderMetadataregistration_endpoint. RECOMMENDED- Specified by:
getRegistrationEndpointin interfaceOpenIdProviderMetadata- Returns:
- URL of the Open ID Provider's Dynamic Client Registration Endpoint
-
getClaimsSupported
Description copied from interface:OpenIdProviderMetadataclaims_supported RECOMMENDED.- Specified by:
getClaimsSupportedin 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:OpenIdProviderMetadataservice_documentation OPTIONAL.- Specified by:
getServiceDocumentationin 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:OpenIdProviderMetadataclaims_locales_supported OPTIONAL.- Specified by:
getClaimsLocalesSupportedin interfaceOpenIdProviderMetadata- Returns:
- Languages and scripts supported for values in Claims
-
getUriLocalesSupported
Description copied from interface:OpenIdProviderMetadataui_locales_supported OPTIONAL.- Specified by:
getUriLocalesSupportedin interfaceOpenIdProviderMetadata- Returns:
- Languages and scripts supported for the user interface
-
getClaimsParameterSupported
Description copied from interface:OpenIdProviderMetadataclaims_parameter_supported OPTIONAL.- Specified by:
getClaimsParameterSupportedin interfaceOpenIdProviderMetadata- Returns:
- Boolean value specifying whether the OP supports use of the claims parameter.
-
getCodeChallengeMethodsSupported
Description copied from interface:OpenIdProviderMetadatacode_challenge_methods_supported.- Specified by:
getCodeChallengeMethodsSupportedin interfaceOpenIdProviderMetadata- Returns:
- List of the supported transformation methods by the authorisation code verifier for Proof Key for Code Exchange (PKCE).
-
getIntrospectionEndpoint
- Specified by:
getIntrospectionEndpointin interfaceOpenIdProviderMetadata- Returns:
- The fully qualified URL of the server's introspection endpoint defined by OAuth Token Introspection [RFC7662]
- See Also:
-
getIntrospectionEndpointAuthMethodsSupported
- Specified by:
getIntrospectionEndpointAuthMethodsSupportedin interfaceOpenIdProviderMetadata- Returns:
- List of Client Authentication methods supported by Introspection Endpoint
-
getRevocationEndpoint
- Specified by:
getRevocationEndpointin interfaceOpenIdProviderMetadata- Returns:
- The fully qualified URL of the server's revocation endpoint defined by Oauth Token Revocation.
- See Also:
-
getRevocationEndpointAuthMethodsSupported
- Specified by:
getRevocationEndpointAuthMethodsSupportedin interfaceOpenIdProviderMetadata- Returns:
- List of Client Authentication methods supported by Revocation Endpoint
-
getCheckSessionIframe
Description copied from interface:OpenIdProviderMetadatacheck_session_iframe. REQUIRED- Specified by:
getCheckSessionIframein 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:OpenIdProviderMetadataend_session_endpoint. REQUIRED- Specified by:
getEndSessionEndpointin 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:OpenIdProviderMetadatarequest_parameter_supported OPTIONAL.- Specified by:
getRequestParameterSupportedin 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:OpenIdProviderMetadatarequest_uri_parameter_supported OPTIONAL.- Specified by:
getRequestUriParameterSupportedin 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:OpenIdProviderMetadataop_policy_uri OPTIONAL.- Specified by:
getOpPolicyUriin 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:OpenIdProviderMetadataop_tos_uri. OPTIONAL.- Specified by:
getOpTosUriin 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:OpenIdProviderMetadatarequest_object_signing_alg_values_supported. OPTIONAL- Specified by:
getRequestObjectSigningAlgValuesSupportedin interfaceOpenIdProviderMetadata- Returns:
- List of the JWS signing algorithms (alg values) supported by the OP for Request Objects.
-
getRequestObjectEncryptionAlgValuesSupported
Description copied from interface:OpenIdProviderMetadatarequest_object_encryption_alg_values_supported OPTIONAL.- Specified by:
getRequestObjectEncryptionAlgValuesSupportedin interfaceOpenIdProviderMetadata- Returns:
- list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects.
-
getRequestObjectEncryptionEncValuesSupported
Description copied from interface:OpenIdProviderMetadatarequest_object_encryption_enc_values_supported OPTIONAL.- Specified by:
getRequestObjectEncryptionEncValuesSupportedin interfaceOpenIdProviderMetadata- Returns:
- List of the JWE encryption algorithms (enc values) supported by the OP for Request Objects.
-
builder
- Returns:
- Creates a Builder.
-