public class OpenAMClientRegistration extends Object implements OpenIdConnectClientRegistration
Modifier and Type | Method and Description |
---|---|
long |
getAccessTokenLifeTime(OAuth2ProviderSettings providerSettings)
Gets the access token life time in milliseconds.
|
String |
getAccessTokenType()
Gets the type of access token the client requires.
|
Set<String> |
getAllowedResponseTypes()
Gets the allowed response types.
|
Set<String> |
getAllowedScopes()
Gets the allowed scopes configured for the client.
|
long |
getAuthorizationCodeLifeTime(OAuth2ProviderSettings providerSettings)
Gets the authorization code life time in milliseconds.
|
Map<String,String> |
getClaimDescriptions(Locale locale)
Gets the display descriptions for the allowed and default scopes combined, in the specified locale.
|
String |
getClientId()
Gets the client's identifier.
|
String |
getClientSecret()
Gets the client's secret.
|
String |
getClientSessionURI()
Gets the client's session URI.
|
ClientType |
getClientType()
Gets the client's type.
|
Set<String> |
getDefaultScopes()
Gets the default scopes configured for the client.
|
String |
getDisplayDescription(Locale locale)
Gets the display description of the client in the specified locale.
|
String |
getDisplayName(Locale locale)
Gets the display name of the client in the specified locale.
|
Key |
getIDTokenEncryptionKey()
Gets the encryption key used to encrypt OpenID Connect tokens.
|
String |
getIDTokenEncryptionResponseAlgorithm()
Gets the algorithm used to encrypt OpenID Connect tokens.
|
String |
getIDTokenEncryptionResponseMethod()
Gets the encryption method used to encrypt OpenID Connect tokens.
|
String |
getIDTokenSignedResponseAlgorithm()
Gets the OpenId Token signed response algorithm.
|
long |
getJwtTokenLifeTime(OAuth2ProviderSettings providerSettings)
Gets the JWT token life time in milliseconds.
|
Set<URI> |
getPostLogoutRedirectUris()
Gets the registered post logout redirect uris for the client.
|
Set<URI> |
getRedirectUris()
Gets the registered redirect uris for the client.
|
long |
getRefreshTokenLifeTime(OAuth2ProviderSettings providerSettings)
Gets the refresh token life time in milliseconds.
|
Map<String,String> |
getScopeDescriptions(Locale locale)
Gets the display descriptions for the allowed and default scopes combined, in the specified locale.
|
URI |
getSectorIdentifierUri()
Gets the subject identifier uri.
|
String |
getSubjectType()
Gets the subject type of this client.
|
String |
getSubValue(String id,
OAuth2ProviderSettings providerSettings)
Retrieve the sub value, appropriate for the client subject type, or null
if there are issues with its formation.
|
String |
getTokenEndpointAuthMethod()
Gets the token_endpoint_auth_method configured for this client.
|
boolean |
isConfidential()
Gets whether the client is confidential or not.
|
boolean |
isConsentImplied()
Gets whether or not the client wants the OAuth2 implementation to skip asking the resource owner for consent.
|
boolean |
isIDTokenEncryptionEnabled()
Determines if ID token encryption is enabled.
|
boolean |
verifyJwtIdentity(OAuth2Jwt jwt)
Verifies that the supplied jwt is signed by this client.
|
public Set<URI> getRedirectUris()
getRedirectUris
in interface ClientRegistration
public Set<URI> getPostLogoutRedirectUris()
getPostLogoutRedirectUris
in interface ClientRegistration
public Set<String> getAllowedResponseTypes()
getAllowedResponseTypes
in interface ClientRegistration
public String getClientSecret()
getClientSecret
in interface ClientRegistration
public String getClientId()
getClientId
in interface ClientRegistration
public String getAccessTokenType()
getAccessTokenType
in interface ClientRegistration
public String getDisplayName(Locale locale)
getDisplayName
in interface ClientRegistration
locale
- The locale.public String getDisplayDescription(Locale locale)
getDisplayDescription
in interface ClientRegistration
locale
- The locale.public Map<String,String> getScopeDescriptions(Locale locale) throws ServerException
getScopeDescriptions
in interface ClientRegistration
locale
- The locale.ServerException
public Map<String,String> getClaimDescriptions(Locale locale) throws ServerException
getClaimDescriptions
in interface ClientRegistration
locale
- The locale.ServerException
public Set<String> getDefaultScopes()
getDefaultScopes
in interface ClientRegistration
public Set<String> getAllowedScopes()
getAllowedScopes
in interface ClientRegistration
public boolean isConfidential()
isConfidential
in interface ClientRegistration
true
if the client is confidential.public String getClientSessionURI()
getClientSessionURI
in interface ClientRegistration
public ClientType getClientType()
public long getAuthorizationCodeLifeTime(OAuth2ProviderSettings providerSettings) throws ServerException
getAuthorizationCodeLifeTime
in interface OpenIdConnectClientRegistration
providerSettings
- An instance of the OAuth2ProviderSettings.ServerException
- If any internal server error occurs.public long getAccessTokenLifeTime(OAuth2ProviderSettings providerSettings) throws ServerException
getAccessTokenLifeTime
in interface OpenIdConnectClientRegistration
providerSettings
- An instance of the OAuth2ProviderSettings.ServerException
- If any internal server error occurs.public long getRefreshTokenLifeTime(OAuth2ProviderSettings providerSettings) throws ServerException
getRefreshTokenLifeTime
in interface OpenIdConnectClientRegistration
providerSettings
- An instance of the OAuth2ProviderSettings.ServerException
- If any internal server error occurs.public long getJwtTokenLifeTime(OAuth2ProviderSettings providerSettings) throws ServerException
getJwtTokenLifeTime
in interface OpenIdConnectClientRegistration
providerSettings
- An instance of the OAuth2ProviderSettings.ServerException
- If any internal server error occurs.public String getIDTokenSignedResponseAlgorithm()
getIDTokenSignedResponseAlgorithm
in interface OpenIdConnectClientRegistration
public boolean isIDTokenEncryptionEnabled()
OpenIdConnectClientRegistration
isIDTokenEncryptionEnabled
in interface OpenIdConnectClientRegistration
true
if ID token encryption is enabled.public String getIDTokenEncryptionResponseAlgorithm()
OpenIdConnectClientRegistration
getIDTokenEncryptionResponseAlgorithm
in interface OpenIdConnectClientRegistration
public String getIDTokenEncryptionResponseMethod()
OpenIdConnectClientRegistration
getIDTokenEncryptionResponseMethod
in interface OpenIdConnectClientRegistration
public Key getIDTokenEncryptionKey()
OpenIdConnectClientRegistration
getIDTokenEncryptionKey
in interface OpenIdConnectClientRegistration
public String getTokenEndpointAuthMethod()
getTokenEndpointAuthMethod
in interface OpenIdConnectClientRegistration
public String getSubjectType()
getSubjectType
in interface ClientRegistration
public boolean verifyJwtIdentity(OAuth2Jwt jwt)
ClientRegistration
verifyJwtIdentity
in interface ClientRegistration
public boolean isConsentImplied()
ClientRegistration
isConsentImplied
in interface ClientRegistration
public URI getSectorIdentifierUri()
getSectorIdentifierUri
in interface OpenIdConnectClientRegistration
public String getSubValue(String id, OAuth2ProviderSettings providerSettings)
OpenIdConnectClientRegistration
getSubValue
in interface OpenIdConnectClientRegistration
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.