|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.nimbusds.openid.connect.sdk.rp.ClientDetails
public class ClientDetails
OpenID Connect client details. Used in client registration requests and responses.
Related specifications:
Constructor Summary | |
---|---|
ClientDetails()
Creates a new OpenID Connect client details instance. |
Method Summary | |
---|---|
void |
applyDefaults()
Applies the client details defaults where no values have been specified. |
ApplicationType |
getApplicationType()
Gets the client application type. |
List<javax.mail.internet.InternetAddress> |
getContacts()
Gets the administrator contacts for the client. |
Set<ACR> |
getDefaultACRs()
Gets the default Authentication Context Class Reference (ACR) values. |
int |
getDefaultMaxAge()
Gets the default maximum authentication age. |
Set<GrantType> |
getGrantTypes()
Gets the expected OAuth 2.0 grant types. |
ClientID |
getID()
Gets the registered client ID. |
com.nimbusds.jose.JWEAlgorithm |
getIDTokenJWEAlgorithm()
Gets the JSON Web Encryption (JWE) algorithm required for the ID Tokens issued to this client. |
com.nimbusds.jose.EncryptionMethod |
getIDTokenJWEEncryptionMethod()
Gets the encryption method (JWE enc) required for the ID Tokens issued to this client. |
com.nimbusds.jose.JWSAlgorithm |
getIDTokenJWSAlgorithm()
Gets the JSON Web Signature (JWS) algorithm required for the ID Tokens issued to this client. |
URL |
getInitiateLoginURI()
Gets the HTTPS URI that the authorisation server can call to initiate a login at the client. |
URL |
getJWKSetURI()
Gets the URI for this client's JSON Web Key (JWK) set containing key(s) that are used in signing requests to the server and key(s) for encrypting responses. |
URL |
getLogoURI()
Gets the client application logo. |
URL |
getLogoURI(com.nimbusds.langtag.LangTag langTag)
Gets the client application logo. |
Map<com.nimbusds.langtag.LangTag,URL> |
getLogoURIEntries()
Gets the client application logo entries. |
String |
getName()
Gets the client name. |
String |
getName(com.nimbusds.langtag.LangTag langTag)
Gets the client name. |
Map<com.nimbusds.langtag.LangTag,String> |
getNameEntries()
Gets the client name entries. |
URL |
getPolicyURI()
Gets the client policy for use of end-user data. |
URL |
getPolicyURI(com.nimbusds.langtag.LangTag langTag)
Gets the client policy for use of end-user data. |
Map<com.nimbusds.langtag.LangTag,URL> |
getPolicyURIEntries()
Gets the client policy entries for use of end-user data. |
URL |
getPostLogoutRedirectURI()
Gets the post logout redirect URI. |
Set<URL> |
getRedirectURIs()
Gets the redirect URIs for this client. |
BearerAccessToken |
getRegistrationAccessToken()
Gets the registration access token. |
URL |
getRegistrationURI()
Gets the URI of the client registration. |
com.nimbusds.jose.JWSAlgorithm |
getRequestObjectJWSAlgorithm()
Gets the JSON Web Signature (JWS) algorithm required for the OpenID Connect request objects sent by this client. |
Set<URL> |
getRequestObjectURIs()
Gets the pre-registered OpenID Connect request object URIs. |
ResponseType |
getResponseTypes()
Gets the expected OAuth 2.0 response types. |
Secret |
getSecret()
Gets the client secret. |
URL |
getSectorIDURI()
Gets the sector identifier URI. |
SubjectType |
getSubjectType()
Gets the subject identifier type for responses to this client. |
URL |
getTermsOfServiceURI()
Gets the client's terms of service. |
URL |
getTermsOfServiceURI(com.nimbusds.langtag.LangTag langTag)
Gets the client's terms of service. |
Map<com.nimbusds.langtag.LangTag,URL> |
getTermsOfServiceURIEntries()
Gets the client's terms of service entries. |
ClientAuthenticationMethod |
getTokenEndpointAuthMethod()
Gets the Token endpoint authentication method. |
com.nimbusds.jose.JWEAlgorithm |
getUserInfoJWEAlgorithm()
Gets the JSON Web Encryption (JWE) algorithm required for the UserInfo responses to this client. |
com.nimbusds.jose.EncryptionMethod |
getUserInfoJWEEncryptionMethod()
Gets the encryption method (JWE enc) required for the UserInfo responses to this client. |
com.nimbusds.jose.JWSAlgorithm |
getUserInfoJWSAlgorithm()
Gets the JSON Web Signature (JWS) algorithm required for the UserInfo responses to this client. |
static ClientDetails |
parse(net.minidev.json.JSONObject jsonObject)
Parses an OpenID Connect client details instance from the specified JSON object. |
boolean |
requiresAuthTime()
Gets the default requirement for the auth_time claim in the
ID Token. |
void |
requiresAuthTime(boolean requiresAuthTime)
Sets the default requirement for the auth_time claim in the
ID Token. |
void |
setApplicationType(ApplicationType applicationType)
Sets the client application type. |
void |
setContacts(List<javax.mail.internet.InternetAddress> contacts)
Sets the administrator contacts for the client. |
void |
setDefaultACRs(Set<ACR> defaultACRs)
Sets the default Authentication Context Class Reference (ACR) values. |
void |
setDefaultMaxAge(int defaultMaxAge)
Sets the default maximum authentication age. |
void |
setGrantTypes(Set<GrantType> grantTypes)
Sets the expected OAuth 2.0 grant types. |
void |
setID(ClientID id)
Sets the registered client ID. |
void |
setIDTokenJWEAlgorithm(com.nimbusds.jose.JWEAlgorithm idTokenJWEAlg)
Sets the JSON Web Encryption (JWE) algorithm required for the ID Tokens issued to this client. |
void |
setIDTokenJWEEncryptionMethod(com.nimbusds.jose.EncryptionMethod idTokenJWEEnc)
Sets the encryption method (JWE enc) required for the ID Tokens issued to this client. |
void |
setIDTokenJWSAlgorithm(com.nimbusds.jose.JWSAlgorithm idTokenJWSAlg)
Sets the JSON Web Signature (JWS) algorithm required for the ID Tokens issued to this client. |
void |
setInitiateLoginURI(URL loginURI)
Sets the HTTPS URI that the authorisation server can call to initiate a login at the client. |
void |
setJWKSetURL(URL jwkSetURI)
Sets the URI for this client's JSON Web Key (JWK) set containing key(s) that are used in signing requests to the server and key(s) for encrypting responses. |
void |
setLogoURI(URL logoURI)
Sets the client application logo. |
void |
setLogoURI(URL logoURI,
com.nimbusds.langtag.LangTag langTag)
Sets the client application logo. |
void |
setName(String name)
Sets the client name. |
void |
setName(String name,
com.nimbusds.langtag.LangTag langTag)
Sets the client name. |
void |
setPolicyURI(URL policyURI)
Sets the client policy for use of end-user data. |
void |
setPolicyURI(URL policyURI,
com.nimbusds.langtag.LangTag langTag)
Sets the client policy for use of end-user data. |
void |
setPostLogoutRedirectURI(URL logoutURI)
Sets the post logout redirect URI. |
void |
setRedirectURIs(Set<URL> redirectURIs)
Sets the redirect URIs for this client. |
void |
setRegistrationAccessToken(BearerAccessToken accessToken)
Sets the registration access token. |
void |
setRegistrationURI(URL registrationURI)
Sets the URI of the client registration. |
void |
setRequestObjectJWSAlgorithm(com.nimbusds.jose.JWSAlgorithm requestObjectJWSAlg)
Sets the JSON Web Signature (JWS) algorithm required for the OpenID Connect request objects sent by this client. |
void |
setRequestObjectURIs(Set<URL> requestObjectURIs)
Sets the pre-registered OpenID Connect request object URIs. |
void |
setResponseTypes(ResponseType responseTypes)
Sets the expected OAuth 2.0 response types. |
void |
setSecret(Secret secret)
Sets the client secret. |
void |
setSectorIDURI(URL sectorIDURI)
Sets the sector identifier URI. |
void |
setSubjectType(SubjectType subjectType)
Sets the subject identifier type for responses to this client. |
void |
setTermsOfServiceURI(URL tosURI)
Sets the client's terms of service. |
void |
setTermsOfServiceURI(URL tosURI,
com.nimbusds.langtag.LangTag langTag)
Sets the client's terms of service. |
void |
setTokenEndpointAuthMethod(ClientAuthenticationMethod authMethod)
Sets the Token endpoint authentication method. |
void |
setUserInfoJWEAlgorithm(com.nimbusds.jose.JWEAlgorithm userInfoJWEAlg)
Sets the JSON Web Encryption (JWE) algorithm required for the UserInfo responses to this client. |
void |
setUserInfoJWEEncryptionMethod(com.nimbusds.jose.EncryptionMethod userInfoJWEEnc)
Sets the encryption method (JWE enc) required for the UserInfo responses to this client. |
void |
setUserInfoJWSAlgorithm(com.nimbusds.jose.JWSAlgorithm userInfoJWSAlg)
Sets the JSON Web Signature (JWS) algorithm required for the UserInfo responses to this client. |
net.minidev.json.JSONObject |
toJSONObject()
Returns the client details as a JSON object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClientDetails()
Method Detail |
---|
public ClientID getID()
null
if not specified.public void setID(ClientID id)
id
- The client ID, null
if not specified.public URL getRegistrationURI()
registration_client_uri
client registration parameter.
null
if not specified.public void setRegistrationURI(URL registrationURI)
registration_client_uri
client registration parameter.
registrationURI
- The registration URI, null
if not
specified.public Set<URL> getRedirectURIs()
redirect_uris
client registration parameter.
null
if not specified.public void setRedirectURIs(Set<URL> redirectURIs)
redirect_uris
client registration parameter.
redirectURIs
- The redirect URIs, null
if not
specified.public ResponseType getResponseTypes()
response_types
client registration parameter.
null
if not specified.public void setResponseTypes(ResponseType responseTypes)
response_types
client registration parameter.
responseTypes
- The response types, null
if not
specified.public Set<GrantType> getGrantTypes()
grant_types
client registration parameter.
null
if not specified.public void setGrantTypes(Set<GrantType> grantTypes)
grant_types
client registration parameter.
grantTypes
- The grant types, null
if not specified.public ApplicationType getApplicationType()
application_type
client registration parameter.
null
if not specified.public void setApplicationType(ApplicationType applicationType)
application_type
client registration parameter.
applicationType
- The client application type, null
if
not specified.public List<javax.mail.internet.InternetAddress> getContacts()
contacts
client registration parameter.
null
if not specified.public void setContacts(List<javax.mail.internet.InternetAddress> contacts)
contacts
client registration parameter.
contacts
- The administrator contacts, null
if not
specified.public String getName()
client_name
client
registration parameter, with no language tag.
null
if not specified.public String getName(com.nimbusds.langtag.LangTag langTag)
client_name
client
registration parameter, with an optional language tag.
langTag
- The language tag of the entry, null
to get
the non-tagged entry.
null
if not specified.public Map<com.nimbusds.langtag.LangTag,String> getNameEntries()
client_name
client registration parameter.
public void setName(String name)
client_name
client
registration parameter, with no language tag.
name
- The client name, null
if not specified.public void setName(String name, com.nimbusds.langtag.LangTag langTag)
client_name
client
registration parameter, with an optional language tag.
name
- The client name. Must not be null
.langTag
- The language tag, null
if not specified.public URL getLogoURI()
logo_uri
client registration parameter, with no language
tag.
null
if not specified.public URL getLogoURI(com.nimbusds.langtag.LangTag langTag)
logo_uri
client registration parameter, with an optional
language tag.
null
if not specified.public Map<com.nimbusds.langtag.LangTag,URL> getLogoURIEntries()
logo_uri
client registration parameter.
public void setLogoURI(URL logoURI)
logo_uri
client registration parameter, with no language
tag.
logoURI
- The logo URI, null
if not specified.public void setLogoURI(URL logoURI, com.nimbusds.langtag.LangTag langTag)
logo_uri
client registration parameter, with an optional
language tag.
logoURI
- The logo URI. Must not be null
.langTag
- The language tag, null
if not specified.public URL getPolicyURI()
policy_uri
client registration parameter, with no language
tag.
null
if not specified.public URL getPolicyURI(com.nimbusds.langtag.LangTag langTag)
policy_url
client registration parameter, with an optional
language tag.
null
if not specified.public Map<com.nimbusds.langtag.LangTag,URL> getPolicyURIEntries()
policy_uri
client registration parameter.
public void setPolicyURI(URL policyURI)
policy_uri
client registration parameter, with no language
tag.
policyURI
- The policy URI, null
if not specified.public void setPolicyURI(URL policyURI, com.nimbusds.langtag.LangTag langTag)
policy_uri
client registration parameter, with an optional
language tag.
policyURI
- The policy URI. Must not be null
.langTag
- The language tag, null
if not specified.public URL getTermsOfServiceURI()
tos_uri
client registration parameter, with no language
tag.
null
if not specified.public URL getTermsOfServiceURI(com.nimbusds.langtag.LangTag langTag)
tos_uri
client registration parameter, with an optional
language tag.
null
if not specified.public Map<com.nimbusds.langtag.LangTag,URL> getTermsOfServiceURIEntries()
tos_uri
client registration parameter.
public void setTermsOfServiceURI(URL tosURI)
tos_uri
client registration parameter, with no language
tag.
tosURI
- The terms of service URI, null
if not
specified.public void setTermsOfServiceURI(URL tosURI, com.nimbusds.langtag.LangTag langTag)
tos_uri
client registration parameter, with an optional
language tag.
tosURI
- The terms of service URI. Must not be null
.langTag
- The language tag, null
if not specified.public SubjectType getSubjectType()
subject_type
client registration
parameter.
null
if not specified.public void setSubjectType(SubjectType subjectType)
subject_type
client registration
parameter.
subjectType
- The subject identifier type, null
if not
specified.public URL getSectorIDURI()
sector_identifier_uri
client registration parameter.
null
if not specified.public void setSectorIDURI(URL sectorIDURI)
sector_identifier_uri
client registration parameter.
sectorIDURI
- The sector identifier URI, null
if not
specified.public ClientAuthenticationMethod getTokenEndpointAuthMethod()
token_endpoint_auth_method
client registration parameter.
null
if
not specified.public void setTokenEndpointAuthMethod(ClientAuthenticationMethod authMethod)
token_endpoint_auth_method
client registration parameter.
authMethod
- The Token endpoint authentication method,
null
if not specified.public URL getJWKSetURI()
jwks_uri
client
registration parameter.
null
if not specified.public void setJWKSetURL(URL jwkSetURI)
jwks_uri
client
registration parameter.
jwkSetURI
- The JWK set URI, null
if not specified.public Set<URL> getRequestObjectURIs()
request_uris
client registration
parameter.
null
if not specified.public void setRequestObjectURIs(Set<URL> requestObjectURIs)
request_uris
client registration
parameter.
requestObjectURIs
- The request object URIs, null
if
not specified.public com.nimbusds.jose.JWSAlgorithm getRequestObjectJWSAlgorithm()
request_object_signing_alg
client registration parameter.
null
if not specified.public void setRequestObjectJWSAlgorithm(com.nimbusds.jose.JWSAlgorithm requestObjectJWSAlg)
request_object_signing_alg
client registration parameter.
requestObjectJWSAlg
- The JWS algorithm, null
if not
specified.public com.nimbusds.jose.JWSAlgorithm getIDTokenJWSAlgorithm()
id_token_signed_response_alg
client registration parameter.
null
if not specified.public void setIDTokenJWSAlgorithm(com.nimbusds.jose.JWSAlgorithm idTokenJWSAlg)
id_token_signed_response_alg
client registration parameter.
idTokenJWSAlg
- The JWS algorithm, null
if not
specified.public com.nimbusds.jose.JWEAlgorithm getIDTokenJWEAlgorithm()
id_token_encrypted_response_alg
client registration
parameter.
null
if not specified.public void setIDTokenJWEAlgorithm(com.nimbusds.jose.JWEAlgorithm idTokenJWEAlg)
id_token_encrypted_response_alg
client registration
parameter.
idTokenJWEAlg
- The JWE algorithm, null
if not
specified.public com.nimbusds.jose.EncryptionMethod getIDTokenJWEEncryptionMethod()
id_token_encrypted_response_enc
client registration
parameter.
null
if not specified.public void setIDTokenJWEEncryptionMethod(com.nimbusds.jose.EncryptionMethod idTokenJWEEnc)
id_token_encrypted_response_enc
client registration
parameter.
idTokenJWEEnc
- The JWE encryption method, null
if not
specified.public com.nimbusds.jose.JWSAlgorithm getUserInfoJWSAlgorithm()
userinfo_signed_response_alg
client registration
parameter.
null
if not specified.public void setUserInfoJWSAlgorithm(com.nimbusds.jose.JWSAlgorithm userInfoJWSAlg)
userinfo_signed_response_alg
client registration
parameter.
userInfoJWSAlg
- The JWS algorithm, null
if not
specified.public com.nimbusds.jose.JWEAlgorithm getUserInfoJWEAlgorithm()
userinfo_encrypted_response_alg
client registration
parameter.
null
if not specified.public void setUserInfoJWEAlgorithm(com.nimbusds.jose.JWEAlgorithm userInfoJWEAlg)
userinfo_encrypted_response_alg
client registration
parameter.
userInfoJWEAlg
- The JWE algorithm, null
if not
specified.public com.nimbusds.jose.EncryptionMethod getUserInfoJWEEncryptionMethod()
userinfo_encrypted_response_enc
client registration
parameter.
null
if not specified.public void setUserInfoJWEEncryptionMethod(com.nimbusds.jose.EncryptionMethod userInfoJWEEnc)
userinfo_encrypted_response_enc
client registration
parameter.
userInfoJWEEnc
- The JWE encryption method, null
if not
specified.public int getDefaultMaxAge()
default_max_age
client registration parameter.
public void setDefaultMaxAge(int defaultMaxAge)
default_max_age
client registration parameter.
defaultMaxAge
- The default max authentication age, in seconds.
If not specified 0.public boolean requiresAuthTime()
auth_time
claim in the
ID Token. Corresponds to the require_auth_time
client
registration parameter.
true
the auth_Time
claim in the ID Token
is required by default.public void requiresAuthTime(boolean requiresAuthTime)
auth_time
claim in the
ID Token. Corresponds to the require_auth_time
client
registration parameter.
requiresAuthTime
- If true
the auth_Time
claim
in the ID Token is required by default.public Set<ACR> getDefaultACRs()
default_acr_values
client
registration parameter.
null
if not specified.public void setDefaultACRs(Set<ACR> defaultACRs)
default_acr_values
client
registration parameter.
defaultACRs
- The default ACRs, null
if not specified.public URL getInitiateLoginURI()
initiate_login_uri
client registration parameter.
null
if not specified.public void setInitiateLoginURI(URL loginURI)
initiate_login_uri
client registration parameter.
loginURI
- The login URI, null
if not specified.public URL getPostLogoutRedirectURI()
post_logout_redirect_uri
client registration parameter.
null
if not specified.public void setPostLogoutRedirectURI(URL logoutURI)
post_logout_redirect_uri
client registration parameter.
logoutURI
- The logout URI, null
if not specified.public BearerAccessToken getRegistrationAccessToken()
registration_access_token
client registration parameter.
null
if not
specified.public void setRegistrationAccessToken(BearerAccessToken accessToken)
registration_access_token
client registration parameter.
accessToken
- The registration access token, null
if
not specified.public Secret getSecret()
client_secret
and
client_secret_expires_at
client registration parameters.
null
if not specified.public void setSecret(Secret secret)
client_secret
and
client_secret_expires_at
client registration parameters.
secret
- The client secret, null
if not specified.public void applyDefaults()
public net.minidev.json.JSONObject toJSONObject()
public static ClientDetails 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 client details instance.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |