Class Definition
- java.lang.Object
-
- com.tivoli.am.fim.trustserver.sts.oauth20.Definition
-
- All Implemented Interfaces:
java.io.Serializable
public class Definition extends java.lang.Object implements java.io.Serializable
Implementation of OAuth20ClientDefinition Model of the OAUTH_CLIENT_DEFINITION table- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Definition(long definitionId, java.lang.String definitionName, java.lang.String createdDate, java.lang.String modifiedDate, java.lang.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, java.lang.String tcmBehavior, java.lang.String tokenCharSet)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAttributeSource(java.lang.String attrName, java.lang.String attrSrcId)
Add Attributes to Definitionboolean
enableMultipleRefreshTokensForFaultTolerance()
Returns true if enable multiple refresh tokens for fault tolerance flag is set on Definitionboolean
enforceSingleAccessTokenPerGrant()
Returns true if enforce single access token per grant flag is set on Definitionboolean
enforceSingleUseAuthorizationGrant()
Returns true if enforce single user authorization grant flag is set on Definitionjava.lang.Long
getAccessPolicyId()
Retrieve policyIdint
getAccessTokenLength()
Returns Access Token Lengthint
getAccessTokenLifetime()
Returns Access Token's lifetimejava.util.Map<java.lang.String,java.lang.String>
getAttributeSources()
Retrieve all Attributes of Definitionint
getAuthorizationCodeLength()
Returns Authorization Code Lengthint
getAuthorizationCodeLifetime()
Returns Authorization Code Lifetimejava.lang.String
getCreatedDate()
Get the Definition creation datelong
getDefinitionId()
Get Definition idjava.lang.String
getDefinitionName()
Get the Definition nameint
getMaxAuthorizationGrantLifetime()
Returns Max Authorization Grant Lengthjava.lang.String
getModifiedDate()
Get the Definition's last modified dateOidcDefinition
getOidc()
Returns OpenID Connect Configurations as OidcDefinition objectint
getPinLength()
Returns Pin Lengthint
getRefreshTokenLength()
Returns Refresh Token Lengthjava.lang.String[]
getSupportedAuthorizationGrants()
Get the Definition supported authorization grantsjava.lang.String
getTCMBehavior()
Returns TCM Behaviourjava.lang.String
getTokenCharSet()
Returns Token CharSetboolean
issueRefreshToken()
Returns true if Issue Refresh Token flag is set on Definitionboolean
pinEnabled()
Returns true if Pin Policy flag is set on Definitionvoid
setAccessPolicyId(java.lang.Long accessPolicyId)
Set PolicyIdvoid
setOidc(OidcDefinition oidc)
Set OpenID Connect Configurations as OidcDefinition object
-
-
-
Constructor Detail
-
Definition
public Definition(long definitionId, java.lang.String definitionName, java.lang.String createdDate, java.lang.String modifiedDate, java.lang.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, java.lang.String tcmBehavior, java.lang.String tokenCharSet)
-
-
Method Detail
-
getDefinitionId
public long getDefinitionId()
Get Definition id
-
getDefinitionName
public java.lang.String getDefinitionName()
Get the Definition name
-
getCreatedDate
public java.lang.String getCreatedDate()
Get the Definition creation date
-
getModifiedDate
public java.lang.String getModifiedDate()
Get the Definition's last modified date
-
getSupportedAuthorizationGrants
public java.lang.String[] 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
public java.lang.String getTCMBehavior()
Returns TCM Behaviour
-
getTokenCharSet
public java.lang.String getTokenCharSet()
Returns Token CharSet
-
getOidc
public OidcDefinition getOidc()
Returns OpenID Connect Configurations as OidcDefinition object
-
setOidc
public void setOidc(OidcDefinition oidc)
Set OpenID Connect Configurations as OidcDefinition object
-
addAttributeSource
public void addAttributeSource(java.lang.String attrName, java.lang.String attrSrcId)
Add Attributes to Definition
-
getAttributeSources
public java.util.Map<java.lang.String,java.lang.String> getAttributeSources()
Retrieve all Attributes of Definition
-
setAccessPolicyId
public void setAccessPolicyId(java.lang.Long accessPolicyId)
Set PolicyId
-
getAccessPolicyId
public java.lang.Long getAccessPolicyId()
Retrieve policyId
-
-