Class OIDCProviderMetadata
java.lang.Object
com.nimbusds.oauth2.sdk.as.AuthorizationServerEndpointMetadata
com.nimbusds.oauth2.sdk.as.AuthorizationServerMetadata
com.nimbusds.openid.connect.sdk.op.OIDCProviderMetadata
- All Implemented Interfaces:
ReadOnlyAuthorizationServerEndpointMetadata
,ReadOnlyAuthorizationServerMetadata
,ReadOnlyOIDCProviderEndpointMetadata
,ReadOnlyOIDCProviderMetadata
public class OIDCProviderMetadata
extends AuthorizationServerMetadata
implements ReadOnlyOIDCProviderMetadata
OpenID Provider (OP) metadata.
Related specifications:
- OpenID Connect Discovery 1.0, section 3.
- OpenID Connect Session Management 1.0, section 2.1.
- OpenID Connect Front-Channel Logout 1.0, section 3.
- OpenID Connect Back-Channel Logout 1.0, section 2.1.
- OpenID Connect for Identity Assurance 1.0 (draft 12).
- OpenID Connect Federation 1.0 (draft 23).
- Initiating User Registration via OpenID Connect 1.0
- OAuth 2.0 Authorization Server Metadata (RFC 8414)
- OAuth 2.0 Mutual TLS Client Authentication and Certificate Bound Access Tokens (RFC 8705)
- Financial-grade API: JWT Secured Authorization Response Mode for OAuth 2.0 (JARM)
- OAuth 2.0 Authorization Server Issuer Identification (RFC 9207)
- Financial-grade API - Part 2: Read and Write API Security Profile
- OAuth 2.0 Pushed Authorization Requests (RFC 9126)
- OAuth 2.0 Rich Authorization Requests (RFC 9396)
- OAuth 2.0 Device Authorization Grant (RFC 8628)
- OAuth 2.0 Incremental Authorization (draft-ietf-oauth-incremental-authz-04)
-
Constructor Summary
ConstructorsConstructorDescriptionOIDCProviderMetadata
(Issuer issuer, List<SubjectType> subjectTypes, URI jwkSetURI) Creates a new OpenID Connect provider metadata instance.OIDCProviderMetadata
(Issuer issuer, List<SubjectType> subjectTypes, List<ClientRegistrationType> clientRegistrationTypes, URI jwkSetURI, URI signedJWKSetURI, com.nimbusds.jose.jwk.JWKSet jwkSet) Creates a new OpenID Connect Federation 1.0 provider metadata instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Applies the OpenID Provider metadata defaults where no values have been specified.getACRs()
Gets the supported Authentication Context Class References (ACRs).Gets the supported digest algorithms for the external evidence attachments.Gets the supported evidence attachment types.Gets the cross-origin check session iframe URI.Gets the supported claims names.List<com.nimbusds.langtag.LangTag>
Gets the supported claims locales.Gets the supported claim types.Gets the supported displays.Gets the supported coarse identity verification methods for evidences of type document.Gets the supported identity document types.Gets the supported validation methods for evidences of type document.Gets the supported verification methods for evidences of type document.Gets the supported electronic record types.Gets the logout endpoint URI.Deprecated.Gets the supported identity evidence types.Gets the supported identity trust frameworks.Deprecated.List<com.nimbusds.jose.JWEAlgorithm>
Gets the supported JWE algorithms for ID tokens.List<com.nimbusds.jose.EncryptionMethod>
Gets the supported encryption methods for ID tokens.List<com.nimbusds.jose.JWSAlgorithm>
Gets the supported JWS algorithms for ID tokens.Gets the aliases for communication with mutual TLS.Gets the aliases for communication with mutual TLS.Gets the registered OpenID Connect provider metadata parameter names.Gets the supported subject types.Gets the UserInfo endpoint URI.List<com.nimbusds.jose.JWEAlgorithm>
Gets the supported JWE algorithms for UserInfo JWTs.List<com.nimbusds.jose.EncryptionMethod>
Gets the supported encryption methods for UserInfo JWTs.List<com.nimbusds.jose.JWSAlgorithm>
Gets the supported JWS algorithms for UserInfo JWTs.Gets the names of the supported verified claims.static OIDCProviderMetadata
Parses an OpenID Provider metadata from the specified JSON object string.static OIDCProviderMetadata
parse
(net.minidev.json.JSONObject jsonObject) Parses an OpenID Provider metadata from the specified JSON object.static OIDCProviderMetadata
Resolves OpenID Provider metadata from the specified issuer identifier.static OIDCProviderMetadata
Resolves OpenID Provider metadata from the specified issuer identifier.static OIDCProviderMetadata
resolve
(Issuer issuer, HTTPRequestConfigurator requestConfigurator) Resolves OpenID Provider metadata from the specified issuer identifier.static URL
resolveURL
(Issuer issuer) Resolves OpenID Provider metadata URL from the specified issuer identifier.void
Sets the supported Authentication Context Class References (ACRs).void
setAttachmentDigestAlgs
(List<HashAlgorithm> digestAlgs) Sets the supported digest algorithms for the external evidence attachments.void
setAttachmentTypes
(List<AttachmentType> attachmentTypes) Sets the supported evidence attachment types.void
setCheckSessionIframeURI
(URI checkSessionIframe) Sets the cross-origin check session iframe URI.void
setClaimLocales
(List<com.nimbusds.langtag.LangTag> claimsLocales) Sets the supported claims locales.void
Sets the supported claims names.void
setClaimTypes
(List<ClaimType> claimTypes) Sets the supported claim types.void
setDisplays
(List<Display> displays) Sets the supported displays.void
setDocumentMethods
(List<IdentityVerificationMethod> methods) Sets the supported coarse identity verification methods for evidences of type document.void
setDocumentTypes
(List<DocumentType> documentTypes) Sets the supported identity document types.void
Sets the supported validation methods for evidences of type document.void
Sets the supported verification methods for evidences of type document.void
setElectronicRecordTypes
(List<ElectronicRecordType> electronicRecordTypes) Sets the supported electronic record types.void
setEndSessionEndpointURI
(URI endSessionEndpoint) Sets the logout endpoint URI.void
setIdentityDocumentTypes
(List<IDDocumentType> idDocuments) Deprecated.void
setIdentityEvidenceTypes
(List<IdentityEvidenceType> evidenceTypes) Sets the supported identity evidence types.void
setIdentityTrustFrameworks
(List<IdentityTrustFramework> trustFrameworks) Sets the supported identity trust frameworks.void
setIdentityVerificationMethods
(List<IdentityVerificationMethod> idVerificationMethods) Deprecated.void
setIDTokenJWEAlgs
(List<com.nimbusds.jose.JWEAlgorithm> idTokenJWEAlgs) Sets the supported JWE algorithms for ID tokens.void
setIDTokenJWEEncs
(List<com.nimbusds.jose.EncryptionMethod> idTokenJWEEncs) Sets the supported encryption methods for ID tokens.void
setIDTokenJWSAlgs
(List<com.nimbusds.jose.JWSAlgorithm> idTokenJWSAlgs) Sets the supported JWS algorithms for ID tokens.void
setMtlsEndpointAliases
(AuthorizationServerEndpointMetadata mtlsEndpointAliases) Sets the aliases for communication with mutual TLS.void
setSupportsBackChannelLogout
(boolean backChannelLogoutSupported) Sets the support for back-channel logout.void
setSupportsBackChannelLogoutSession
(boolean backChannelLogoutSessionSupported) Sets the support for back-channel logout with a session ID.void
setSupportsClaimsParams
(boolean claimsParamSupported) Sets the support for theclaims
authorisation request parameter.void
setSupportsFrontChannelLogout
(boolean frontChannelLogoutSupported) Sets the support for front-channel logout.void
setSupportsFrontChannelLogoutSession
(boolean frontChannelLogoutSessionSupported) Sets the support for front-channel logout with a session ID.void
setSupportsVerifiedClaims
(boolean verifiedClaimsSupported) Sets support for verified claims.void
setUserInfoEndpointURI
(URI userInfoEndpoint) Sets the UserInfo endpoint URI.void
setUserInfoJWEAlgs
(List<com.nimbusds.jose.JWEAlgorithm> userInfoJWEAlgs) Sets the supported JWE algorithms for UserInfo JWTs.void
setUserInfoJWEEncs
(List<com.nimbusds.jose.EncryptionMethod> userInfoJWEEncs) Sets the supported encryption methods for UserInfo JWTs.void
setUserInfoJWSAlgs
(List<com.nimbusds.jose.JWSAlgorithm> userInfoJWSAlgs) Sets the supported JWS algorithms for UserInfo JWTs.void
setVerifiedClaims
(List<String> verifiedClaims) Sets the names of the supported verified claims.boolean
Gets the support for back-channel logout.boolean
Gets the support for back-channel logout with a session ID.boolean
Gets the support for theclaims
authorisation request parameter.boolean
Gets the support for front-channel logout.boolean
Gets the support for front-channel logout with a session ID.boolean
Gets support for verified claims.net.minidev.json.JSONObject
Returns the JSON object representation of the metadata.Methods inherited from class com.nimbusds.oauth2.sdk.as.AuthorizationServerMetadata
getAuthorizationDetailsTypes, getAuthorizationJWEAlgs, getAuthorizationJWEEncs, getAuthorizationJWSAlgs, getBackChannelAuthenticationRequestJWSAlgs, getBackChannelTokenDeliveryModes, getClientRegistrationAuthnJWSAlgs, getClientRegistrationAuthnMethods, getClientRegistrationTypes, getCodeChallengeMethods, getCustomParameter, getCustomParameters, getCustomURIParameter, getDPoPJWSAlgs, getFederationRegistrationEndpointURI, getGrantTypes, getIncrementalAuthorizationTypes, getIntrospectionEndpointAuthMethods, getIntrospectionEndpointJWSAlgs, getIssuer, getJWKSet, getJWKSetURI, getOrganizationName, getPolicyURI, getPromptTypes, getRequestObjectJWEAlgs, getRequestObjectJWEEncs, getRequestObjectJWSAlgs, getResponseModes, getResponseTypes, getRevocationEndpointAuthMethods, getRevocationEndpointJWSAlgs, getScopes, getServiceDocsURI, getSignedJWKSetURI, getTermsOfServiceURI, getTokenEndpointAuthMethods, getTokenEndpointJWSAlgs, getUILocales, requiresPushedAuthorizationRequests, requiresPushedAuthorizationRequests, requiresRequestURIRegistration, setAuthorizationDetailsTypes, setAuthorizationJWEAlgs, setAuthorizationJWEEncs, setAuthorizationJWSAlgs, setBackChannelAuthenticationRequestJWSAlgs, setBackChannelTokenDeliveryModes, setClientRegistrationAuthnJWSAlgs, setClientRegistrationAuthnMethods, setClientRegistrationTypes, setCodeChallengeMethods, setCustomParameter, setDPoPJWSAlgs, setFederationRegistrationEndpointURI, setGrantTypes, setIncrementalAuthorizationTypes, setIntrospectionEndpointAuthMethods, setIntrospectionEndpointJWSAlgs, setJWKSet, setJWKSetURI, setOrganizationName, setPolicyURI, setPromptTypes, setRequestObjectJWEAlgs, setRequestObjectJWEEncs, setRequestObjectJWSAlgs, setRequiresRequestURIRegistration, setResponseModes, setResponseTypes, setRevocationEndpointAuthMethods, setRevocationEndpointJWSAlgs, setScopes, setServiceDocsURI, setSignedJWKSetURI, setSupportsAuthorizationResponseIssuerParam, setSupportsBackChannelUserCodeParam, setSupportsMutualTLSSenderConstrainedAccessTokens, setSupportsRequestParam, setSupportsRequestURIParam, setSupportsTLSClientCertificateBoundAccessTokens, setTermsOfServiceURI, setTokenEndpointAuthMethods, setTokenEndpointJWSAlgs, setUILocales, supportsAuthorizationResponseIssuerParam, supportsBackChannelUserCodeParam, supportsMutualTLSSenderConstrainedAccessTokens, supportsRequestParam, supportsRequestURIParam, supportsTLSClientCertificateBoundAccessTokens
Methods inherited from class com.nimbusds.oauth2.sdk.as.AuthorizationServerEndpointMetadata
getAuthorizationEndpointURI, getBackChannelAuthenticationEndpoint, getBackChannelAuthenticationEndpointURI, getDeviceAuthorizationEndpointURI, getIntrospectionEndpointURI, getPushedAuthorizationRequestEndpointURI, getRegistrationEndpointURI, getRequestObjectEndpoint, getRevocationEndpointURI, getTokenEndpointURI, setAuthorizationEndpointURI, setBackChannelAuthenticationEndpoint, setBackChannelAuthenticationEndpointURI, setDeviceAuthorizationEndpointURI, setIntrospectionEndpointURI, setPushedAuthorizationRequestEndpointURI, setRegistrationEndpointURI, setRequestObjectEndpoint, setRevocationEndpointURI, setTokenEndpointURI, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.nimbusds.oauth2.sdk.as.ReadOnlyAuthorizationServerEndpointMetadata
getAuthorizationEndpointURI, getBackChannelAuthenticationEndpoint, getBackChannelAuthenticationEndpointURI, getDeviceAuthorizationEndpointURI, getFederationRegistrationEndpointURI, getIntrospectionEndpointURI, getPushedAuthorizationRequestEndpointURI, getRegistrationEndpointURI, getRequestObjectEndpoint, getRevocationEndpointURI, getTokenEndpointURI
Methods inherited from interface com.nimbusds.oauth2.sdk.as.ReadOnlyAuthorizationServerMetadata
getAuthorizationDetailsTypes, getAuthorizationJWEAlgs, getAuthorizationJWEEncs, getAuthorizationJWSAlgs, getBackChannelAuthenticationRequestJWSAlgs, getBackChannelTokenDeliveryModes, getClientRegistrationAuthnJWSAlgs, getClientRegistrationAuthnMethods, getClientRegistrationTypes, getCodeChallengeMethods, getCustomParameter, getCustomParameters, getCustomURIParameter, getDPoPJWSAlgs, getGrantTypes, getIncrementalAuthorizationTypes, getIntrospectionEndpointAuthMethods, getIntrospectionEndpointJWSAlgs, getIssuer, getJWKSet, getJWKSetURI, getOrganizationName, getPolicyURI, getPromptTypes, getRequestObjectJWEAlgs, getRequestObjectJWEEncs, getRequestObjectJWSAlgs, getResponseModes, getResponseTypes, getRevocationEndpointAuthMethods, getRevocationEndpointJWSAlgs, getScopes, getServiceDocsURI, getSignedJWKSetURI, getTermsOfServiceURI, getTokenEndpointAuthMethods, getTokenEndpointJWSAlgs, getUILocales, requiresPushedAuthorizationRequests, requiresRequestURIRegistration, supportsAuthorizationResponseIssuerParam, supportsBackChannelUserCodeParam, supportsMutualTLSSenderConstrainedAccessTokens, supportsRequestParam, supportsRequestURIParam, supportsTLSClientCertificateBoundAccessTokens
-
Constructor Details
-
OIDCProviderMetadata
Creates a new OpenID Connect provider metadata instance.- Parameters:
issuer
- The issuer identifier. Must be a URI using the https scheme with no query or fragment component. Must not benull
.subjectTypes
- The supported subject types. At least one must be specified. Must not benull
.jwkSetURI
- The JWK set URI. Must not benull
.
-
OIDCProviderMetadata
public OIDCProviderMetadata(Issuer issuer, List<SubjectType> subjectTypes, List<ClientRegistrationType> clientRegistrationTypes, URI jwkSetURI, URI signedJWKSetURI, com.nimbusds.jose.jwk.JWKSet jwkSet) Creates a new OpenID Connect Federation 1.0 provider metadata instance. The provider JWK set should be specified byjwks_uri
,signed_jwks_uri
orjwks
.- Parameters:
issuer
- The issuer identifier. Must be a URI using the https scheme with no query or fragment component. Must not benull
.subjectTypes
- The supported subject types. At least one must be specified. Must not benull
.clientRegistrationTypes
- The supported client registration types. At least one must be specified. Must not benull
.jwkSetURI
- The JWK set URI,null
if specified by another field.signedJWKSetURI
- The signed JWK set URI,null
if specified by another field.jwkSet
- the JWK set,null
if specified by another field.
-
-
Method Details
-
setMtlsEndpointAliases
Description copied from class:AuthorizationServerMetadata
Sets the aliases for communication with mutual TLS. Corresponds to themtls_endpoint_aliases
metadata field.- Overrides:
setMtlsEndpointAliases
in classAuthorizationServerMetadata
- Parameters:
mtlsEndpointAliases
- The aliases for communication with mutual TLS, ornull
when no aliases are defined.
-
getReadOnlyMtlsEndpointAliases
Description copied from interface:ReadOnlyAuthorizationServerMetadata
Gets the aliases for communication with mutual TLS. Corresponds to themtls_endpoint_aliases
metadata field.- Specified by:
getReadOnlyMtlsEndpointAliases
in interfaceReadOnlyAuthorizationServerMetadata
- Specified by:
getReadOnlyMtlsEndpointAliases
in interfaceReadOnlyOIDCProviderMetadata
- Overrides:
getReadOnlyMtlsEndpointAliases
in classAuthorizationServerMetadata
- Returns:
- The aliases for communication with mutual TLS,
null
when no aliases are defined.
-
getMtlsEndpointAliases
Description copied from class:AuthorizationServerMetadata
Gets the aliases for communication with mutual TLS. Corresponds to themtls_endpoint_aliases
metadata field.- Overrides:
getMtlsEndpointAliases
in classAuthorizationServerMetadata
- Returns:
- The aliases for communication with mutual TLS,
null
when no aliases are defined.
-
getRegisteredParameterNames
Gets the registered OpenID Connect provider metadata parameter names.- Returns:
- The registered OpenID Connect provider metadata parameter names, as an unmodifiable set.
-
getUserInfoEndpointURI
Description copied from interface:ReadOnlyOIDCProviderEndpointMetadata
Gets the UserInfo endpoint URI. Corresponds theuserinfo_endpoint
metadata field.- Specified by:
getUserInfoEndpointURI
in interfaceReadOnlyOIDCProviderEndpointMetadata
- Returns:
- The UserInfo endpoint URI,
null
if not specified.
-
setUserInfoEndpointURI
Sets the UserInfo endpoint URI. Corresponds theuserinfo_endpoint
metadata field.- Parameters:
userInfoEndpoint
- The UserInfo endpoint URI,null
if not specified.
-
getCheckSessionIframeURI
Description copied from interface:ReadOnlyOIDCProviderEndpointMetadata
Gets the cross-origin check session iframe URI. Corresponds to thecheck_session_iframe
metadata field.- Specified by:
getCheckSessionIframeURI
in interfaceReadOnlyOIDCProviderEndpointMetadata
- Returns:
- The check session iframe URI,
null
if not specified.
-
setCheckSessionIframeURI
Sets the cross-origin check session iframe URI. Corresponds to thecheck_session_iframe
metadata field.- Parameters:
checkSessionIframe
- The check session iframe URI,null
if not specified.
-
getEndSessionEndpointURI
Description copied from interface:ReadOnlyOIDCProviderEndpointMetadata
Gets the logout endpoint URI. Corresponds to theend_session_endpoint
metadata field.- Specified by:
getEndSessionEndpointURI
in interfaceReadOnlyOIDCProviderEndpointMetadata
- Returns:
- The logoout endpoint URI,
null
if not specified.
-
setEndSessionEndpointURI
Sets the logout endpoint URI. Corresponds to theend_session_endpoint
metadata field.- Parameters:
endSessionEndpoint
- The logoout endpoint URI,null
if not specified.
-
getACRs
Description copied from interface:ReadOnlyOIDCProviderMetadata
Gets the supported Authentication Context Class References (ACRs). Corresponds to theacr_values_supported
metadata field.- Specified by:
getACRs
in interfaceReadOnlyOIDCProviderMetadata
- Returns:
- The supported ACRs,
null
if not specified.
-
setACRs
Sets the supported Authentication Context Class References (ACRs). Corresponds to theacr_values_supported
metadata field.- Parameters:
acrValues
- The supported ACRs,null
if not specified.
-
getSubjectTypes
Description copied from interface:ReadOnlyOIDCProviderMetadata
Gets the supported subject types. Corresponds to thesubject_types_supported
metadata field.- Specified by:
getSubjectTypes
in interfaceReadOnlyOIDCProviderMetadata
- Returns:
- The supported subject types.
-
getIDTokenJWSAlgs
Description copied from interface:ReadOnlyOIDCProviderMetadata
Gets the supported JWS algorithms for ID tokens. Corresponds to theid_token_signing_alg_values_supported
metadata field.- Specified by:
getIDTokenJWSAlgs
in interfaceReadOnlyOIDCProviderMetadata
- Returns:
- The supported JWS algorithms,
null
if not specified.
-
setIDTokenJWSAlgs
Sets the supported JWS algorithms for ID tokens. Corresponds to theid_token_signing_alg_values_supported
metadata field.- Parameters:
idTokenJWSAlgs
- The supported JWS algorithms,null
if not specified.
-
getIDTokenJWEAlgs
Description copied from interface:ReadOnlyOIDCProviderMetadata
Gets the supported JWE algorithms for ID tokens. Corresponds to theid_token_encryption_alg_values_supported
metadata field.- Specified by:
getIDTokenJWEAlgs
in interfaceReadOnlyOIDCProviderMetadata
- Returns:
- The supported JWE algorithms,
null
if not specified.
-
setIDTokenJWEAlgs
Sets the supported JWE algorithms for ID tokens. Corresponds to theid_token_encryption_alg_values_supported
metadata field.- Parameters:
idTokenJWEAlgs
- The supported JWE algorithms,null
if not specified.
-
getIDTokenJWEEncs
Description copied from interface:ReadOnlyOIDCProviderMetadata
Gets the supported encryption methods for ID tokens. Corresponds to theid_token_encryption_enc_values_supported
metadata field.- Specified by:
getIDTokenJWEEncs
in interfaceReadOnlyOIDCProviderMetadata
- Returns:
- The supported encryption methods,
null
if not specified.
-
setIDTokenJWEEncs
Sets the supported encryption methods for ID tokens. Corresponds to theid_token_encryption_enc_values_supported
metadata field.- Parameters:
idTokenJWEEncs
- The supported encryption methods,null
if not specified.
-
getUserInfoJWSAlgs
Description copied from interface:ReadOnlyOIDCProviderMetadata
Gets the supported JWS algorithms for UserInfo JWTs. Corresponds to theuserinfo_signing_alg_values_supported
metadata field.- Specified by:
getUserInfoJWSAlgs
in interfaceReadOnlyOIDCProviderMetadata
- Returns:
- The supported JWS algorithms,
null
if not specified.
-
setUserInfoJWSAlgs
Sets the supported JWS algorithms for UserInfo JWTs. Corresponds to theuserinfo_signing_alg_values_supported
metadata field.- Parameters:
userInfoJWSAlgs
- The supported JWS algorithms,null
if not specified.
-
getUserInfoJWEAlgs
Description copied from interface:ReadOnlyOIDCProviderMetadata
Gets the supported JWE algorithms for UserInfo JWTs. Corresponds to theuserinfo_encryption_alg_values_supported
metadata field.- Specified by:
getUserInfoJWEAlgs
in interfaceReadOnlyOIDCProviderMetadata
- Returns:
- The supported JWE algorithms,
null
if not specified.
-
setUserInfoJWEAlgs
Sets the supported JWE algorithms for UserInfo JWTs. Corresponds to theuserinfo_encryption_alg_values_supported
metadata field.- Parameters:
userInfoJWEAlgs
- The supported JWE algorithms,null
if not specified.
-
getUserInfoJWEEncs
Description copied from interface:ReadOnlyOIDCProviderMetadata
Gets the supported encryption methods for UserInfo JWTs. Corresponds to theuserinfo_encryption_enc_values_supported
metadata field.- Specified by:
getUserInfoJWEEncs
in interfaceReadOnlyOIDCProviderMetadata
- Returns:
- The supported encryption methods,
null
if not specified.
-
setUserInfoJWEEncs
Sets the supported encryption methods for UserInfo JWTs. Corresponds to theuserinfo_encryption_enc_values_supported
metadata field.- Parameters:
userInfoJWEEncs
- The supported encryption methods,null
if not specified.
-
getDisplays
Description copied from interface:ReadOnlyOIDCProviderMetadata
Gets the supported displays. Corresponds to thedisplay_values_supported
metadata field.- Specified by:
getDisplays
in interfaceReadOnlyOIDCProviderMetadata
- Returns:
- The supported displays,
null
if not specified.
-
setDisplays
Sets the supported displays. Corresponds to thedisplay_values_supported
metadata field.- Parameters:
displays
- The supported displays,null
if not specified.
-
getClaimTypes
Description copied from interface:ReadOnlyOIDCProviderMetadata
Gets the supported claim types. Corresponds to theclaim_types_supported
metadata field.- Specified by:
getClaimTypes
in interfaceReadOnlyOIDCProviderMetadata
- Returns:
- The supported claim types,
null
if not specified.
-
setClaimTypes
Sets the supported claim types. Corresponds to theclaim_types_supported
metadata field.- Parameters:
claimTypes
- The supported claim types,null
if not specified.
-
getClaims
Description copied from interface:ReadOnlyOIDCProviderMetadata
Gets the supported claims names. Corresponds to theclaims_supported
metadata field.- Specified by:
getClaims
in interfaceReadOnlyOIDCProviderMetadata
- Returns:
- The supported claims names,
null
if not specified.
-
setClaims
Sets the supported claims names. Corresponds to theclaims_supported
metadata field.- Parameters:
claims
- The supported claims names,null
if not specified.
-
getClaimsLocales
Description copied from interface:ReadOnlyOIDCProviderMetadata
Gets the supported claims locales. Corresponds to theclaims_locales_supported
metadata field.- Specified by:
getClaimsLocales
in interfaceReadOnlyOIDCProviderMetadata
- Returns:
- The supported claims locales,
null
if not specified.
-
setClaimLocales
Sets the supported claims locales. Corresponds to theclaims_locales_supported
metadata field.- Parameters:
claimsLocales
- The supported claims locales,null
if not specified.
-
supportsClaimsParam
Description copied from interface:ReadOnlyOIDCProviderMetadata
Gets the support for theclaims
authorisation request parameter. Corresponds to theclaims_parameter_supported
metadata field.- Specified by:
supportsClaimsParam
in interfaceReadOnlyOIDCProviderMetadata
- Returns:
true
if theclaim
parameter is supported, elsefalse
.
-
setSupportsClaimsParams
Sets the support for theclaims
authorisation request parameter. Corresponds to theclaims_parameter_supported
metadata field.- Parameters:
claimsParamSupported
-true
if theclaim
parameter is supported, elsefalse
.
-
supportsFrontChannelLogout
Description copied from interface:ReadOnlyOIDCProviderMetadata
Gets the support for front-channel logout. Corresponds to thefrontchannel_logout_supported
metadata field.- Specified by:
supportsFrontChannelLogout
in interfaceReadOnlyOIDCProviderMetadata
- Returns:
true
if front-channel logout is supported, elsefalse
.
-
setSupportsFrontChannelLogout
Sets the support for front-channel logout. Corresponds to thefrontchannel_logout_supported
metadata field.- Parameters:
frontChannelLogoutSupported
-true
if front-channel logout is supported, elsefalse
.
-
supportsFrontChannelLogoutSession
Description copied from interface:ReadOnlyOIDCProviderMetadata
Gets the support for front-channel logout with a session ID. Corresponds to thefrontchannel_logout_session_supported
metadata field.- Specified by:
supportsFrontChannelLogoutSession
in interfaceReadOnlyOIDCProviderMetadata
- Returns:
true
if front-channel logout with a session ID is supported, elsefalse
.
-
setSupportsFrontChannelLogoutSession
Sets the support for front-channel logout with a session ID. Corresponds to thefrontchannel_logout_session_supported
metadata field.- Parameters:
frontChannelLogoutSessionSupported
-true
if front-channel logout with a session ID is supported, elsefalse
.
-
supportsBackChannelLogout
Description copied from interface:ReadOnlyOIDCProviderMetadata
Gets the support for back-channel logout. Corresponds to thebackchannel_logout_supported
metadata field.- Specified by:
supportsBackChannelLogout
in interfaceReadOnlyOIDCProviderMetadata
- Returns:
true
if back-channel logout is supported, elsefalse
.
-
setSupportsBackChannelLogout
Sets the support for back-channel logout. Corresponds to thebackchannel_logout_supported
metadata field.- Parameters:
backChannelLogoutSupported
-true
if back-channel logout is supported, elsefalse
.
-
supportsBackChannelLogoutSession
Description copied from interface:ReadOnlyOIDCProviderMetadata
Gets the support for back-channel logout with a session ID. Corresponds to thebackchannel_logout_session_supported
metadata field.- Specified by:
supportsBackChannelLogoutSession
in interfaceReadOnlyOIDCProviderMetadata
- Returns:
true
if back-channel logout with a session ID is supported, elsefalse
.
-
setSupportsBackChannelLogoutSession
Sets the support for back-channel logout with a session ID. Corresponds to thebackchannel_logout_session_supported
metadata field.- Parameters:
backChannelLogoutSessionSupported
-true
if back-channel logout with a session ID is supported, elsefalse
.
-
supportsVerifiedClaims
Description copied from interface:ReadOnlyOIDCProviderMetadata
Gets support for verified claims. Corresponds to theverified_claims_supported
metadata field.- Specified by:
supportsVerifiedClaims
in interfaceReadOnlyOIDCProviderMetadata
- Returns:
true
if verified claims are supported, elsefalse
.
-
setSupportsVerifiedClaims
Sets support for verified claims. Corresponds to theverified_claims_supported
metadata field.- Parameters:
verifiedClaimsSupported
-true
if verified claims are supported, elsefalse
.
-
getIdentityTrustFrameworks
Description copied from interface:ReadOnlyOIDCProviderMetadata
Gets the supported identity trust frameworks. Corresponds to thetrust_frameworks_supported
metadata field.- Specified by:
getIdentityTrustFrameworks
in interfaceReadOnlyOIDCProviderMetadata
- Returns:
- The supported identity trust frameworks,
null
if not specified.
-
setIdentityTrustFrameworks
Sets the supported identity trust frameworks. Corresponds to thetrust_frameworks_supported
metadata field.- Parameters:
trustFrameworks
- The supported identity trust frameworks,null
if not specified.
-
getIdentityEvidenceTypes
Description copied from interface:ReadOnlyOIDCProviderMetadata
Gets the supported identity evidence types. Corresponds to theevidence_supported
metadata field.- Specified by:
getIdentityEvidenceTypes
in interfaceReadOnlyOIDCProviderMetadata
- Returns:
- The supported identity evidence types,
null
if not specified.
-
setIdentityEvidenceTypes
Sets the supported identity evidence types. Corresponds to theevidence_supported
metadata field.- Parameters:
evidenceTypes
- The supported identity evidence types,null
if not specified.
-
getDocumentTypes
Description copied from interface:ReadOnlyOIDCProviderMetadata
Gets the supported identity document types. Corresponds to thedocuments_supported
metadata field.- Specified by:
getDocumentTypes
in interfaceReadOnlyOIDCProviderMetadata
- Returns:
- The supported identity document types,
null
if not specified.
-
setDocumentTypes
Sets the supported identity document types. Corresponds to thedocuments_supported
metadata field.- Parameters:
documentTypes
- The supported identity document types,null
if not specified.
-
getIdentityDocumentTypes
Deprecated.Description copied from interface:ReadOnlyOIDCProviderMetadata
Gets the supported identity document types. Corresponds to theid_documents_supported
metadata field.- Specified by:
getIdentityDocumentTypes
in interfaceReadOnlyOIDCProviderMetadata
- Returns:
- The supported identity documents types,
null
if not specified.
-
setIdentityDocumentTypes
Deprecated.Sets the supported identity document types. Corresponds to theid_documents_supported
metadata field.- Parameters:
idDocuments
- The supported identity document types,null
if not specified.
-
getDocumentMethods
Description copied from interface:ReadOnlyOIDCProviderMetadata
Gets the supported coarse identity verification methods for evidences of type document. Corresponds to thedocuments_methods_supported
metadata field.- Specified by:
getDocumentMethods
in interfaceReadOnlyOIDCProviderMetadata
- Returns:
- The supported identity verification methods for document
evidences,
null
if not specified.
-
setDocumentMethods
Sets the supported coarse identity verification methods for evidences of type document. Corresponds to thedocuments_methods_supported
metadata field.- Parameters:
methods
- The supported identity verification methods for document evidences,null
if not specified.
-
getDocumentValidationMethods
Description copied from interface:ReadOnlyOIDCProviderMetadata
Gets the supported validation methods for evidences of type document. Corresponds to thedocuments_validation_methods_supported
metadata field.- Specified by:
getDocumentValidationMethods
in interfaceReadOnlyOIDCProviderMetadata
- Returns:
- The validation methods for document evidences,
null
if not specified.
-
setDocumentValidationMethods
Sets the supported validation methods for evidences of type document. Corresponds to thedocuments_validation_methods_supported
metadata field.- Parameters:
methods
- The validation methods for document evidences,null
if not specified.
-
getDocumentVerificationMethods
Description copied from interface:ReadOnlyOIDCProviderMetadata
Gets the supported verification methods for evidences of type document. Corresponds to thedocuments_verification_methods_supported
metadata field.- Specified by:
getDocumentVerificationMethods
in interfaceReadOnlyOIDCProviderMetadata
- Returns:
- The verification methods for document evidences,
null
if not specified.
-
setDocumentVerificationMethods
Sets the supported verification methods for evidences of type document. Corresponds to thedocuments_verification_methods_supported
metadata field.- Parameters:
methods
- The verification methods for document evidences,null
if not specified.
-
getElectronicRecordTypes
Description copied from interface:ReadOnlyOIDCProviderMetadata
Gets the supported electronic record types. Corresponds to theelectronic_records_supported
metadata field.- Specified by:
getElectronicRecordTypes
in interfaceReadOnlyOIDCProviderMetadata
- Returns:
- The supported electronic record types,
null
if not specified.
-
setElectronicRecordTypes
Sets the supported electronic record types. Corresponds to theelectronic_records_supported
metadata field.- Parameters:
electronicRecordTypes
- The supported electronic record types,null
if not specified.
-
getIdentityVerificationMethods
Deprecated.Description copied from interface:ReadOnlyOIDCProviderMetadata
Gets the supported identity verification methods. Corresponds to theid_documents_verification_methods_supported
metadata field.- Specified by:
getIdentityVerificationMethods
in interfaceReadOnlyOIDCProviderMetadata
- Returns:
- The supported identity verification methods,
null
if not specified.
-
setIdentityVerificationMethods
@Deprecated public void setIdentityVerificationMethods(List<IdentityVerificationMethod> idVerificationMethods) Deprecated.Sets the supported identity verification methods. Corresponds to theid_documents_verification_methods_supported
metadata field.- Parameters:
idVerificationMethods
- The supported identity verification methods,null
if not specified.
-
getVerifiedClaims
Description copied from interface:ReadOnlyOIDCProviderMetadata
Gets the names of the supported verified claims. Corresponds to theclaims_in_verified_claims_supported
metadata field.- Specified by:
getVerifiedClaims
in interfaceReadOnlyOIDCProviderMetadata
- Returns:
- The supported verified claims names,
null
if not specified.
-
setVerifiedClaims
Sets the names of the supported verified claims. Corresponds to theclaims_in_verified_claims_supported
metadata field.- Parameters:
verifiedClaims
- The supported verified claims names,null
if not specified.
-
getAttachmentTypes
Description copied from interface:ReadOnlyOIDCProviderMetadata
Gets the supported evidence attachment types. Corresponds to theattachments_supported
metadata field.- Specified by:
getAttachmentTypes
in interfaceReadOnlyOIDCProviderMetadata
- Returns:
- The supported evidence attachment types, empty if
attachments are not supported,
null
if not specified.
-
setAttachmentTypes
Sets the supported evidence attachment types. Corresponds to theattachments_supported
metadata field.- Parameters:
attachmentTypes
- The supported evidence attachment types, empty if attachments are not supported,null
if not specified.
-
getAttachmentDigestAlgs
Description copied from interface:ReadOnlyOIDCProviderMetadata
Gets the supported digest algorithms for the external evidence attachments. Corresponds to thedigest_algorithms_supported
metadata field.- Specified by:
getAttachmentDigestAlgs
in interfaceReadOnlyOIDCProviderMetadata
- Returns:
- The supported digest algorithms,
null
if not specified.
-
setAttachmentDigestAlgs
Sets the supported digest algorithms for the external evidence attachments. Corresponds to thedigest_algorithms_supported
metadata field.- Parameters:
digestAlgs
- The supported digest algorithms,null
if not specified.
-
applyDefaults
Applies the OpenID Provider metadata defaults where no values have been specified.- The response modes default to
["query", "fragment"]
. - The grant types default to
["authorization_code", "implicit"]
. - The token endpoint authentication methods default to
["client_secret_basic"]
. - The claim types default to
["normal]
.
- Overrides:
applyDefaults
in classAuthorizationServerMetadata
- The response modes default to
-
toJSONObject
Description copied from interface:ReadOnlyAuthorizationServerEndpointMetadata
Returns the JSON object representation of the metadata.- Specified by:
toJSONObject
in interfaceReadOnlyAuthorizationServerEndpointMetadata
- Specified by:
toJSONObject
in interfaceReadOnlyAuthorizationServerMetadata
- Overrides:
toJSONObject
in classAuthorizationServerMetadata
- Returns:
- The JSON object.
-
parse
public static OIDCProviderMetadata parse(net.minidev.json.JSONObject jsonObject) throws ParseException Parses an OpenID Provider metadata from the specified JSON object.- Parameters:
jsonObject
- The JSON object to parse. Must not benull
.- Returns:
- The OpenID Provider metadata.
- Throws:
ParseException
- If the JSON object couldn't be parsed to an OpenID Provider metadata.
-
parse
Parses an OpenID Provider metadata from the specified JSON object string.- Parameters:
s
- The JSON object sting to parse. Must not benull
.- Returns:
- The OpenID Provider metadata.
- Throws:
ParseException
- If the JSON object string couldn't be parsed to an OpenID Provider metadata.
-
resolveURL
Resolves OpenID Provider metadata URL from the specified issuer identifier.- Parameters:
issuer
- The OpenID Provider issuer identifier. Must represent a valid HTTPS or HTTP URL. Must not benull
.- Returns:
- The OpenID Provider metadata URL.
- Throws:
GeneralException
- If the issuer identifier is invalid.
-
resolve
Resolves OpenID Provider metadata from the specified issuer identifier. The metadata is downloaded by HTTP GET from[issuer-url]/.well-known/openid-configuration
.- Parameters:
issuer
- The OpenID Provider issuer identifier. Must represent a valid HTTPS or HTTP URL. Must not benull
.- Returns:
- The OpenID Provider metadata.
- Throws:
GeneralException
- If the issuer identifier or the downloaded metadata are invalid.IOException
- On a HTTP exception.
-
resolve
public static OIDCProviderMetadata resolve(Issuer issuer, int connectTimeout, int readTimeout) throws GeneralException, IOException Resolves OpenID Provider metadata from the specified issuer identifier. The metadata is downloaded by HTTP GET from[issuer-url]/.well-known/openid-configuration
, using the specified HTTP timeouts.- Parameters:
issuer
- The issuer identifier. Must represent a valid HTTPS or HTTP URL. Must not benull
.connectTimeout
- The HTTP connect timeout, in milliseconds. Zero implies no timeout. Must not be negative.readTimeout
- The HTTP response read timeout, in milliseconds. Zero implies no timeout. Must not be negative.- Returns:
- The OpenID Provider metadata.
- Throws:
GeneralException
- If the issuer identifier or the downloaded metadata are invalid.IOException
- On an HTTP exception.
-
resolve
public static OIDCProviderMetadata resolve(Issuer issuer, HTTPRequestConfigurator requestConfigurator) throws GeneralException, IOException Resolves OpenID Provider metadata from the specified issuer identifier. The metadata is downloaded by HTTP GET from[issuer-url]/.well-known/openid-configuration
, using the specified HTTP request configurator.- Parameters:
issuer
- The issuer identifier. Must represent a valid HTTPS or HTTP URL. Must not benull
.requestConfigurator
- AnHTTPRequestConfigurator
instance to perform additionalHTTPRequest
configuration to fetch the OpenID Provider metadata. Must not benull
.- Returns:
- The OpenID Provider metadata.
- Throws:
GeneralException
- If the issuer identifier or the downloaded metadata are invalid.IOException
- On an HTTP exception.
-
setDocumentTypes(java.util.List<com.nimbusds.openid.connect.sdk.assurance.evidences.DocumentType>)
instead.