Class ScriptedClient
java.lang.Object
org.forgerock.openam.scripting.api.identity.ScriptedIdentity
org.forgerock.openam.scripting.api.identity.ScriptedClient
A subclass of
ScriptedIdentity which enables the translation of SMS attribute names to LDAP naming
convention in a scripted context.-
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttribute(String attributeName, String attributeValue) Adds a new attribute value to the existing set for the named attribute.getAttribute(String attributeName) String[]getAttributeValues(String attributeName) Retrieves a particular attribute's valuesetAccessTokenLifeTime(Long accessTokenLifeTime) Sets the Access token lifetime.voidsetAttribute(String attributeName, String[] attributeValues) Sets the attribute's values.setAuthorizationCodeLifeTime(Long authorizationCodeLifeTime) Sets the authorization code lifetime.setAuthorizationEncryptedResponseAlg(String encryptedResponseAlg) Sets the authorization response JWT encryption algorithm.setAuthorizationEncryptedResponseEnc(String encryptedResponseMethod) Sets the authorization response JWT encryption method.setAuthorizationResponseSigningAlg(String signedResponseAlg) Sets the authorization response JWT signing algorithm.Set the URI for back-channel logout.setClaimsRedirectUris(List<String> claimsRedirectUris) Set the claims redirection URIs.setClientDescription(List<String> displayDescription) Sets the client description of the ScriptedClient.setClientName(List<String> clientName) Sets the client name of the ScriptedClient.setClientSecret(String clientSecret) Sets the client secret of the ScriptedClient.setClientSessionURI(String clientSessionURI) Sets the client session uri of the ScriptedClient.setClientType(String clientType) Sets the client type of the ScriptedClient.setClientUri(List<String> uris) Set the client URI (with localisations).setContacts(List<String> contacts) Sets the contacts of the ScriptedClient.setDefaultAcrValues(List<String> defaultAcrValues) Sets the default acr values on the ScriptedClient.setDefaultMaxAge(Long defaultMaxAge) Sets the default max age on the ScriptedClient.setDefaultMaxAgeEnabled(Boolean enforceDefaultMaxAge) Sets whether to enforce the default max age.setDefaultScopes(List<String> defaultScopes) Sets the default scopes of the ScriptedClient.setDisplayName(List<String> displayName) Sets the display name of the ScriptedClient.setGrantTypes(List<String> grantTypes) Set the Grant Types.setIdTokenEncryptedResponseAlg(String idTokenEncryptedResponseAlgorithm) Sets the id token signed response algorithm of the ScriptedClient.setIdTokenEncryptedResponseEnc(String idTokenEncryptedResponseEnc) Sets the id token encrypted response algorithm of the ScriptedClient.setIdTokenEncryptionEnabled(boolean idTokenEncryptionEnabled) Sets whether the id token encryption is enabled or not.setIdTokenSignedResponseAlg(String idTokenSignedResponseAlgorithm) Sets the id token signed response algorithm of the ScriptedClient.setIntrospectionEncryptedResponseAlg(String tokenIntrospectionEncryptedResponseAlg) Sets the token introspection encrypted response algorithm.setIntrospectionEncryptedResponseEnc(String tokenIntrospectionEncryptedResponseEnc) Sets the token introspection encrypted response encryption algorithm.setIntrospectionSignedResponseAlg(String tokenIntrospectionSignedResponseAlg) Sets the token introspection signed response algorithm.Sets the JWKs value.setJwksCacheMissCacheTime(Long jwksCacheMissCacheTime) Sets the JWKS URI content cache miss time of the ScriptedClient.setJwksCacheTimeout(Long jwksCacheTimeout) Sets the JWKS URI content cache timeout of the ScriptedClient.setJwksUri(String jwksUri) Sets the JWKs URI value.setJwtTokenLifeTime(Long jwtTokenLifeTime) Sets the JWT token lifetime.setLogoUri(List<String> uris) Set the client logo URI (with localisations).setPolicyUri(List<String> uris) Set the client policy URI (with localisations).setPostLogoutRedirectUris(List<String> postLogoutRedirectionURIs) Sets the post logout redirection URIs of the ScriptedClient.setPublicKeySelector(String selector) Sets the public key selector.setRedirectURIs(List<String> redirectURIs) Sets the redirection uris of the ScriptedClient.setRefreshTokenLifeTime(Long refreshTokenLifeTime) Sets the Refresh token lifetime.setRegistrationAccessToken(String accessToken) Sets the registration access token of the ScriptedClient.setRequestObjectEncryptionAlg(String requestObjectEncryptedAlg) Sets the request parameter encrypted encryption algorithm.setRequestObjectEncryptionEnc(String requestParameterEncryptedEnc) Sets the request parameter encrypted response encryption algorithm.setRequestObjectSigningAlg(String requestObjectSigningAlg) Sets the request parameter encrypted algorithm.setRequestUris(List<String> requestUris) Sets the request uris.setResponseTypes(List<String> responseTypes) Sets the response types of the ScriptedClient.Sets the allowed scopes of the ScriptedClient.setSectorIdentifierUri(String sectorIdentifierUri) Sets the sector identifier uri.setSoftwareId(String softwareIdentity) Sets the software identity to be associated with the client.setSoftwareVersion(String softwareVersion) Sets the software version for the client.setSubjectType(String subjectType) Sets the subject type of the ScriptedClient.setTlsCertificateBoundAccessTokens(boolean useCertificateBoundAccessTokens) Sets whether to use certificate-bound access tokens.setTlsClientAuthSubjectDn(String subjectDn) Sets the Subject DN to use for mutual TLS client authentication.setTlsClientAuthX509Cert(String x509Cert) Sets the self-signed X.509 certificate to use for this client.setTokenEndpointAuthMethod(String tokenEndpointAuthMethod) Sets the token endpoint auth method value.setTokenEndpointAuthSigningAlg(String tokenEndpointAuthSigningAlgorithm) Sets the algorithm that MUST be used for signing the JWT used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods.setTokenIntroResponseFormatSelector(String tokenIntrospectionResponseFormat) Sets the token introspection response format.Set the client Terms of Service (TOS) URI (with localisations).setTreeName(String treeName) Sets the tree name on the ScriptedClient.setUserinfoEncryptedResponseAlg(String userinfoEncryptedResponseAlg) Sets the user info encrypted response algorithm.setUserinfoEncryptedResponseEnc(String userinfoEncryptedResponseEnc) Sets the user info encrypted response encryption algorithm.setUserInfoResponseFormat(String userInfoResponseFormat) Sets the user info response format.setUserinfoSignedResponseAlg(String userinfoSignedResponseAlg) Sets the user info signed response algorithm.Sets the X509 value.
-
Method Details
-
getAttributeValues
Description copied from class:ScriptedIdentityRetrieves a particular attribute's value- Overrides:
getAttributeValuesin classScriptedIdentity- Parameters:
attributeName- the name of the attribute to be retrieved- Returns:
- the value of the attribute
-
getAttribute
-
setAttribute
Description copied from class:ScriptedIdentitySets the attribute's values. If the attribute already exists all existing values will be overridden. If it doesn't exist, it will be created.- Overrides:
setAttributein classScriptedIdentity- Parameters:
attributeName- the name of the attributeattributeValues- the values of the attribute
-
addAttribute
Description copied from class:ScriptedIdentityAdds a new attribute value to the existing set for the named attribute. If the identity does not have any existing values, this sets the attribute to have the single value provided.- Overrides:
addAttributein classScriptedIdentity- Parameters:
attributeName- the name of the attributeattributeValue- the value of the attribute to add
-
setJwksCacheTimeout
Sets the JWKS URI content cache timeout of the ScriptedClient.- Parameters:
jwksCacheTimeout- the JWKS URI content cache timeout
-
setJwksCacheMissCacheTime
Sets the JWKS URI content cache miss time of the ScriptedClient.- Parameters:
jwksCacheMissCacheTime- the JWKS URI content cache miss time
-
setClientSecret
Sets the client secret of the ScriptedClient.- Parameters:
clientSecret- the client's secret
-
setRegistrationAccessToken
Sets the registration access token of the ScriptedClient.- Parameters:
accessToken- the registration access token
-
setScope
Sets the allowed scopes of the ScriptedClient.- Parameters:
allowedGrantScopes- the allowed scopes
-
setClientName
Sets the client name of the ScriptedClient.- Parameters:
clientName- the client name to set
-
setClientSessionURI
Sets the client session uri of the ScriptedClient.- Parameters:
clientSessionURI- the client session uri
-
setClientType
Sets the client type of the ScriptedClient.- Parameters:
clientType- the client type
-
setDefaultScopes
Sets the default scopes of the ScriptedClient.- Parameters:
defaultScopes- the default scopes
-
setClientDescription
Sets the client description of the ScriptedClient.- Parameters:
displayDescription- the client description
-
setDisplayName
Sets the display name of the ScriptedClient.- Parameters:
displayName- the display name
-
setClientUri
Set the client URI (with localisations).- Parameters:
uris- the uri(s)
-
setLogoUri
Set the client logo URI (with localisations).- Parameters:
uris- the uri(s)
-
setPolicyUri
Set the client policy URI (with localisations).- Parameters:
uris- the uri(s)
-
setTosUri
Set the client Terms of Service (TOS) URI (with localisations).- Parameters:
uris- the uri(s)
-
setTokenEndpointAuthMethod
Sets the token endpoint auth method value.- Parameters:
tokenEndpointAuthMethod- token endpoint auth method this client uses
-
setTokenEndpointAuthSigningAlg
@Supported public ScriptedClient setTokenEndpointAuthSigningAlg(String tokenEndpointAuthSigningAlgorithm) Sets the algorithm that MUST be used for signing the JWT used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods.- Parameters:
tokenEndpointAuthSigningAlgorithm- the id token signed request algorithm
-
setJwks
Sets the JWKs value.- Parameters:
jwks- jwks containing valid public keys
-
setJwksUri
Sets the JWKs URI value.- Parameters:
jwksUri- URL containing JWKs of valid public keys
-
setX509
Sets the X509 value.- Parameters:
x509- public key certificate
-
setPublicKeySelector
Sets the public key selector.- Parameters:
selector- which of the public key types to use
-
setSubjectType
Sets the subject type of the ScriptedClient.- Parameters:
subjectType- the subject type
-
setDefaultMaxAgeEnabled
Sets whether to enforce the default max age.- Parameters:
enforceDefaultMaxAge- whether to enforce the default max age
-
setDefaultMaxAge
Sets the default max age on the ScriptedClient.- Parameters:
defaultMaxAge- the default max age, in seconds
-
setSectorIdentifierUri
Sets the sector identifier uri.- Parameters:
sectorIdentifierUri- identifier uri to be used when pairwise
-
setAuthorizationResponseSigningAlg
Sets the authorization response JWT signing algorithm.- Parameters:
signedResponseAlg- the authorization response JWT signing algorithm
-
setAuthorizationEncryptedResponseAlg
Sets the authorization response JWT encryption algorithm.- Parameters:
encryptedResponseAlg- the authorization response JWT encryption algorithm
-
setAuthorizationEncryptedResponseEnc
@Supported public ScriptedClient setAuthorizationEncryptedResponseEnc(String encryptedResponseMethod) Sets the authorization response JWT encryption method.- Parameters:
encryptedResponseMethod- the authorization response JWT encryption method
-
setIdTokenSignedResponseAlg
Sets the id token signed response algorithm of the ScriptedClient.- Parameters:
idTokenSignedResponseAlgorithm- the id token signed response algorithm
-
setIdTokenEncryptedResponseAlg
@Supported public ScriptedClient setIdTokenEncryptedResponseAlg(String idTokenEncryptedResponseAlgorithm) Sets the id token signed response algorithm of the ScriptedClient.- Parameters:
idTokenEncryptedResponseAlgorithm- the id token encrypted response algorithm
-
setIdTokenEncryptedResponseEnc
Sets the id token encrypted response algorithm of the ScriptedClient.- Parameters:
idTokenEncryptedResponseEnc- the id token encrypted response enc
-
setIdTokenEncryptionEnabled
Sets whether the id token encryption is enabled or not.- Parameters:
idTokenEncryptionEnabled- whether id token encryption is enabled
-
setRedirectURIs
Sets the redirection uris of the ScriptedClient.- Parameters:
redirectURIs- the redirection uris
-
setClaimsRedirectUris
Set the claims redirection URIs.- Parameters:
claimsRedirectUris- the uris
-
setPostLogoutRedirectUris
Sets the post logout redirection URIs of the ScriptedClient.- Parameters:
postLogoutRedirectionURIs- the post logout redirection URIs
-
setResponseTypes
Sets the response types of the ScriptedClient.- Parameters:
responseTypes- the response types
-
setContacts
Sets the contacts of the ScriptedClient.- Parameters:
contacts- the contact information for the clients
-
setDefaultAcrValues
Sets the default acr values on the ScriptedClient.- Parameters:
defaultAcrValues- the default acr values
-
setTreeName
Sets the tree name on the ScriptedClient.- Parameters:
treeName- the tree name
-
setUserInfoResponseFormat
Sets the user info response format.- Parameters:
userInfoResponseFormat- the user info response format
-
setUserinfoSignedResponseAlg
Sets the user info signed response algorithm.- Parameters:
userinfoSignedResponseAlg- the user info signed response algorithm
-
setUserinfoEncryptedResponseAlg
@Supported public ScriptedClient setUserinfoEncryptedResponseAlg(String userinfoEncryptedResponseAlg) Sets the user info encrypted response algorithm.- Parameters:
userinfoEncryptedResponseAlg- the user info encrypted response algorithm
-
setUserinfoEncryptedResponseEnc
@Supported public ScriptedClient setUserinfoEncryptedResponseEnc(String userinfoEncryptedResponseEnc) Sets the user info encrypted response encryption algorithm.- Parameters:
userinfoEncryptedResponseEnc- the user info encrypted response encryption algorithm
-
setRequestObjectSigningAlg
Sets the request parameter encrypted algorithm.- Parameters:
requestObjectSigningAlg- the request parameter encrypted response algorithm
-
setRequestObjectEncryptionAlg
Sets the request parameter encrypted encryption algorithm.- Parameters:
requestObjectEncryptedAlg- the request parameter encrypted response encryption algorithm
-
setRequestObjectEncryptionEnc
Sets the request parameter encrypted response encryption algorithm.- Parameters:
requestParameterEncryptedEnc- the request parameter encrypted encryption algorithm
-
setRequestUris
Sets the request uris.- Parameters:
requestUris- the request uris
-
setGrantTypes
Set the Grant Types.- Parameters:
grantTypes- the grantTypes
-
setAuthorizationCodeLifeTime
Sets the authorization code lifetime.- Parameters:
authorizationCodeLifeTime- the authorization code lifetime
-
setAccessTokenLifeTime
Sets the Access token lifetime.- Parameters:
accessTokenLifeTime- the access token lifetime
-
setRefreshTokenLifeTime
Sets the Refresh token lifetime.- Parameters:
refreshTokenLifeTime- the refresh token lifetime
-
setJwtTokenLifeTime
Sets the JWT token lifetime.- Parameters:
jwtTokenLifeTime- JWT token lifetime
-
setTlsCertificateBoundAccessTokens
@Supported public ScriptedClient setTlsCertificateBoundAccessTokens(boolean useCertificateBoundAccessTokens) Sets whether to use certificate-bound access tokens.- Parameters:
useCertificateBoundAccessTokens- whether to use certificate-bound access tokens
-
setTlsClientAuthSubjectDn
Sets the Subject DN to use for mutual TLS client authentication.- Parameters:
subjectDn- the subject DN to use
-
setTlsClientAuthX509Cert
Sets the self-signed X.509 certificate to use for this client. This is a Ping proprietary extension.- Parameters:
x509Cert- the X.509 cert to use for client authentication
-
setTokenIntroResponseFormatSelector
@Supported public ScriptedClient setTokenIntroResponseFormatSelector(String tokenIntrospectionResponseFormat) Sets the token introspection response format.- Parameters:
tokenIntrospectionResponseFormat- the token introspection response format
-
setIntrospectionSignedResponseAlg
@Supported public ScriptedClient setIntrospectionSignedResponseAlg(String tokenIntrospectionSignedResponseAlg) Sets the token introspection signed response algorithm.- Parameters:
tokenIntrospectionSignedResponseAlg- the token introspection signed response algorithm
-
setIntrospectionEncryptedResponseAlg
@Supported public ScriptedClient setIntrospectionEncryptedResponseAlg(String tokenIntrospectionEncryptedResponseAlg) Sets the token introspection encrypted response algorithm.- Parameters:
tokenIntrospectionEncryptedResponseAlg- the token introspection encrypted response algorithm
-
setIntrospectionEncryptedResponseEnc
@Supported public ScriptedClient setIntrospectionEncryptedResponseEnc(String tokenIntrospectionEncryptedResponseEnc) Sets the token introspection encrypted response encryption algorithm.- Parameters:
tokenIntrospectionEncryptedResponseEnc- the token introspection encrypted response encryption algorithm
-
setSoftwareId
Sets the software identity to be associated with the client.- Parameters:
softwareIdentity- the software identity
-
setSoftwareVersion
Sets the software version for the client.- Parameters:
softwareVersion- the software version
-
setBackChannelLogoutUri
Set the URI for back-channel logout.- Parameters:
uri- the back-channel logout URI
-