Class Definition
java.lang.Object
com.tivoli.am.fim.trustserver.sts.oauth20.Definition
- All Implemented Interfaces:
Serializable
Implementation of OAuth20ClientDefinition Model of the OAUTH_CLIENT_DEFINITION table
- See Also:
-
Constructor Summary
ConstructorDescriptionDefinition
(long definitionId, String definitionName, String createdDate, String modifiedDate, String[] supportedGrantTypes, int accessTokenLifetime, int accessTokenLength, boolean enforceSingleUseAuthorizationGrant, int authorizationCodeLifetime, int authorizationCodeLength, boolean issueRefreshToken, int refreshTokenLength, int maxGrantLifeTime, boolean enforceSingleAccessTokenPerGrant, boolean enableMultipleRefreshTokensForFaultTolerance, boolean pinEnabled, int pinLength, String tcmBehavior, String tokenCharSet) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttributeSource
(String attrName, String attrSrcId) Add Attributes to Definitionboolean
Returns true if enable multiple refresh tokens for fault tolerance flag is set on Definitionboolean
Returns true if enforce single access token per grant flag is set on Definitionboolean
Returns true if enforce single user authorization grant flag is set on DefinitionRetrieve policyIdint
Returns Access Token Lengthint
Returns Access Token's lifetimeRetrieve all Attributes of Definitionint
Returns Authorization Code Lengthint
Returns Authorization Code LifetimeGet the Definition creation datelong
Get Definition idGet the Definition nameint
Returns Max Authorization Grant LengthGet the Definition's last modified dategetOidc()
Returns OpenID Connect Configurations as OidcDefinition objectint
Returns Pin Lengthint
Returns Refresh Token LengthString[]
Get the Definition supported authorization grantsReturns TCM BehaviourReturns Token CharSetboolean
Returns true if Issue Refresh Token flag is set on Definitionboolean
Returns true if Pin Policy flag is set on Definitionvoid
setAccessPolicyId
(Long accessPolicyId) Set PolicyIdvoid
setOidc
(OidcDefinition oidc) Set OpenID Connect Configurations as OidcDefinition object
-
Constructor Details
-
Definition
public Definition(long definitionId, String definitionName, String createdDate, String modifiedDate, String[] supportedGrantTypes, int accessTokenLifetime, int accessTokenLength, boolean enforceSingleUseAuthorizationGrant, int authorizationCodeLifetime, int authorizationCodeLength, boolean issueRefreshToken, int refreshTokenLength, int maxGrantLifeTime, boolean enforceSingleAccessTokenPerGrant, boolean enableMultipleRefreshTokensForFaultTolerance, boolean pinEnabled, int pinLength, String tcmBehavior, String tokenCharSet)
-
-
Method Details
-
getDefinitionId
public long getDefinitionId()Get Definition id -
getDefinitionName
Get the Definition name -
getCreatedDate
Get the Definition creation date -
getModifiedDate
Get the Definition's last modified date -
getSupportedAuthorizationGrants
Get the Definition supported authorization grants -
issueRefreshToken
public boolean issueRefreshToken()Returns true if Issue Refresh Token flag is set on Definition -
getAccessTokenLifetime
public int getAccessTokenLifetime()Returns Access Token's lifetime -
enforceSingleAccessTokenPerGrant
public boolean enforceSingleAccessTokenPerGrant()Returns true if enforce single access token per grant flag is set on Definition -
getAuthorizationCodeLifetime
public int getAuthorizationCodeLifetime()Returns Authorization Code Lifetime -
pinEnabled
public boolean pinEnabled()Returns true if Pin Policy flag is set on Definition -
getPinLength
public int getPinLength()Returns Pin Length -
getAuthorizationCodeLength
public int getAuthorizationCodeLength()Returns Authorization Code Length -
getAccessTokenLength
public int getAccessTokenLength()Returns Access Token Length -
getRefreshTokenLength
public int getRefreshTokenLength()Returns Refresh Token Length -
getMaxAuthorizationGrantLifetime
public int getMaxAuthorizationGrantLifetime()Returns Max Authorization Grant Length -
enforceSingleUseAuthorizationGrant
public boolean enforceSingleUseAuthorizationGrant()Returns true if enforce single user authorization grant flag is set on Definition -
enableMultipleRefreshTokensForFaultTolerance
public boolean enableMultipleRefreshTokensForFaultTolerance()Returns true if enable multiple refresh tokens for fault tolerance flag is set on Definition -
getTCMBehavior
Returns TCM Behaviour -
getTokenCharSet
Returns Token CharSet -
getOidc
Returns OpenID Connect Configurations as OidcDefinition object -
setOidc
Set OpenID Connect Configurations as OidcDefinition object -
addAttributeSource
Add Attributes to Definition -
getAttributeSources
Retrieve all Attributes of Definition -
setAccessPolicyId
Set PolicyId -
getAccessPolicyId
Retrieve policyId
-