public interface ClientRegistration
Modifier and Type | Method and Description |
---|---|
OAuth2Jwt |
decryptIdTokenHint(EncryptedJwt encryptedJwt)
Decrypts the provided id_token_hint value.
|
String |
getAccessTokenType()
Gets the type of access token the client requires.
|
Set<GrantType> |
getAllowedGrantTypes()
Gets the allowed grant types configured for the client.
|
Set<String> |
getAllowedResponseTypes()
Gets the allowed response types.
|
Set<String> |
getAllowedScopes()
Gets the allowed scopes configured for the client.
|
Map<String,String> |
getClaimDescriptions(Locale locale)
Gets the display descriptions for the allowed and default scopes combined, in the specified locale.
|
X500Principal |
getClientCertificateSubjectDn()
Returns the Subject DN to expect when the client authenticates with a TLS client certificate.
|
String |
getClientId()
Gets the client's identifier.
|
String |
getClientSecret()
Gets the client's secret.
|
String |
getClientSessionURI()
Gets the client's session URI.
|
String |
getClientUri(Locale locale)
Get the client URI to use for the user's locale, or null if none is registered.
|
freemarker.template.Template |
getCustomLoginUrlTemplate()
Gets the custom login url template which will create the url to redirect resource owners to for authentication.
|
Set<String> |
getCustomProperties()
Retrieve the set of custom properties.
|
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.
|
String |
getLogoUri(Locale locale)
Get the client's logo URI to use for the user's locale, or null if none is registered.
|
String |
getPolicyUri(Locale locale)
Get the client's privacy policy URI to use for the user's locale, or null if none is registered.
|
Set<URI> |
getPostLogoutRedirectUris()
Gets the registered post logout redirect uris for the client.
|
Set<URI> |
getRedirectUris()
Gets the registered redirect uris for the client.
|
Map<String,String> |
getScopeDescriptions(Locale locale)
Gets the display descriptions for the allowed and default scopes combined, in the specified locale.
|
String |
getSubjectType()
Gets the subject type of this client.
|
String |
getTermsOfServiceUri(Locale locale)
Get the client's terms of service URI to use for the user's locale, or null if none is registered.
|
String |
getTokenEndpointAuthMethod()
Gets the token_endpoint_auth_method configured for this client.
|
boolean |
isCertificateBoundAccessTokensEnabled()
Indicates whether this client wants its access tokens bound to the X.509 certificate it uses to authenticate
to the token endpoint.
|
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 |
isMixUpMitigationEnabled()
Tells whether or not OAuth 2.0 IdP Mix-up mitigation has been enabled for this client.
|
boolean |
verifyIdTokenSignedByUsWithConfiguredAlg(OAuth2Jwt jwt)
Verifies that the supplied jwt is signed by AM using the algorithm the client has configured to use.
|
boolean |
verifyIdTokenSignedByUsWithConfiguredAlg(OAuth2Jwt jwt,
boolean includeExpiryCheck)
Verifies that the supplied jwt is signed by AM using the algorithm the client has configured to use.
|
boolean |
verifyJwtBearerForClientAuthentication(OAuth2Request request,
OAuth2Jwt jwt)
Verifies that the supplied jwt is signed by this client.
|
SignedJwt |
verifyJwtRequestParameter(OAuth2Request request,
Jwt jwt)
Verifies that the supplied request parameter jwt is signed by this client.
|
Optional<PKIXCertPathValidatorResult> |
verifyTlsClientCertificateAuthentication(OAuth2Request request,
List<X509Certificate> certChain)
Verifies that the supplied X.509 certificate chain is acceptable to authenticate this client.
|
Set<URI> getRedirectUris()
Set<URI> getPostLogoutRedirectUris()
Set<String> getAllowedResponseTypes()
String getClientId()
String getClientSecret()
String getAccessTokenType()
String getDisplayName(Locale locale)
locale
- The locale.String getDisplayDescription(Locale locale)
locale
- The locale.Map<String,String> getScopeDescriptions(Locale locale)
locale
- The locale.Map<String,String> getClaimDescriptions(Locale locale)
locale
- The locale.String getClientUri(Locale locale)
locale
- The user's locale.String getLogoUri(Locale locale)
locale
- The user's locale.String getPolicyUri(Locale locale)
locale
- The user's locale.String getTermsOfServiceUri(Locale locale)
locale
- The user's locale.Set<String> getDefaultScopes()
Set<String> getAllowedScopes()
Set<GrantType> getAllowedGrantTypes()
boolean isConfidential()
true
if the client is confidential.String getClientSessionURI()
String getSubjectType()
boolean verifyJwtBearerForClientAuthentication(OAuth2Request request, OAuth2Jwt jwt) throws InvalidRequestException
InvalidRequestException
Optional<PKIXCertPathValidatorResult> verifyTlsClientCertificateAuthentication(OAuth2Request request, List<X509Certificate> certChain)
request
- the request.certChain
- the certificate chain presented by the client.SignedJwt verifyJwtRequestParameter(OAuth2Request request, Jwt jwt) throws InvalidRequestException
request
- the OAuth2 requestjwt
- the request parameterInvalidRequestException
OAuth2Jwt decryptIdTokenHint(EncryptedJwt encryptedJwt)
encryptedJwt
- The encrypted JWT.OAuth2Jwt
.boolean verifyIdTokenSignedByUsWithConfiguredAlg(OAuth2Jwt jwt)
jwt
- The JWT to verify.ServerException
- For failures with verification processing.boolean verifyIdTokenSignedByUsWithConfiguredAlg(OAuth2Jwt jwt, boolean includeExpiryCheck)
jwt
- The JWT to verify.includeExpiryCheck
- Whether to include an expiry check, false allows expired JWTs to pass verification.ServerException
- For failures with verification processing.boolean isConsentImplied()
boolean isMixUpMitigationEnabled()
true
if the IdP mix-up mitigation is enabled for this client.freemarker.template.Template getCustomLoginUrlTemplate()
ServerException
- If the custom login url template setting could not be retrieved.String getTokenEndpointAuthMethod()
X500Principal getClientCertificateSubjectDn()
boolean isCertificateBoundAccessTokensEnabled()
Set<String> getCustomProperties()
ServerException
- If any internal server error occurs.Copyright © 2010-2018, ForgeRock All Rights Reserved.