Class 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 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