Class Definition

java.lang.Object
com.tivoli.am.fim.trustserver.sts.oauth20.Definition
All Implemented Interfaces:
Serializable

public class Definition extends Object implements Serializable
Implementation of OAuth20ClientDefinition Model of the OAUTH_CLIENT_DEFINITION table
See Also:
  • 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

      public String getDefinitionName()
      Get the Definition name
    • getCreatedDate

      public String getCreatedDate()
      Get the Definition creation date
    • getModifiedDate

      public String getModifiedDate()
      Get the Definition's last modified date
    • getSupportedAuthorizationGrants

      public 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 String getTCMBehavior()
      Returns TCM Behaviour
    • getTokenCharSet

      public 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(String attrName, String attrSrcId)
      Add Attributes to Definition
    • getAttributeSources

      public Map<String,String> getAttributeSources()
      Retrieve all Attributes of Definition
    • setAccessPolicyId

      public void setAccessPolicyId(Long accessPolicyId)
      Set PolicyId
    • getAccessPolicyId

      public Long getAccessPolicyId()
      Retrieve policyId