public class OIDCProviderMetadata extends Object
Related specifications:
| Modifier and Type | Field and Description |
|---|---|
static String |
VERSION
The version, set to "3.0".
|
| Constructor and Description |
|---|
OIDCProviderMetadata(Issuer issuer,
List<SubjectType> subjectTypes,
URL jwkSetURI)
Creates a new OpenID Connect provider metadata instance.
|
| Modifier and Type | Method and Description |
|---|---|
List<ACR> |
getACRs()
Gets the supported Authentication Context Class References (ACRs).
|
URL |
getAuthorizationEndpointURL()
Gets the authorisation endpoint URL.
|
URL |
getCheckSessionIframeURL()
Gets the cross-origin check session iframe URL.
|
List<String> |
getClaims()
Gets the supported claims names.
|
List<com.nimbusds.langtag.LangTag> |
getClaimsLocales()
Gets the supported claims locales.
|
List<ClaimType> |
getClaimTypes()
Gets the supported claim types.
|
List<Display> |
getDisplays()
Gets the supported displays.
|
URL |
getEndSessionEndpointURL()
Gets the logout endpoint URL.
|
List<GrantType> |
getGrantTypes()
Gets the supported OAuth 2.0 grant types.
|
List<com.nimbusds.jose.JWEAlgorithm> |
getIDTokenJWEAlgs()
Gets the supported JWE algorithms for ID tokens.
|
List<com.nimbusds.jose.EncryptionMethod> |
getIDTokenJWEEncs()
Gets the supported encryption methods for ID tokens.
|
List<com.nimbusds.jose.JWSAlgorithm> |
getIDTokenJWSAlgs()
Gets the supported JWS algorithms for ID tokens.
|
Issuer |
getIssuer()
Gets the issuer identifier.
|
URL |
getJWKSetURI()
Gets the JSON Web Key (JWK) set URI.
|
URL |
getPolicyURI()
Gets the provider's policy regarding relying party use of data.
|
URL |
getRegistrationEndpointURL()
Gets the client registration endpoint URL.
|
List<com.nimbusds.jose.JWEAlgorithm> |
getRequestObjectJWEAlgs()
Gets the supported JWE algorithms for OpenID Connect request
objects.
|
List<com.nimbusds.jose.EncryptionMethod> |
getRequestObjectJWEEncs()
Gets the supported encryption methods for OpenID Connect request
objects.
|
List<com.nimbusds.jose.JWSAlgorithm> |
getRequestObjectJWSAlgs()
Gets the supported JWS algorithms for OpenID Connect request
objects.
|
List<ResponseType> |
getResponseTypes()
Gets the supported response type values.
|
Scope |
getScopes()
Gets the supported scope values.
|
URL |
getServiceDocsURL()
Gets the service documentation URL.
|
List<SubjectType> |
getSubjectTypes()
Gets the supported subject types.
|
URL |
getTermsOfServiceURI()
Gets the provider's terms of service.
|
List<ClientAuthenticationMethod> |
getTokenEndpointAuthMethods()
Gets the supported token endpoint authentication methods.
|
List<com.nimbusds.jose.JWSAlgorithm> |
getTokenEndpointJWSAlgs()
Gets the supported JWS algorithms for the
private_key_jwt
and client_secret_jwt token endpoint authentication methods. |
URL |
getTokenEndpointURL()
Gets the token endpoint URL.
|
List<com.nimbusds.langtag.LangTag> |
getUILocales()
Gets the supported UI locales.
|
URL |
getUserInfoEndpointURL()
Gets the UserInfo endpoint URL.
|
List<com.nimbusds.jose.JWEAlgorithm> |
getUserInfoJWEAlgs()
Gets the supported JWE algorithms for UserInfo JWTs.
|
List<com.nimbusds.jose.EncryptionMethod> |
getUserInfoJWEEncs()
Gets the supported encryption methods for UserInfo JWTs.
|
List<com.nimbusds.jose.JWSAlgorithm> |
getUserInfoJWSAlgs()
Gets the supported JWS algorithms for UserInfo JWTs.
|
static OIDCProviderMetadata |
parse(net.minidev.json.JSONObject jsonObject)
Parses an OpenID Connect provider metadata from the specified JSON
object.
|
static OIDCProviderMetadata |
parse(String s)
Parses an OpenID Connect provider metadata from the specified JSON
object string.
|
boolean |
requiresRequestURIRegistration()
Gets the requirement for the
request_uri parameter
pre-registration. |
void |
setACRs(List<ACR> acrValues)
Sets the supported Authentication Context Class References (ACRs).
|
void |
setAuthorizationEndpointURL(URL authzEndpoint)
Sets the authorisation endpoint URL.
|
void |
setCheckSessionIframeURL(URL checkSessionIframe)
Sets the cross-origin check session iframe URL.
|
void |
setClaimLocales(List<com.nimbusds.langtag.LangTag> claimsLocales)
Sets the supported claims locales.
|
void |
setClaims(List<String> claims)
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 |
setEndSessionEndpointURL(URL endSessionEndpoint)
Sets the logout endpoint URL.
|
void |
setGrantTypes(List<GrantType> gts)
Sets the supported OAuth 2.0 grant types.
|
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 |
setPolicyURI(URL policyURI)
Sets the provider's policy regarding relying party use of data.
|
void |
setRegistrationEndpointURL(URL regEndpoint)
Sets the client registration endpoint URL.
|
void |
setRequestObjectJWEAlgs(List<com.nimbusds.jose.JWEAlgorithm> requestObjectJWEAlgs)
Sets the supported JWE algorithms for OpenID Connect request
objects.
|
void |
setRequestObjectJWEEncs(List<com.nimbusds.jose.EncryptionMethod> requestObjectJWEEncs)
Sets the supported encryption methods for OpenID Connect request
objects.
|
void |
setRequestObjectJWSAlgs(List<com.nimbusds.jose.JWSAlgorithm> requestObjectJWSAlgs)
Sets the supported JWS algorithms for OpenID Connect request
objects.
|
void |
setRequiresRequestURIRegistration(boolean requireRequestURIReg)
Sets the requirement for the
request_uri parameter
pre-registration. |
void |
setResponseTypes(List<ResponseType> rts)
Sets the supported response type values.
|
void |
setScopes(Scope scope)
Sets the supported scope values.
|
void |
setServiceDocsURL(URL serviceDocsURL)
Sets the service documentation URL.
|
void |
setSupportsClaimsParams(boolean claimsParamSupported)
Sets the support for the
claims authorisation request
parameter. |
void |
setSupportsRequestParams(boolean requestParamSupported)
Sets the support for the
request authorisation request
parameter. |
void |
setSupportsRequestURIParam(boolean requestURIParamSupported)
Sets the support for the
request_uri authorisation request
parameter. |
void |
setTermsOfServiceURI(URL tosURI)
Sets the provider's terms of service.
|
void |
setTokenEndpointAuthMethods(List<ClientAuthenticationMethod> tokenEndpointAuthMethods)
Sets the supported token endpoint authentication methods.
|
void |
setTokenEndpointJWSAlgs(List<com.nimbusds.jose.JWSAlgorithm> tokenEndpointJWSAlgs)
Sets the supported JWS algorithms for the
private_key_jwt
and client_secret_jwt token endpoint authentication methods. |
void |
setTokenEndpointURL(URL tokenEndpoint)
Sts the token endpoint URL.
|
void |
setUILocales(List<com.nimbusds.langtag.LangTag> uiLocales)
Sets the supported UI locales.
|
void |
setUserInfoEndpointURL(URL userInfoEndpoint)
Sets the UserInfo endpoint URL.
|
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.
|
boolean |
supportsClaimsParam()
Gets the support for the
claims authorisation request
parameter. |
boolean |
supportsRequestParam()
Gets the support for the
request authorisation request
parameter. |
boolean |
supportsRequestURIParam()
Gets the support for the
request_uri authorisation request
parameter. |
net.minidev.json.JSONObject |
toJSONObject()
Returns the JSON object representation of this OpenID Connect
provider metadata.
|
public static final String VERSION
public OIDCProviderMetadata(Issuer issuer, List<SubjectType> subjectTypes, URL jwkSetURI)
issuer - The issuer identifier. Must be an URL using the
https scheme with no query or fragment
component. Must not be null.subjectTypes - The supported subject types. At least one must
be specified. Must not be null.public Issuer getIssuer()
issuer
metadata field.public URL getAuthorizationEndpointURL()
authorization_endpoint metadata field.null if not
specified.public void setAuthorizationEndpointURL(URL authzEndpoint)
authorization_endpoint metadata field.authzEndpoint - The authorisation endpoint URL, null if
not specified.public URL getTokenEndpointURL()
token_endpoint
metadata field.null if not specified.public void setTokenEndpointURL(URL tokenEndpoint)
token_endpoint
metadata field.tokenEndpoint - The token endpoint URL, null if not
specified.public URL getUserInfoEndpointURL()
userinfo_endpoint metadata field.null if not specified.public void setUserInfoEndpointURL(URL userInfoEndpoint)
userinfo_endpoint metadata field.userInfoEndpoint - The UserInfo endpoint URL, null if
not specified.public URL getRegistrationEndpointURL()
registration_endpoint metadata field.null if not
specified.public void setRegistrationEndpointURL(URL regEndpoint)
registration_endpoint metadata field.regEndpoint - The client registration endpoint URL,
null if not specified.public URL getCheckSessionIframeURL()
check_session_iframe metadata field.null if not specified.public void setCheckSessionIframeURL(URL checkSessionIframe)
check_session_iframe metadata field.checkSessionIframe - The check session iframe URL, null
if not specified.public URL getEndSessionEndpointURL()
end_session_endpoint metadata field.null if not specified.public void setEndSessionEndpointURL(URL endSessionEndpoint)
end_session_endpoint metadata field.endSessionEndpoint - The logoout endpoint URL, null if
not specified.public URL getJWKSetURI()
jwks_uri metadata field.public Scope getScopes()
scopes_supported metadata field.null if not specified.public void setScopes(Scope scope)
scopes_supported metadata field.scope - The supported scope values, null if not
specified.public List<ResponseType> getResponseTypes()
response_types_supported metadata field.null if not
specified.public void setResponseTypes(List<ResponseType> rts)
response_types_supported metadata field.rts - The supported response type values, null if not
specified.public List<GrantType> getGrantTypes()
grant_types_supported metadata field.null if not specified.public void setGrantTypes(List<GrantType> gts)
grant_types_supported metadata field.gts - The supported grant types, null if not specified.public List<ACR> getACRs()
acr_values_supported metadata field.null if not specified.public void setACRs(List<ACR> acrValues)
acr_values_supported metadata field.acrValues - The supported ACRs, null if not specified.public List<SubjectType> getSubjectTypes()
subject_types_supported metadata field.public List<ClientAuthenticationMethod> getTokenEndpointAuthMethods()
token_endpoint_auth_methods_supported
metadata field.null if not specified.public void setTokenEndpointAuthMethods(List<ClientAuthenticationMethod> tokenEndpointAuthMethods)
token_endpoint_auth_methods_supported
metadata field.tokenEndpointAuthMethods - The supported token endpoint
authentication methods, null
if not specified.public List<com.nimbusds.jose.JWSAlgorithm> getTokenEndpointJWSAlgs()
private_key_jwt
and client_secret_jwt token endpoint authentication methods.
Corresponds to the
token_endpoint_auth_signing_alg_values_supported metadata
field.null if not specified.public void setTokenEndpointJWSAlgs(List<com.nimbusds.jose.JWSAlgorithm> tokenEndpointJWSAlgs)
private_key_jwt
and client_secret_jwt token endpoint authentication methods.
Corresponds to the
token_endpoint_auth_signing_alg_values_supported metadata
field.tokenEndpointJWSAlgs - The supported JWS algorithms,
null if not specified.public List<com.nimbusds.jose.JWSAlgorithm> getRequestObjectJWSAlgs()
request_object_signing_alg_values_supported metadata field.null if not specified.public void setRequestObjectJWSAlgs(List<com.nimbusds.jose.JWSAlgorithm> requestObjectJWSAlgs)
request_object_signing_alg_values_supported metadata field.requestObjectJWSAlgs - The supported JWS algorithms,
null if not specified.public List<com.nimbusds.jose.JWEAlgorithm> getRequestObjectJWEAlgs()
request_object_encryption_alg_values_supported metadata
field.null if not specified.public void setRequestObjectJWEAlgs(List<com.nimbusds.jose.JWEAlgorithm> requestObjectJWEAlgs)
request_object_encryption_alg_values_supported metadata
field.requestObjectJWEAlgs - The supported JWE algorithms,
null if not specified.public List<com.nimbusds.jose.EncryptionMethod> getRequestObjectJWEEncs()
request_object_encryption_enc_values_supported metadata
field.null if not
specified.public void setRequestObjectJWEEncs(List<com.nimbusds.jose.EncryptionMethod> requestObjectJWEEncs)
request_object_encryption_enc_values_supported metadata
field.requestObjectJWEEncs - The supported encryption methods,
null if not specified.public List<com.nimbusds.jose.JWSAlgorithm> getIDTokenJWSAlgs()
id_token_signing_alg_values_supported metadata field.null if not specified.public void setIdTokenJWSAlgs(List<com.nimbusds.jose.JWSAlgorithm> idTokenJWSAlgs)
id_token_signing_alg_values_supported metadata field.idTokenJWSAlgs - The supported JWS algorithms, null if
not specified.public List<com.nimbusds.jose.JWEAlgorithm> getIDTokenJWEAlgs()
id_token_encryption_alg_values_supported metadata field.null if not specified.public void setIdTokenJWEAlgs(List<com.nimbusds.jose.JWEAlgorithm> idTokenJWEAlgs)
id_token_encryption_alg_values_supported metadata field.idTokenJWEAlgs - The supported JWE algorithms, null if
not specified.public List<com.nimbusds.jose.EncryptionMethod> getIDTokenJWEEncs()
id_token_encryption_enc_values_supported metadata field.null if not
specified.public void setIdTokenJWEEncs(List<com.nimbusds.jose.EncryptionMethod> idTokenJWEEncs)
id_token_encryption_enc_values_supported metadata field.idTokenJWEEncs - The supported encryption methods, null
if not specified.public List<com.nimbusds.jose.JWSAlgorithm> getUserInfoJWSAlgs()
userinfo_signing_alg_values_supported metadata field.null if not specified.public void setUserInfoJWSAlgs(List<com.nimbusds.jose.JWSAlgorithm> userInfoJWSAlgs)
userinfo_signing_alg_values_supported metadata field.userInfoJWSAlgs - The supported JWS algorithms, null if
not specified.public List<com.nimbusds.jose.JWEAlgorithm> getUserInfoJWEAlgs()
userinfo_encryption_alg_values_supported metadata field.null if not specified.public void setUserInfoJWEAlgs(List<com.nimbusds.jose.JWEAlgorithm> userInfoJWEAlgs)
userinfo_encryption_alg_values_supported metadata field.userInfoJWEAlgs - The supported JWE algorithms, null if
not specified.public List<com.nimbusds.jose.EncryptionMethod> getUserInfoJWEEncs()
userinfo_encryption_enc_values_supported metadata
field.null if not
specified.public void setUserInfoJWEEncs(List<com.nimbusds.jose.EncryptionMethod> userInfoJWEEncs)
userinfo_encryption_enc_values_supported metadata
field.userInfoJWEEncs - The supported encryption methods,
null if not specified.public List<Display> getDisplays()
display_values_supported metadata field.null if not specified.public void setDisplays(List<Display> displays)
display_values_supported metadata field.displays - The supported displays, null if not
specified.public List<ClaimType> getClaimTypes()
claim_types_supported metadata field.null if not specified.public void setClaimTypes(List<ClaimType> claimTypes)
claim_types_supported metadata field.claimTypes - The supported claim types, null if not
specified.public List<String> getClaims()
claims_supported metadata field.null if not specified.public void setClaims(List<String> claims)
claims_supported metadata field.claims - The supported claims names, null if not
specified.public List<com.nimbusds.langtag.LangTag> getClaimsLocales()
claims_locales_supported metadata field.null if not specified.public void setClaimLocales(List<com.nimbusds.langtag.LangTag> claimsLocales)
claims_locales_supported metadata field.claimsLocales - The supported claims locales, null if
not specified.public List<com.nimbusds.langtag.LangTag> getUILocales()
ui_locales_supported metadata field.null if not specified.public void setUILocales(List<com.nimbusds.langtag.LangTag> uiLocales)
ui_locales_supported metadata field.uiLocales - The supported UI locales, null if not
specified.public URL getServiceDocsURL()
service_documentation metadata field.null if not
specified.public void setServiceDocsURL(URL serviceDocsURL)
service_documentation metadata field.serviceDocsURL - The service documentation URL, null if
not specified.public URL getPolicyURI()
op_policy_uri metadata field.null if not specified.public void setPolicyURI(URL policyURI)
op_policy_uri metadata field.policyURI - The policy URI, null if not specified.public URL getTermsOfServiceURI()
op_tos_uri metadata field.null if not specified.public void setTermsOfServiceURI(URL tosURI)
op_tos_uri metadata field.tosURI - The terms of service URI, null if not
specified.public boolean supportsClaimsParam()
claims authorisation request
parameter. Corresponds to the claims_parameter_supported
metadata field.true if the claim parameter is supported,
else false.public void setSupportsClaimsParams(boolean claimsParamSupported)
claims authorisation request
parameter. Corresponds to the claims_parameter_supported
metadata field.claimsParamSupported - true if the claim
parameter is supported, else
false.public boolean supportsRequestParam()
request authorisation request
parameter. Corresponds to the request_parameter_supported
metadata field.true if the reqeust parameter is supported,
else false.public void setSupportsRequestParams(boolean requestParamSupported)
request authorisation request
parameter. Corresponds to the request_parameter_supported
metadata field.requestParamSupported - true if the reqeust
parameter is supported, else
false.public boolean supportsRequestURIParam()
request_uri authorisation request
parameter. Corresponds the request_uri_parameter_supported
metadata field.true if the request_uri parameter is
supported, else false.public void setSupportsRequestURIParam(boolean requestURIParamSupported)
request_uri authorisation request
parameter. Corresponds the request_uri_parameter_supported
metadata field.requestURIParamSupported - true if the
request_uri parameter is
supported, else false.public boolean requiresRequestURIRegistration()
request_uri parameter
pre-registration. Corresponds to the
require_request_uri_registration metadata field.true if the request_uri parameter values
must be pre-registered, else false.public void setRequiresRequestURIRegistration(boolean requireRequestURIReg)
request_uri parameter
pre-registration. Corresponds to the
require_request_uri_registration metadata field.requireRequestURIReg - true if the request_uri
parameter values must be pre-registered,
else false.public net.minidev.json.JSONObject toJSONObject()
public static OIDCProviderMetadata parse(net.minidev.json.JSONObject jsonObject) throws ParseException
jsonObject - The JSON object to parse. Must not be
null.ParseException - If the JSON object couldn't be parsed to an
OpenID Connect provider metadata.public static OIDCProviderMetadata parse(String s) throws ParseException
s - The JSON object sting to parse. Must not be null.ParseException - If the JSON object string couldn't be parsed
to an OpenID Connect provider metadata.Copyright © 2013 NimbusDS. All Rights Reserved.