Package com.nimbusds.oauth2.sdk.as
Class AuthorizationServerMetadata
java.lang.Object
com.nimbusds.oauth2.sdk.as.AuthorizationServerEndpointMetadata
com.nimbusds.oauth2.sdk.as.AuthorizationServerMetadata
- All Implemented Interfaces:
ReadOnlyAuthorizationServerEndpointMetadata
,ReadOnlyAuthorizationServerMetadata
- Direct Known Subclasses:
OIDCProviderMetadata
public class AuthorizationServerMetadata
extends AuthorizationServerEndpointMetadata
implements ReadOnlyAuthorizationServerMetadata
OAuth 2.0 Authorisation Server (AS) metadata.
Related specifications:
- OAuth 2.0 Authorization Server Metadata (RFC 8414)
- OAuth 2.0 Mutual TLS Client Authentication and Certificate Bound Access Tokens (RFC 8705)
- OAuth 2.0 Demonstrating Proof-of-Possession at the Application Layer (DPoP) (RFC 9449)
- 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)
- OpenID Connect Client Initiated Backchannel Authentication Flow - Core 1.0
- OAuth 2.0 Incremental Authorization (draft-ietf-oauth-incremental-authz)
- Initiating User Registration via OpenID Connect 1.0
- OpenID Connect Federation 1.0
-
Constructor Summary
ConstructorsConstructorDescriptionAuthorizationServerMetadata
(Issuer issuer) Creates a new OAuth 2.0 Authorisation Server (AS) metadata instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Applies the OAuth 2.0 Authorisation Server metadata defaults where no values have been specified.Gets the supported authorisation details types for Rich Authorisation Requests (RAR).List<com.nimbusds.jose.JWEAlgorithm>
Gets the supported JWE algorithms for JWT-encoded authorisation responses.List<com.nimbusds.jose.EncryptionMethod>
Gets the supported encryption methods for JWT-encoded authorisation responses.List<com.nimbusds.jose.JWSAlgorithm>
Gets the supported JWS algorithms for JWT-encoded authorisation responses.List<com.nimbusds.jose.JWSAlgorithm>
Gets the supported JWS algorithms for CIBA requests.Gets the supported CIBA token delivery modes.List<com.nimbusds.jose.JWSAlgorithm>
Gets the supported JWS algorithms for authenticating automatic OpenID Connect Federation 1.0 client registration requests.Gets the supported request authentication methods for automatic OpenID Connect Federation 1.0 client registration.Gets the supported OpenID Connect Federation 1.0 client registration types.Gets the supported authorisation code challenge methods for PKCE.getCustomParameter
(String name) Gets the specified custom (not registered) parameter.net.minidev.json.JSONObject
Gets the custom (not registered) parameters.getCustomURIParameter
(String name) Gets the specified custom (not registered) URI parameter.List<com.nimbusds.jose.JWSAlgorithm>
Gets the supported JWS algorithms for Demonstrating Proof-of-Possession at the Application Layer (DPoP).Gets the federation registration endpoint URI.Gets the supported OAuth 2.0 grant types.Gets the supported OAuth 2.0 client types for incremental authorisation.Gets the supported introspection endpoint authentication methods.List<com.nimbusds.jose.JWSAlgorithm>
Gets the supported JWS algorithms for theprivate_key_jwt
andclient_secret_jwt
introspection endpoint authentication methods.Gets the issuer identifier.com.nimbusds.jose.jwk.JWKSet
Gets the JWK set (OpenID Connect Federation 1.0).Gets the JSON Web Key (JWK) set URI.Gets the aliases for communication with mutual TLS.Gets the organisation name (OpenID Connect Federation 1.0).Gets the provider's policy regarding relying party use of data.Gets the supportedprompt types
.Gets the aliases for communication with mutual TLS.Gets the registered OpenID Connect provider metadata parameter names.List<com.nimbusds.jose.JWEAlgorithm>
Gets the supported JWE algorithms for request objects.List<com.nimbusds.jose.EncryptionMethod>
Gets the supported encryption methods for request objects.List<com.nimbusds.jose.JWSAlgorithm>
Gets the supported JWS algorithms for request objects.Gets the supported response mode values.Gets the supported response type values.Gets the supported revocation endpoint authentication methods.List<com.nimbusds.jose.JWSAlgorithm>
Gets the supported JWS algorithms for theprivate_key_jwt
andclient_secret_jwt
revocation endpoint authentication methods.Gets the supported scope values.Gets the service documentation URI.Gets the signed JWK set URI (OpenID Connect Federation 1.0).Gets the provider's terms of service.Gets the supported token endpoint authentication methods.List<com.nimbusds.jose.JWSAlgorithm>
Gets the supported JWS algorithms for theprivate_key_jwt
andclient_secret_jwt
token endpoint authentication methods.List<com.nimbusds.langtag.LangTag>
Gets the supported UI locales.static AuthorizationServerMetadata
Parses an OAuth 2.0 Authorisation Server metadata from the specified JSON object string.static AuthorizationServerMetadata
parse
(net.minidev.json.JSONObject jsonObject) Parses an OAuth 2.0 Authorisation Server metadata from the specified JSON object.boolean
Gets the requirement for pushed authorisation requests (PAR).void
requiresPushedAuthorizationRequests
(boolean requirePAR) Sets the requirement for pushed authorisation requests (PAR).boolean
Gets the requirement for therequest_uri
parameter pre-registration.static AuthorizationServerMetadata
Resolves OAuth 2.0 authorisation server metadata from the specified issuer identifier.static AuthorizationServerMetadata
Resolves OAuth 2.0 authorisation server metadata from the specified issuer identifier.static AuthorizationServerMetadata
resolve
(Issuer issuer, HTTPRequestConfigurator requestConfigurator) Resolves OAuth 2.0 authorisation server metadata from the specified issuer identifier.static URL
resolveURL
(Issuer issuer) Resolves OAuth 2.0 authorisation server metadata URL from the specified issuer identifier.void
setAuthorizationDetailsTypes
(List<AuthorizationType> authzTypes) Sets the supported authorisation details types for Rich Authorisation Requests (RAR).void
setAuthorizationJWEAlgs
(List<com.nimbusds.jose.JWEAlgorithm> authzJWEAlgs) Sets the supported JWE algorithms for JWT-encoded authorisation responses.void
setAuthorizationJWEEncs
(List<com.nimbusds.jose.EncryptionMethod> authzJWEEncs) Sets the supported encryption methods for JWT-encoded authorisation responses.void
setAuthorizationJWSAlgs
(List<com.nimbusds.jose.JWSAlgorithm> authzJWSAlgs) Sets the supported JWS algorithms for JWT-encoded authorisation responses.void
setBackChannelAuthenticationRequestJWSAlgs
(List<com.nimbusds.jose.JWSAlgorithm> backChannelAuthRequestJWSAlgs) Gets the supported JWS algorithms for CIBA requests.void
setBackChannelTokenDeliveryModes
(List<BackChannelTokenDeliveryMode> backChannelTokenDeliveryModes) Sets the supported CIBA token delivery modes.void
setClientRegistrationAuthnJWSAlgs
(List<com.nimbusds.jose.JWSAlgorithm> jwsAlgs) Sets the supported JWS algorithms for authenticating automatic OpenID Connect Federation 1.0 client registration requests.void
Sets the supported request authentication methods for automatic OpenID Connect Federation 1.0 client registration.void
setClientRegistrationTypes
(List<ClientRegistrationType> clientRegistrationTypes) Sets the supported federation client registration types.void
setCodeChallengeMethods
(List<CodeChallengeMethod> codeChallengeMethods) Gets the supported authorisation code challenge methods for PKCE.void
setCustomParameter
(String name, Object value) Sets the specified custom (not registered) parameter.void
setDPoPJWSAlgs
(List<com.nimbusds.jose.JWSAlgorithm> dPoPJWSAlgs) Sets the supported JWS algorithms for Demonstrating Proof-of-Possession at the Application Layer (DPoP).void
setFederationRegistrationEndpointURI
(URI federationRegistrationEndpoint) Sets the federation registration endpoint URI.void
setGrantTypes
(List<GrantType> gts) Sets the supported OAuth 2.0 grant types.void
setIncrementalAuthorizationTypes
(List<ClientType> incrementalAuthzTypes) Sets the supported OAuth 2.0 client types for incremental authorisation.void
Sets the supported introspection endpoint authentication methods.void
setIntrospectionEndpointJWSAlgs
(List<com.nimbusds.jose.JWSAlgorithm> jwsAlgs) Sets the supported JWS algorithms for theprivate_key_jwt
andclient_secret_jwt
introspection endpoint authentication methods.void
setJWKSet
(com.nimbusds.jose.jwk.JWKSet jwkSet) Sets the JWK set (OpenID Connect Federation 1.0).void
setJWKSetURI
(URI jwkSetURI) Sets the JSON Web Key (JWT) set URI.void
setMtlsEndpointAliases
(AuthorizationServerEndpointMetadata mtlsEndpointAliases) Sets the aliases for communication with mutual TLS.void
setOrganizationName
(String organizationName) Sets the organisation name (in federation).void
setPolicyURI
(URI policyURI) Sets the provider's policy regarding relying party use of data.void
setPromptTypes
(List<Prompt.Type> promptTypes) Sets the supportedprompt types
.void
setRequestObjectJWEAlgs
(List<com.nimbusds.jose.JWEAlgorithm> requestObjectJWEAlgs) Sets the supported JWE algorithms for request objects.void
setRequestObjectJWEEncs
(List<com.nimbusds.jose.EncryptionMethod> requestObjectJWEEncs) Sets the supported encryption methods for request objects.void
setRequestObjectJWSAlgs
(List<com.nimbusds.jose.JWSAlgorithm> requestObjectJWSAlgs) Sets the supported JWS algorithms for request objects.void
setRequiresRequestURIRegistration
(boolean requireRequestURIReg) Sets the requirement for therequest_uri
parameter pre-registration.void
setResponseModes
(List<ResponseMode> rms) Sets the supported response mode values.void
setResponseTypes
(List<ResponseType> rts) Sets the supported response type values.void
setRevocationEndpointAuthMethods
(List<ClientAuthenticationMethod> authMethods) Sets the supported revocation endpoint authentication methods.void
setRevocationEndpointJWSAlgs
(List<com.nimbusds.jose.JWSAlgorithm> jwsAlgs) Sets the supported JWS algorithms for theprivate_key_jwt
andclient_secret_jwt
revocation endpoint authentication methods.void
Sets the supported scope values.void
setServiceDocsURI
(URI serviceDocsURI) Sets the service documentation URI.void
setSignedJWKSetURI
(URI signedJWKSetURI) Sets the signed JWK set URI (OpenID Connect Federation 1.0).void
setSupportsAuthorizationResponseIssuerParam
(boolean authzResponseIssParameterSupported) Sets the support for theiss
authorisation response parameter.void
setSupportsBackChannelUserCodeParam
(boolean backChannelUserCodeSupported) Sets the support for theuser_code
CIBA request parameter.void
setSupportsMutualTLSSenderConstrainedAccessTokens
(boolean mutualTLSSenderConstrainedAccessTokens) Deprecated.void
setSupportsRequestParam
(boolean requestParamSupported) Sets the support for therequest
authorisation request parameter.void
setSupportsRequestURIParam
(boolean requestURIParamSupported) Sets the support for therequest_uri
authorisation request parameter.void
setSupportsTLSClientCertificateBoundAccessTokens
(boolean tlsClientCertBoundTokens) Sets the support for TLS client certificate bound access tokens.void
setTermsOfServiceURI
(URI tosURI) Sets the provider's terms of service.void
setTokenEndpointAuthMethods
(List<ClientAuthenticationMethod> authMethods) Sets the supported token endpoint authentication methods.void
setTokenEndpointJWSAlgs
(List<com.nimbusds.jose.JWSAlgorithm> jwsAlgs) Sets the supported JWS algorithms for theprivate_key_jwt
andclient_secret_jwt
token endpoint authentication methods.void
setUILocales
(List<com.nimbusds.langtag.LangTag> uiLocales) Sets the supported UI locales.boolean
Gets the support for theiss
authorisation response parameter.boolean
Gets the support for theuser_code
CIBA request parameter.boolean
Deprecated.boolean
Gets the support for therequest
authorisation request parameter.boolean
Gets the support for therequest_uri
authorisation request parameter.boolean
Gets the support for TLS client certificate bound access tokens.net.minidev.json.JSONObject
Returns the JSON object representation of the metadata.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, getIntrospectionEndpointURI, getPushedAuthorizationRequestEndpointURI, getRegistrationEndpointURI, getRequestObjectEndpoint, getRevocationEndpointURI, getTokenEndpointURI
-
Constructor Details
-
AuthorizationServerMetadata
Creates a new OAuth 2.0 Authorisation Server (AS) metadata instance.- Parameters:
issuer
- The issuer identifier. Must be a URI using the https scheme with no query or fragment component. Must not benull
.
-
-
Method Details
-
getRegisteredParameterNames
Gets the registered OpenID Connect provider metadata parameter names.- Returns:
- The registered OpenID Connect provider metadata parameter names, as an unmodifiable set.
-
getIssuer
Description copied from interface:ReadOnlyAuthorizationServerMetadata
Gets the issuer identifier. Corresponds to theissuer
metadata field.- Specified by:
getIssuer
in interfaceReadOnlyAuthorizationServerMetadata
- Returns:
- The issuer identifier.
-
getJWKSetURI
Description copied from interface:ReadOnlyAuthorizationServerMetadata
Gets the JSON Web Key (JWK) set URI. Corresponds to thejwks_uri
metadata field.- Specified by:
getJWKSetURI
in interfaceReadOnlyAuthorizationServerMetadata
- Returns:
- The JWK set URI,
null
if not specified.
-
setJWKSetURI
Sets the JSON Web Key (JWT) set URI. Corresponds to thejwks_uri
metadata field.- Parameters:
jwkSetURI
- The JWK set URI,null
if not specified.
-
getScopes
Description copied from interface:ReadOnlyAuthorizationServerMetadata
Gets the supported scope values. Corresponds to thescopes_supported
metadata field.- Specified by:
getScopes
in interfaceReadOnlyAuthorizationServerMetadata
- Returns:
- The supported scope values,
null
if not specified.
-
setScopes
Sets the supported scope values. Corresponds to thescopes_supported
metadata field.- Parameters:
scope
- The supported scope values,null
if not specified.
-
getResponseTypes
Description copied from interface:ReadOnlyAuthorizationServerMetadata
Gets the supported response type values. Corresponds to theresponse_types_supported
metadata field.- Specified by:
getResponseTypes
in interfaceReadOnlyAuthorizationServerMetadata
- Returns:
- The supported response type values,
null
if not specified.
-
setResponseTypes
Sets the supported response type values. Corresponds to theresponse_types_supported
metadata field.- Parameters:
rts
- The supported response type values,null
if not specified.
-
getResponseModes
Description copied from interface:ReadOnlyAuthorizationServerMetadata
Gets the supported response mode values. Corresponds to theresponse_modes_supported
.- Specified by:
getResponseModes
in interfaceReadOnlyAuthorizationServerMetadata
- Returns:
- The supported response mode values,
null
if not specified.
-
setResponseModes
Sets the supported response mode values. Corresponds to theresponse_modes_supported
.- Parameters:
rms
- The supported response mode values,null
if not specified.
-
getGrantTypes
Description copied from interface:ReadOnlyAuthorizationServerMetadata
Gets the supported OAuth 2.0 grant types. Corresponds to thegrant_types_supported
metadata field.- Specified by:
getGrantTypes
in interfaceReadOnlyAuthorizationServerMetadata
- Returns:
- The supported grant types,
null
if not specified.
-
setGrantTypes
Sets the supported OAuth 2.0 grant types. Corresponds to thegrant_types_supported
metadata field.- Parameters:
gts
- The supported grant types,null
if not specified.
-
getCodeChallengeMethods
Description copied from interface:ReadOnlyAuthorizationServerMetadata
Gets the supported authorisation code challenge methods for PKCE. Corresponds to thecode_challenge_methods_supported
metadata field.- Specified by:
getCodeChallengeMethods
in interfaceReadOnlyAuthorizationServerMetadata
- Returns:
- The supported code challenge methods,
null
if not specified.
-
setCodeChallengeMethods
Gets the supported authorisation code challenge methods for PKCE. Corresponds to thecode_challenge_methods_supported
metadata field.- Parameters:
codeChallengeMethods
- The supported code challenge methods,null
if not specified.
-
getTokenEndpointAuthMethods
Description copied from interface:ReadOnlyAuthorizationServerMetadata
Gets the supported token endpoint authentication methods. Corresponds to thetoken_endpoint_auth_methods_supported
metadata field.- Specified by:
getTokenEndpointAuthMethods
in interfaceReadOnlyAuthorizationServerMetadata
- Returns:
- The supported token endpoint authentication methods,
null
if not specified.
-
setTokenEndpointAuthMethods
Sets the supported token endpoint authentication methods. Corresponds to thetoken_endpoint_auth_methods_supported
metadata field.- Parameters:
authMethods
- The supported token endpoint authentication methods,null
if not specified.
-
getTokenEndpointJWSAlgs
Description copied from interface:ReadOnlyAuthorizationServerMetadata
Gets the supported JWS algorithms for theprivate_key_jwt
andclient_secret_jwt
token endpoint authentication methods. Corresponds to thetoken_endpoint_auth_signing_alg_values_supported
metadata field.- Specified by:
getTokenEndpointJWSAlgs
in interfaceReadOnlyAuthorizationServerMetadata
- Returns:
- The supported JWS algorithms,
null
if not specified.
-
setTokenEndpointJWSAlgs
Sets the supported JWS algorithms for theprivate_key_jwt
andclient_secret_jwt
token endpoint authentication methods. Corresponds to thetoken_endpoint_auth_signing_alg_values_supported
metadata field.- Parameters:
jwsAlgs
- The supported JWS algorithms,null
if not specified. Must not contain thenone
algorithm.
-
getIntrospectionEndpointAuthMethods
Description copied from interface:ReadOnlyAuthorizationServerMetadata
Gets the supported introspection endpoint authentication methods. Corresponds to theintrospection_endpoint_auth_methods_supported
metadata field.- Specified by:
getIntrospectionEndpointAuthMethods
in interfaceReadOnlyAuthorizationServerMetadata
- Returns:
- The supported introspection endpoint authentication methods,
null
if not specified.
-
setIntrospectionEndpointAuthMethods
Sets the supported introspection endpoint authentication methods. Corresponds to theintrospection_endpoint_auth_methods_supported
metadata field.- Parameters:
authMethods
- The supported introspection endpoint authentication methods,null
if not specified.
-
getIntrospectionEndpointJWSAlgs
Description copied from interface:ReadOnlyAuthorizationServerMetadata
Gets the supported JWS algorithms for theprivate_key_jwt
andclient_secret_jwt
introspection endpoint authentication methods. Corresponds to theintrospection_endpoint_auth_signing_alg_values_supported
metadata field.- Specified by:
getIntrospectionEndpointJWSAlgs
in interfaceReadOnlyAuthorizationServerMetadata
- Returns:
- The supported JWS algorithms,
null
if not specified.
-
setIntrospectionEndpointJWSAlgs
Sets the supported JWS algorithms for theprivate_key_jwt
andclient_secret_jwt
introspection endpoint authentication methods. Corresponds to theintrospection_endpoint_auth_signing_alg_values_supported
metadata field.- Parameters:
jwsAlgs
- The supported JWS algorithms,null
if not specified. Must not contain thenone
algorithm.
-
getRevocationEndpointAuthMethods
Description copied from interface:ReadOnlyAuthorizationServerMetadata
Gets the supported revocation endpoint authentication methods. Corresponds to therevocation_endpoint_auth_methods_supported
metadata field.- Specified by:
getRevocationEndpointAuthMethods
in interfaceReadOnlyAuthorizationServerMetadata
- Returns:
- The supported revocation endpoint authentication methods,
null
if not specified.
-
setRevocationEndpointAuthMethods
Sets the supported revocation endpoint authentication methods. Corresponds to therevocation_endpoint_auth_methods_supported
metadata field.- Parameters:
authMethods
- The supported revocation endpoint authentication methods,null
if not specified.
-
getRevocationEndpointJWSAlgs
Description copied from interface:ReadOnlyAuthorizationServerMetadata
Gets the supported JWS algorithms for theprivate_key_jwt
andclient_secret_jwt
revocation endpoint authentication methods. Corresponds to therevocation_endpoint_auth_signing_alg_values_supported
metadata field.- Specified by:
getRevocationEndpointJWSAlgs
in interfaceReadOnlyAuthorizationServerMetadata
- Returns:
- The supported JWS algorithms,
null
if not specified.
-
setRevocationEndpointJWSAlgs
Sets the supported JWS algorithms for theprivate_key_jwt
andclient_secret_jwt
revocation endpoint authentication methods. Corresponds to therevocation_endpoint_auth_signing_alg_values_supported
metadata field.- Parameters:
jwsAlgs
- The supported JWS algorithms,null
if not specified. Must not contain thenone
algorithm.
-
getRequestObjectJWSAlgs
Description copied from interface:ReadOnlyAuthorizationServerMetadata
Gets the supported JWS algorithms for request objects. Corresponds to therequest_object_signing_alg_values_supported
metadata field.- Specified by:
getRequestObjectJWSAlgs
in interfaceReadOnlyAuthorizationServerMetadata
- Returns:
- The supported JWS algorithms,
null
if not specified.
-
setRequestObjectJWSAlgs
Sets the supported JWS algorithms for request objects. Corresponds to therequest_object_signing_alg_values_supported
metadata field.- Parameters:
requestObjectJWSAlgs
- The supported JWS algorithms,null
if not specified.
-
getRequestObjectJWEAlgs
Description copied from interface:ReadOnlyAuthorizationServerMetadata
Gets the supported JWE algorithms for request objects. Corresponds to therequest_object_encryption_alg_values_supported
metadata field.- Specified by:
getRequestObjectJWEAlgs
in interfaceReadOnlyAuthorizationServerMetadata
- Returns:
- The supported JWE algorithms,
null
if not specified.
-
setRequestObjectJWEAlgs
Sets the supported JWE algorithms for request objects. Corresponds to therequest_object_encryption_alg_values_supported
metadata field.- Parameters:
requestObjectJWEAlgs
- The supported JWE algorithms,null
if not specified.
-
getRequestObjectJWEEncs
Description copied from interface:ReadOnlyAuthorizationServerMetadata
Gets the supported encryption methods for request objects. Corresponds to therequest_object_encryption_enc_values_supported
metadata field.- Specified by:
getRequestObjectJWEEncs
in interfaceReadOnlyAuthorizationServerMetadata
- Returns:
- The supported encryption methods,
null
if not specified.
-
setRequestObjectJWEEncs
Sets the supported encryption methods for request objects. Corresponds to therequest_object_encryption_enc_values_supported
metadata field.- Parameters:
requestObjectJWEEncs
- The supported encryption methods,null
if not specified.
-
supportsRequestParam
Description copied from interface:ReadOnlyAuthorizationServerMetadata
Gets the support for therequest
authorisation request parameter. Corresponds to therequest_parameter_supported
metadata field.- Specified by:
supportsRequestParam
in interfaceReadOnlyAuthorizationServerMetadata
- Returns:
true
if thereqeust
parameter is supported, elsefalse
.
-
setSupportsRequestParam
Sets the support for therequest
authorisation request parameter. Corresponds to therequest_parameter_supported
metadata field.- Parameters:
requestParamSupported
-true
if thereqeust
parameter is supported, elsefalse
.
-
supportsRequestURIParam
Description copied from interface:ReadOnlyAuthorizationServerMetadata
Gets the support for therequest_uri
authorisation request parameter. Corresponds to therequest_uri_parameter_supported
metadata field.- Specified by:
supportsRequestURIParam
in interfaceReadOnlyAuthorizationServerMetadata
- Returns:
true
if therequest_uri
parameter is supported, elsefalse
.
-
setSupportsRequestURIParam
Sets the support for therequest_uri
authorisation request parameter. Corresponds to therequest_uri_parameter_supported
metadata field.- Parameters:
requestURIParamSupported
-true
if therequest_uri
parameter is supported, elsefalse
.
-
requiresRequestURIRegistration
Description copied from interface:ReadOnlyAuthorizationServerMetadata
Gets the requirement for therequest_uri
parameter pre-registration. Corresponds to therequire_request_uri_registration
metadata field.- Specified by:
requiresRequestURIRegistration
in interfaceReadOnlyAuthorizationServerMetadata
- Returns:
true
if therequest_uri
parameter values must be pre-registered, elsefalse
.
-
setRequiresRequestURIRegistration
Sets the requirement for therequest_uri
parameter pre-registration. Corresponds to therequire_request_uri_registration
metadata field.- Parameters:
requireRequestURIReg
-true
if therequest_uri
parameter values must be pre-registered, elsefalse
.
-
supportsAuthorizationResponseIssuerParam
Description copied from interface:ReadOnlyAuthorizationServerMetadata
Gets the support for theiss
authorisation response parameter. Corresponds to theauthorization_response_iss_parameter_supported
metadata field.- Specified by:
supportsAuthorizationResponseIssuerParam
in interfaceReadOnlyAuthorizationServerMetadata
- Returns:
true
if theiss
authorisation response parameter is provided, elsefalse
.
-
setSupportsAuthorizationResponseIssuerParam
Sets the support for theiss
authorisation response parameter. Corresponds to theauthorization_response_iss_parameter_supported
metadata field.- Parameters:
authzResponseIssParameterSupported
-true
if theiss
authorisation response parameter is provided, elsefalse
.
-
getUILocales
Description copied from interface:ReadOnlyAuthorizationServerMetadata
Gets the supported UI locales. Corresponds to theui_locales_supported
metadata field.- Specified by:
getUILocales
in interfaceReadOnlyAuthorizationServerMetadata
- Returns:
- The supported UI locales,
null
if not specified.
-
setUILocales
Sets the supported UI locales. Corresponds to theui_locales_supported
metadata field.- Parameters:
uiLocales
- The supported UI locales,null
if not specified.
-
getServiceDocsURI
Description copied from interface:ReadOnlyAuthorizationServerMetadata
Gets the service documentation URI. Corresponds to theservice_documentation
metadata field.- Specified by:
getServiceDocsURI
in interfaceReadOnlyAuthorizationServerMetadata
- Returns:
- The service documentation URI,
null
if not specified.
-
setServiceDocsURI
Sets the service documentation URI. Corresponds to theservice_documentation
metadata field.- Parameters:
serviceDocsURI
- The service documentation URI,null
if not specified. The URI scheme must be https or http.
-
getPolicyURI
Description copied from interface:ReadOnlyAuthorizationServerMetadata
Gets the provider's policy regarding relying party use of data. Corresponds to theop_policy_uri
metadata field.- Specified by:
getPolicyURI
in interfaceReadOnlyAuthorizationServerMetadata
- Returns:
- The policy URI,
null
if not specified.
-
setPolicyURI
Sets the provider's policy regarding relying party use of data. Corresponds to theop_policy_uri
metadata field.- Parameters:
policyURI
- The policy URI,null
if not specified. The URI scheme must be https or http.
-
getTermsOfServiceURI
Description copied from interface:ReadOnlyAuthorizationServerMetadata
Gets the provider's terms of service. Corresponds to theop_tos_uri
metadata field.- Specified by:
getTermsOfServiceURI
in interfaceReadOnlyAuthorizationServerMetadata
- Returns:
- The terms of service URI,
null
if not specified.
-
setTermsOfServiceURI
Sets the provider's terms of service. Corresponds to theop_tos_uri
metadata field.- Parameters:
tosURI
- The terms of service URI,null
if not specified. The URI scheme must be https or http.
-
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
- Returns:
- The aliases for communication with mutual TLS,
null
when no aliases are defined.
-
getMtlsEndpointAliases
Gets the aliases for communication with mutual TLS. Corresponds to themtls_endpoint_aliases
metadata field.- Returns:
- The aliases for communication with mutual TLS,
null
when no aliases are defined.
-
setMtlsEndpointAliases
Sets the aliases for communication with mutual TLS. Corresponds to themtls_endpoint_aliases
metadata field.- Parameters:
mtlsEndpointAliases
- The aliases for communication with mutual TLS, ornull
when no aliases are defined.
-
supportsTLSClientCertificateBoundAccessTokens
Description copied from interface:ReadOnlyAuthorizationServerMetadata
Gets the support for TLS client certificate bound access tokens. Corresponds to thetls_client_certificate_bound_access_tokens
metadata field.- Specified by:
supportsTLSClientCertificateBoundAccessTokens
in interfaceReadOnlyAuthorizationServerMetadata
- Returns:
true
if TLS client certificate bound access tokens are supported, elsefalse
.
-
setSupportsTLSClientCertificateBoundAccessTokens
Sets the support for TLS client certificate bound access tokens. Corresponds to thetls_client_certificate_bound_access_tokens
metadata field.- Parameters:
tlsClientCertBoundTokens
-true
if TLS client certificate bound access tokens are supported, elsefalse
.
-
supportsMutualTLSSenderConstrainedAccessTokens
Deprecated.Description copied from interface:ReadOnlyAuthorizationServerMetadata
Gets the support for TLS client certificate bound access tokens. Corresponds to thetls_client_certificate_bound_access_tokens
metadata field.- Specified by:
supportsMutualTLSSenderConstrainedAccessTokens
in interfaceReadOnlyAuthorizationServerMetadata
- Returns:
true
if TLS client certificate bound access tokens are supported, elsefalse
.
-
setSupportsMutualTLSSenderConstrainedAccessTokens
@Deprecated public void setSupportsMutualTLSSenderConstrainedAccessTokens(boolean mutualTLSSenderConstrainedAccessTokens) Deprecated.Sets the support for TLS client certificate bound access tokens. Corresponds to thetls_client_certificate_bound_access_tokens
metadata field.- Parameters:
mutualTLSSenderConstrainedAccessTokens
-true
if TLS client certificate bound access tokens are supported, elsefalse
.
-
getDPoPJWSAlgs
Description copied from interface:ReadOnlyAuthorizationServerMetadata
Gets the supported JWS algorithms for Demonstrating Proof-of-Possession at the Application Layer (DPoP). Corresponds to the "dpop_signing_alg_values_supported" metadata field.- Specified by:
getDPoPJWSAlgs
in interfaceReadOnlyAuthorizationServerMetadata
- Returns:
- The supported JWS algorithms for DPoP,
null
if none.
-
setDPoPJWSAlgs
Sets the supported JWS algorithms for Demonstrating Proof-of-Possession at the Application Layer (DPoP). Corresponds to the "dpop_signing_alg_values_supported" metadata field.- Parameters:
dPoPJWSAlgs
- The supported JWS algorithms for DPoP,null
if none.
-
getAuthorizationJWSAlgs
Description copied from interface:ReadOnlyAuthorizationServerMetadata
Gets the supported JWS algorithms for JWT-encoded authorisation responses. Corresponds to theauthorization_signing_alg_values_supported
metadata field.- Specified by:
getAuthorizationJWSAlgs
in interfaceReadOnlyAuthorizationServerMetadata
- Returns:
- The supported JWS algorithms,
null
if not specified.
-
setAuthorizationJWSAlgs
Sets the supported JWS algorithms for JWT-encoded authorisation responses. Corresponds to theauthorization_signing_alg_values_supported
metadata field.- Parameters:
authzJWSAlgs
- The supported JWS algorithms,null
if not specified.
-
getAuthorizationJWEAlgs
Description copied from interface:ReadOnlyAuthorizationServerMetadata
Gets the supported JWE algorithms for JWT-encoded authorisation responses. Corresponds to theauthorization_encryption_alg_values_supported
metadata field.- Specified by:
getAuthorizationJWEAlgs
in interfaceReadOnlyAuthorizationServerMetadata
- Returns:
- The supported JWE algorithms,
null
if not specified.
-
setAuthorizationJWEAlgs
Sets the supported JWE algorithms for JWT-encoded authorisation responses. Corresponds to theauthorization_encryption_alg_values_supported
metadata field.- Parameters:
authzJWEAlgs
- The supported JWE algorithms,null
if not specified.
-
getAuthorizationJWEEncs
Description copied from interface:ReadOnlyAuthorizationServerMetadata
Gets the supported encryption methods for JWT-encoded authorisation responses. Corresponds to theauthorization_encryption_enc_values_supported
metadata field.- Specified by:
getAuthorizationJWEEncs
in interfaceReadOnlyAuthorizationServerMetadata
- Returns:
- The supported encryption methods,
null
if not specified.
-
setAuthorizationJWEEncs
Sets the supported encryption methods for JWT-encoded authorisation responses. Corresponds to theauthorization_encryption_enc_values_supported
metadata field.- Parameters:
authzJWEEncs
- The supported encryption methods,null
if not specified.
-
requiresPushedAuthorizationRequests
Description copied from interface:ReadOnlyAuthorizationServerMetadata
Gets the requirement for pushed authorisation requests (PAR). Corresponds to thepushed_authorization_request_endpoint
metadata field.- Specified by:
requiresPushedAuthorizationRequests
in interfaceReadOnlyAuthorizationServerMetadata
- Returns:
true
if PAR is required, elsefalse
.
-
requiresPushedAuthorizationRequests
Sets the requirement for pushed authorisation requests (PAR). Corresponds to thepushed_authorization_request_endpoint
metadata field.- Parameters:
requirePAR
-true
if PAR is required, elsefalse
.
-
getAuthorizationDetailsTypes
Description copied from interface:ReadOnlyAuthorizationServerMetadata
Gets the supported authorisation details types for Rich Authorisation Requests (RAR). Corresponds to theauthorization_details_types_supported
metadata field.- Specified by:
getAuthorizationDetailsTypes
in interfaceReadOnlyAuthorizationServerMetadata
- Returns:
- The supported authorisation types,
null
if not specified.
-
setAuthorizationDetailsTypes
Sets the supported authorisation details types for Rich Authorisation Requests (RAR). Corresponds to theauthorization_details_types_supported
metadata field.- Parameters:
authzTypes
- The supported authorisation types,null
if not specified.
-
getIncrementalAuthorizationTypes
Description copied from interface:ReadOnlyAuthorizationServerMetadata
Gets the supported OAuth 2.0 client types for incremental authorisation. Corresponds to theincremental_authz_types_supported
metadata field.- Specified by:
getIncrementalAuthorizationTypes
in interfaceReadOnlyAuthorizationServerMetadata
- Returns:
- The supported client types for incremental authorisation,
null
if not specified.
-
setIncrementalAuthorizationTypes
Sets the supported OAuth 2.0 client types for incremental authorisation. Corresponds to theincremental_authz_types_supported
metadata field.- Parameters:
incrementalAuthzTypes
- The supported client types for incremental authorisation,null
if not specified.
-
getBackChannelTokenDeliveryModes
Description copied from interface:ReadOnlyAuthorizationServerMetadata
Gets the supported CIBA token delivery modes. Corresponds to thebackchannel_token_delivery_modes_supported
metadata field.- Specified by:
getBackChannelTokenDeliveryModes
in interfaceReadOnlyAuthorizationServerMetadata
- Returns:
- The CIBA token delivery modes,
null
if not specified.
-
setBackChannelTokenDeliveryModes
public void setBackChannelTokenDeliveryModes(List<BackChannelTokenDeliveryMode> backChannelTokenDeliveryModes) Sets the supported CIBA token delivery modes. Corresponds to thebackchannel_token_delivery_modes_supported
metadata field.- Parameters:
backChannelTokenDeliveryModes
- The CIBA token delivery modes,null
if not specified.
-
getBackChannelAuthenticationRequestJWSAlgs
Description copied from interface:ReadOnlyAuthorizationServerMetadata
Gets the supported JWS algorithms for CIBA requests. Corresponds to thebackchannel_authentication_request_signing_alg_values_supported
metadata field.- Specified by:
getBackChannelAuthenticationRequestJWSAlgs
in interfaceReadOnlyAuthorizationServerMetadata
- Returns:
- The supported JWS algorithms,
null
if not specified.
-
setBackChannelAuthenticationRequestJWSAlgs
public void setBackChannelAuthenticationRequestJWSAlgs(List<com.nimbusds.jose.JWSAlgorithm> backChannelAuthRequestJWSAlgs) Gets the supported JWS algorithms for CIBA requests. Corresponds to thebackchannel_authentication_request_signing_alg_values_supported
metadata field.- Parameters:
backChannelAuthRequestJWSAlgs
- The supported JWS algorithms,null
if not specified.
-
supportsBackChannelUserCodeParam
Description copied from interface:ReadOnlyAuthorizationServerMetadata
Gets the support for theuser_code
CIBA request parameter. Corresponds to thebackchannel_user_code_parameter_supported
metadata field.- Specified by:
supportsBackChannelUserCodeParam
in interfaceReadOnlyAuthorizationServerMetadata
- Returns:
true
if theuser_code
parameter is supported, elsefalse
.
-
setSupportsBackChannelUserCodeParam
Sets the support for theuser_code
CIBA request parameter. Corresponds to thebackchannel_user_code_parameter_supported
metadata field.- Parameters:
backChannelUserCodeSupported
-true
if theuser_code
parameter is supported, elsefalse
.
-
getPromptTypes
Description copied from interface:ReadOnlyAuthorizationServerMetadata
Gets the supportedprompt types
. Corresponds to theprompt_values_supported
metadata field.- Specified by:
getPromptTypes
in interfaceReadOnlyAuthorizationServerMetadata
- Returns:
- The supported prompt types,
null
if not specified.
-
setPromptTypes
Sets the supportedprompt types
. Corresponds to theprompt_values_supported
metadata field.- Parameters:
promptTypes
- The supported prompt types,null
if not specified.
-
getOrganizationName
Description copied from interface:ReadOnlyAuthorizationServerMetadata
Gets the organisation name (OpenID Connect Federation 1.0). Corresponds to theorganization_name
metadata field.- Specified by:
getOrganizationName
in interfaceReadOnlyAuthorizationServerMetadata
- Returns:
- The organisation name,
null
if not specified.
-
setOrganizationName
Sets the organisation name (in federation). Corresponds to theorganization_name
metadata field.- Parameters:
organizationName
- The organisation name,null
if not specified.
-
getJWKSet
Description copied from interface:ReadOnlyAuthorizationServerMetadata
Gets the JWK set (OpenID Connect Federation 1.0). Corresponds to thejwks
metadata field.- Specified by:
getJWKSet
in interfaceReadOnlyAuthorizationServerMetadata
- Returns:
- The JWK set,
null
if not specified.
-
setJWKSet
Sets the JWK set (OpenID Connect Federation 1.0). Corresponds to thejwks
metadata field.- Parameters:
jwkSet
- The JWK set,null
if not specified.
-
getSignedJWKSetURI
Description copied from interface:ReadOnlyAuthorizationServerMetadata
Gets the signed JWK set URI (OpenID Connect Federation 1.0). Corresponds to thesigned_jwks_uri
metadata field.- Specified by:
getSignedJWKSetURI
in interfaceReadOnlyAuthorizationServerMetadata
- Returns:
- The signed JWK set URI,
null
if not specified.
-
setSignedJWKSetURI
Sets the signed JWK set URI (OpenID Connect Federation 1.0). Corresponds to thesigned_jwks_uri
metadata field.- Parameters:
signedJWKSetURI
- The signed JWK set URI,null
if not specified.
-
getClientRegistrationTypes
Description copied from interface:ReadOnlyAuthorizationServerMetadata
Gets the supported OpenID Connect Federation 1.0 client registration types. Corresponds to theclient_registration_types_supported
metadata field.- Specified by:
getClientRegistrationTypes
in interfaceReadOnlyAuthorizationServerMetadata
- Returns:
- The supported client registration types,
null
if not specified.
-
setClientRegistrationTypes
Sets the supported federation client registration types. Corresponds to theclient_registration_types_supported
metadata field.- Parameters:
clientRegistrationTypes
- The supported client registration types,null
if not specified.
-
getClientRegistrationAuthnMethods
Description copied from interface:ReadOnlyAuthorizationServerMetadata
Gets the supported request authentication methods for automatic OpenID Connect Federation 1.0 client registration. Corresponds to therequest_authentication_methods_supported
field.- Specified by:
getClientRegistrationAuthnMethods
in interfaceReadOnlyAuthorizationServerMetadata
- Returns:
- The supported request authentication methods for automatic
federation client registration,
null
if not specified.
-
setClientRegistrationAuthnMethods
public void setClientRegistrationAuthnMethods(Map<EndpointName, List<ClientAuthenticationMethod>> methods) Sets the supported request authentication methods for automatic OpenID Connect Federation 1.0 client registration. Corresponds to therequest_authentication_methods_supported
field.- Parameters:
methods
- The supported request authentication methods for automatic federation client registration,null
if not specified.
-
getClientRegistrationAuthnJWSAlgs
Description copied from interface:ReadOnlyAuthorizationServerMetadata
Gets the supported JWS algorithms for authenticating automatic OpenID Connect Federation 1.0 client registration requests. Corresponds to therequest_authentication_signing_alg_values_supported
.- Specified by:
getClientRegistrationAuthnJWSAlgs
in interfaceReadOnlyAuthorizationServerMetadata
- Returns:
- The supported JWS algorithms,
null
if not specified.
-
setClientRegistrationAuthnJWSAlgs
Sets the supported JWS algorithms for authenticating automatic OpenID Connect Federation 1.0 client registration requests. Corresponds to therequest_authentication_signing_alg_values_supported
.- Parameters:
jwsAlgs
- The supported JWS algorithms,null
if not specified.
-
getFederationRegistrationEndpointURI
Description copied from interface:ReadOnlyAuthorizationServerEndpointMetadata
Gets the federation registration endpoint URI. Corresponds to thefederation_registration_endpoint
metadata field.- Specified by:
getFederationRegistrationEndpointURI
in interfaceReadOnlyAuthorizationServerEndpointMetadata
- Overrides:
getFederationRegistrationEndpointURI
in classAuthorizationServerEndpointMetadata
- Returns:
- The federation registration endpoint URI,
null
if not specified.
-
setFederationRegistrationEndpointURI
Sets the federation registration endpoint URI. Corresponds to thefederation_registration_endpoint
metadata field.- Overrides:
setFederationRegistrationEndpointURI
in classAuthorizationServerEndpointMetadata
- Parameters:
federationRegistrationEndpoint
- The federation registration endpoint URI,null
if not specified.
-
getCustomParameter
Description copied from interface:ReadOnlyAuthorizationServerMetadata
Gets the specified custom (not registered) parameter.- Specified by:
getCustomParameter
in interfaceReadOnlyAuthorizationServerMetadata
- Parameters:
name
- The parameter name. Must not benull
.- Returns:
- The parameter value,
null
if not specified.
-
getCustomURIParameter
Description copied from interface:ReadOnlyAuthorizationServerMetadata
Gets the specified custom (not registered) URI parameter.- Specified by:
getCustomURIParameter
in interfaceReadOnlyAuthorizationServerMetadata
- Parameters:
name
- The parameter name. Must not benull
.- Returns:
- The parameter URI value,
null
if not specified.
-
setCustomParameter
Sets the specified custom (not registered) parameter.- Parameters:
name
- The parameter name. Must not benull
.value
- The parameter value,null
if not specified.
-
getCustomParameters
Description copied from interface:ReadOnlyAuthorizationServerMetadata
Gets the custom (not registered) parameters.- Specified by:
getCustomParameters
in interfaceReadOnlyAuthorizationServerMetadata
- Returns:
- The custom parameters, empty JSON object if none.
-
applyDefaults
Applies the OAuth 2.0 Authorisation Server 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 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 classAuthorizationServerEndpointMetadata
- Returns:
- The JSON object.
-
parse
public static AuthorizationServerMetadata parse(net.minidev.json.JSONObject jsonObject) throws ParseException Parses an OAuth 2.0 Authorisation Server metadata from the specified JSON object.- Parameters:
jsonObject
- The JSON object to parse. Must not benull
.- Returns:
- The OAuth 2.0 Authorisation Server metadata.
- Throws:
ParseException
- If the JSON object couldn't be parsed to an OAuth 2.0 Authorisation Server metadata.
-
parse
Parses an OAuth 2.0 Authorisation Server metadata from the specified JSON object string.- Parameters:
s
- The JSON object sting to parse. Must not benull
.- Returns:
- The OAuth 2.0 Authorisation Server metadata.
- Throws:
ParseException
- If the JSON object string couldn't be parsed to an OAuth 2.0 Authorisation Server metadata.
-
resolveURL
Resolves OAuth 2.0 authorisation server metadata URL from the specified issuer identifier.- Parameters:
issuer
- The issuer identifier. Must represent a valid HTTPS or HTTP URL. Must not benull
.- Returns:
- The OAuth 2.0 authorisation server metadata URL.
- Throws:
GeneralException
- If the issuer identifier is invalid.
-
resolve
public static AuthorizationServerMetadata resolve(Issuer issuer) throws GeneralException, IOException Resolves OAuth 2.0 authorisation server metadata from the specified issuer identifier. The metadata is downloaded by HTTP GET from[issuer-url]/.well-known/oauth-authorization-server
.- Parameters:
issuer
- The issuer identifier. Must represent a valid HTTPS or HTTP URL. Must not benull
.- Returns:
- The OAuth 2.0 authorisation server metadata.
- Throws:
GeneralException
- If the issuer identifier or the downloaded metadata are invalid.IOException
- On a HTTP exception.
-
resolve
public static AuthorizationServerMetadata resolve(Issuer issuer, int connectTimeout, int readTimeout) throws GeneralException, IOException Resolves OAuth 2.0 authorisation server metadata from the specified issuer identifier. The metadata is downloaded by HTTP GET from[issuer-url]/.well-known/oauth-authorization-server
.- 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 OAuth 2.0 authorisation server metadata.
- Throws:
GeneralException
- If the issuer identifier or the downloaded metadata are invalid.IOException
- On a HTTP exception.
-
resolve
public static AuthorizationServerMetadata resolve(Issuer issuer, HTTPRequestConfigurator requestConfigurator) throws GeneralException, IOException Resolves OAuth 2.0 authorisation server metadata from the specified issuer identifier. The metadata is downloaded by HTTP GET from[issuer-url]/.well-known/oauth-authorization-server
, 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 OAuth 2.0 authorisation server metadata.
- Throws:
GeneralException
- If the issuer identifier or the downloaded metadata are invalid.IOException
- On a HTTP exception.
-