Modifier and Type | Class and Description |
---|---|
static class |
Client.ApplicationType
Stores a client application type.
|
static class |
Client.ClientType
Stores the possible OAuth2Client types.
|
static class |
Client.PublicKeySelector
Stores the selected public key locator for this client.
|
static class |
Client.SubjectType
Stores a Client SubjectType.
|
static class |
Client.TokenEndpointAuthMethod
Stores a token endpoint auth method type.
|
Modifier and Type | Field and Description |
---|---|
static String |
CONFIRMED_MAX_AGE |
static long |
MIN_DEFAULT_MAX_AGE |
Constructor and Description |
---|
Client(String clientID,
String clientType,
List<String> redirectionURIs,
List<String> allowedGrantScopes,
List<String> defaultGrantScopes,
List<String> displayName,
List<String> displayDescription,
List<String> clientName,
String subjectType,
String idTokenSignedResponseAlgorithm,
List<String> postLogoutRedirectionURIs,
String accessToken,
String clientSessionURI,
String applicationType,
String clientSecret,
List<String> responseTypes,
List<String> contacts,
Long defaultMaxAge,
Boolean defaultMaxAgeEnabled,
String tokenEndpointAuthMethod,
String jwks,
String jwksUri,
String x509,
String selector,
String sectorIdUri,
Long authorizationCodeLifeTime,
Long accessTokenLifeTime,
Long refreshTokenLifeTime,
Long jwtTokenLifeTime)
Creates a OAuth2Client.
|
Modifier and Type | Method and Description |
---|---|
String |
getAccessToken()
Gets the registration access token of the OAuth2Client.
|
Long |
getAccessTokenLifeTime()
Gets the access token lifetime of the OAuth2Client.
|
Set<String> |
getAllowedGrantScopes()
Gets the allowed scopes of the OAuth2Client.
|
Client.ApplicationType |
getApplicationType()
Gets the application type of the OAuth2Client.
|
Long |
getAuthorizationCodeLifeTime()
Gets the authorization code lifetime of the OAuth2Client.
|
String |
getClientID()
Gets the client id of the OAuth2Client.
|
Set<String> |
getClientName()
Gets the client names of the OAuth2Client.
|
String |
getClientSecret()
Gets the client secret of the OAuth2Client.
|
String |
getClientSessionURI()
Gets the client session uri of the OAuth2Client.
|
Client.ClientType |
getClientType()
Gets the client type of the OAuth2Client.
|
Set<String> |
getContacts()
Gets the contacts.
|
Set<String> |
getDefaultGrantScopes()
Gets the default scopes of the OAuth2Client.
|
Long |
getDefaultMaxAge()
Gets the default max age of the OAuth2Client.
|
Boolean |
getDefaultMaxAgeEnabled()
Gets whether the max age value is enforced.
|
Set<String> |
getDisplayDescription()
Gets the client descriptions of the OAuth2Client.
|
Set<String> |
getDisplayName()
Gets the display names of the OAuth2Client.
|
String |
getIdTokenSignedResponseAlgorithm()
Gets the id token signed response alg of the OAuth2Client.
|
String |
getJwks()
Gets JWKs for this client.
|
String |
getJwksUri()
Gets JWKs_URI for this client.
|
Long |
getJwtTokenLifeTime()
Gets the JWT token lifetime of the OAuth2Client.
|
String |
getKeySelector()
Returns the key selector for this client.
|
List<String> |
getPostLogoutRedirectionURIs()
Gets the post logout redirection uri of the OAuth2Client.
|
Set<URI> |
getRedirectionURIs()
Gets the redirection uris of the OAuth2Client.
|
Set<String> |
getRedirectionURIsAsString()
Gets the redirection uris of the OAuth2Client.
|
Long |
getRefreshTokenLifeTime()
Gets the refresh token lifetime of the OAuth2Client.
|
Set<String> |
getResponseTypes()
Gets the response types.
|
String |
getSectorIdUri()
Returns the sector id uri for this client if set.
|
Client.SubjectType |
getSubjectType()
Gets the subject type of the OAuth2Client.
|
Client.TokenEndpointAuthMethod |
getTokenEndpointAuthMethod()
Gets the token endpoint auth method.
|
String |
getX509()
Gets X509 certificate for this client.
|
boolean |
hasAccessToken()
Indicates whether this client has a registration access token or not.
|
void |
setAccessToken(String accessToken)
Sets the registration access token of the OAuth2Client.
|
void |
setAccessTokenLifeTime(Long accessTokenLifeTime)
Sets the access token lifetime of the OAuth2Client.
|
void |
setAllowedGrantScopes(List<String> allowedGrantScopes)
Sets the allowed scopes of the OAuth2Client.
|
void |
setApplicationType(String applicationType)
Sets the application type of the OAuth2Client.
|
void |
setAuthorizationCodeLifeTime(Long authorizationCodeLifeTime)
Sets the authorization code lifetime of the OAuth2Client.
|
void |
setClientID(String clientID)
Sets the client id of the OAuth2Client.
|
void |
setClientName(List<String> clientName)
Sets the client names of the OAuth2Client.
|
void |
setClientSecret(String clientSecret)
Sets the client secret of the OAuth2Client.
|
void |
setClientSessionURI(String clientSessionURI)
Sets the client session uri of the OAuth2Client.
|
void |
setClientType(String clientType)
Sets the client type of the OAuth2Client.
|
void |
setContacts(List<String> contacts)
Sets the contacts of the OAuth2Client.
|
void |
setDefaultGrantScopes(List<String> defaultGrantScopes)
Sets the default scopes of the OAuth2Client.
|
void |
setDefaultMaxAge(Long defaultMaxAge)
Sets the default max age of the OAuth2Client.
|
void |
setDefaultMaxAgeEnabled(Boolean defaultMaxAgeEnabled)
Sets whether the default max age value is to be utilised.
|
void |
setDisplayDescription(List<String> displayDescription)
Sets the client descriptions of the OAuth2Client.
|
void |
setDisplayName(List<String> displayName)
Sets the display names of the OAuth2Client.
|
void |
setIdTokenSignedResponseAlgorithm(String idTokenSignedResponseAlgorithm)
Sets the id token signed response alg of the OAuth2Client.
|
void |
setJwtTokenLifeTime(Long jwtTokenLifeTime)
Sets the JWT token lifetime of the OAuth2Client.
|
void |
setPostLogoutRedirectionURIs(List<String> postLogoutRedirectionURIs)
Sets the post logout redirection uri of the OAuth2Client.
|
void |
setRedirectionURIs(List<String> redirectionURIs)
Sets the redirection uris of the OAuth2Client.
|
void |
setRefreshTokenLifeTime(Long refreshTokenLifeTime)
Sets the refresh token lifetime of the OAuth2Client.
|
void |
setResponseTypes(List<String> responseTypes)
Sets the response types of the OAuth2Client.
|
void |
setSectorIdUri(String sectorIdUri)
Sets the sector id uri.
|
void |
setSubjectType(String subjectType)
Sets the subject type of the OAuth2Client.
|
void |
setTokenEndpointAuthMethod(String tokenEndpointAuthMethod)
Sets the token endpoint auth method.
|
add, add, add, add, addPermissive, array, as, asBigDecimal, asBoolean, asCollection, asCollection, asDouble, asEnum, asInteger, asList, asList, asLong, asMap, asMap, asMapOfList, asNumber, asSet, asSet, asString, asURI, clear, clone, contains, copy, defaultTo, diff, expect, field, fieldIfNotNull, get, get, get, getObject, getPointer, isBoolean, isCollection, isDefined, isEqualTo, isList, isMap, isNotNull, isNull, isNumber, isSet, isString, iterator, json, keys, object, object, patch, put, put, put, putPermissive, remove, remove, remove, required, set, setObject, size, toIndex, toString
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public static final long MIN_DEFAULT_MAX_AGE
public static final String CONFIRMED_MAX_AGE
public Client(String clientID, String clientType, List<String> redirectionURIs, List<String> allowedGrantScopes, List<String> defaultGrantScopes, List<String> displayName, List<String> displayDescription, List<String> clientName, String subjectType, String idTokenSignedResponseAlgorithm, List<String> postLogoutRedirectionURIs, String accessToken, String clientSessionURI, String applicationType, String clientSecret, List<String> responseTypes, List<String> contacts, Long defaultMaxAge, Boolean defaultMaxAgeEnabled, String tokenEndpointAuthMethod, String jwks, String jwksUri, String x509, String selector, String sectorIdUri, Long authorizationCodeLifeTime, Long accessTokenLifeTime, Long refreshTokenLifeTime, Long jwtTokenLifeTime)
clientID
- The client id of the client.clientType
- The client type of the client.redirectionURIs
- The redirection uris of the client.allowedGrantScopes
- The allowed scopes of the client.defaultGrantScopes
- The default scopes of the client.displayName
- The display name of the clientdisplayDescription
- The client description of the client.clientName
- The client name of the client.subjectType
- The subject type of the client.idTokenSignedResponseAlgorithm
- The id token signed response algorithm of the client.postLogoutRedirectionURIs
- The post logout redirect URIs of the client.accessToken
- The registration access token of the client.clientSessionURI
- The client session uri of the client.applicationType
- The application type of the client.clientSecret
- The client secret of the client.responseTypes
- The response types of the client.contacts
- The contact information for the client (can be null).defaultMaxAge
- The default maximum age a session can be when authorizing, in seconds.defaultMaxAgeEnabled
- Whether we enforce the defaultMaxAge parameter or not.tokenEndpointAuthMethod
- The token endpoint's authentication method.jwks
- The client's public key jwks.jwksUri
- The client's public key jwks_uri.x509
- The client's public key x509.selector
- Selector for the public key format.sectorIdUri
- Client's sector ID Uri.authorizationCodeLifeTime
- The client's authorization code lifetime.accessTokenLifeTime
- The client's access token lifetime.refreshTokenLifeTime
- The client's refresh token lifetime.jwtTokenLifeTime
- The client's JWT token lifetime.public String getJwks()
public String getJwksUri()
public String getX509()
public String getKeySelector()
public String getClientID()
public Long getDefaultMaxAge()
public Boolean getDefaultMaxAgeEnabled()
public void setClientID(String clientID)
clientID
- The client id.public Client.ClientType getClientType()
null
, null
is returned.public void setClientType(String clientType)
clientType
- The client type.public Set<URI> getRedirectionURIs()
null
, null
is
returned.public Set<String> getRedirectionURIsAsString()
null
, null
is returned.public void setRedirectionURIs(List<String> redirectionURIs)
redirectionURIs
- The redirection uris.public void setSectorIdUri(String sectorIdUri)
public String getSectorIdUri()
public Set<String> getAllowedGrantScopes()
null
, null
is returned.public void setAllowedGrantScopes(List<String> allowedGrantScopes)
allowedGrantScopes
- The allowed scopes.public Set<String> getDefaultGrantScopes()
null
, null
, is returned.public void setDefaultGrantScopes(List<String> defaultGrantScopes)
defaultGrantScopes
- The default scopes.public Set<String> getDisplayName()
null
, null
is returned.public void setDisplayName(List<String> displayName)
displayName
- The display names.public Set<String> getDisplayDescription()
null
, null
is
returned.public void setDisplayDescription(List<String> displayDescription)
displayDescription
- The client descriptions.public Set<String> getClientName()
null
, null
is returned.public void setClientName(List<String> clientName)
clientName
- The client names.public Client.SubjectType getSubjectType()
public void setSubjectType(String subjectType)
subjectType
- The subject type.public String getIdTokenSignedResponseAlgorithm()
public void setIdTokenSignedResponseAlgorithm(String idTokenSignedResponseAlgorithm)
null
the value is defaulted to 'HS256'.idTokenSignedResponseAlgorithm
- The id token signed response alg.public List<String> getPostLogoutRedirectionURIs()
null
,
null
is returned.public void setPostLogoutRedirectionURIs(List<String> postLogoutRedirectionURIs)
postLogoutRedirectionURIs
- The post logout redirection uri.public String getAccessToken()
null
,
null
is returned.public void setAccessToken(String accessToken)
accessToken
- The registration access token.public boolean hasAccessToken()
public String getClientSessionURI()
null
, null
is
returned.public void setClientSessionURI(String clientSessionURI)
clientSessionURI
- The client session uri.public Client.ApplicationType getApplicationType()
null
, null
is returned.public void setApplicationType(String applicationType)
applicationType
- The application type.public String getClientSecret()
null
, null
is returned.public void setClientSecret(String clientSecret)
clientSecret
- The client's secret.public Set<String> getResponseTypes()
null
, null
will be returned.Set
of response types.public void setResponseTypes(List<String> responseTypes)
responseTypes
- The response types.public void setDefaultMaxAgeEnabled(Boolean defaultMaxAgeEnabled)
defaultMaxAgeEnabled
- The default max age.public Client.TokenEndpointAuthMethod getTokenEndpointAuthMethod()
public void setTokenEndpointAuthMethod(String tokenEndpointAuthMethod)
tokenEndpointAuthMethod
- the token endpoint auth method to use.public void setDefaultMaxAge(Long defaultMaxAge)
defaultMaxAge
- The default max age.public Set<String> getContacts()
null
, null
will be returned.Set
of contactspublic void setContacts(List<String> contacts)
contacts
- The contacts.public Long getAuthorizationCodeLifeTime()
public void setAuthorizationCodeLifeTime(Long authorizationCodeLifeTime)
authorizationCodeLifeTime
- The authorization code lifetime.public Long getAccessTokenLifeTime()
public void setAccessTokenLifeTime(Long accessTokenLifeTime)
accessTokenLifeTime
- The access token lifetime.public Long getRefreshTokenLifeTime()
public void setRefreshTokenLifeTime(Long refreshTokenLifeTime)
refreshTokenLifeTime
- The refresh token lifetime.public Long getJwtTokenLifeTime()
public void setJwtTokenLifeTime(Long jwtTokenLifeTime)
jwtTokenLifeTime
- The JWT token lifetime.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.