Class CacheGrant

  • All Implemented Interfaces:
    java.io.Serializable

    public class CacheGrant
    extends java.lang.Object
    implements java.io.Serializable
    Version:
    November 28, 2018
    Author:
    yuriyz
    See Also:
    Serialized Form
    • Constructor Detail

      • CacheGrant

        public CacheGrant()
      • CacheGrant

        public CacheGrant​(AuthorizationGrant grant,
                          io.jans.as.model.configuration.AppConfiguration appConfiguration)
      • CacheGrant

        public CacheGrant​(CIBAGrant grant,
                          io.jans.as.model.configuration.AppConfiguration appConfiguration)
      • CacheGrant

        public CacheGrant​(DeviceCodeGrant grant,
                          io.jans.as.model.configuration.AppConfiguration appConfiguration)
    • Method Detail

      • getExpiresIn

        public int getExpiresIn()
      • getAuthorizationCodeCreationDate

        public java.util.Date getAuthorizationCodeCreationDate()
      • getUser

        public io.jans.as.common.model.common.User getUser()
      • setUser

        public void setUser​(io.jans.as.common.model.common.User user)
      • getScopes

        public java.util.Set<java.lang.String> getScopes()
      • setScopes

        public void setScopes​(java.util.Set<java.lang.String> scopes)
      • getGrantId

        public java.lang.String getGrantId()
      • setGrantId

        public void setGrantId​(java.lang.String grantId)
      • getClient

        public io.jans.as.common.model.registration.Client getClient()
      • setClient

        public void setClient​(io.jans.as.common.model.registration.Client client)
      • getAuthenticationTime

        public java.util.Date getAuthenticationTime()
      • setAuthenticationTime

        public void setAuthenticationTime​(java.util.Date authenticationTime)
      • getAuthorizationCodeString

        public java.lang.String getAuthorizationCodeString()
      • setAuthorizationCodeString

        public void setAuthorizationCodeString​(java.lang.String authorizationCodeString)
      • getNonce

        public java.lang.String getNonce()
      • setNonce

        public void setNonce​(java.lang.String nonce)
      • getCodeChallenge

        public java.lang.String getCodeChallenge()
      • setCodeChallenge

        public void setCodeChallenge​(java.lang.String codeChallenge)
      • getCodeChallengeMethod

        public java.lang.String getCodeChallengeMethod()
      • setCodeChallengeMethod

        public void setCodeChallengeMethod​(java.lang.String codeChallengeMethod)
      • getClaims

        public java.lang.String getClaims()
      • setClaims

        public void setClaims​(java.lang.String claims)
      • getAcrValues

        public java.lang.String getAcrValues()
      • setAcrValues

        public void setAcrValues​(java.lang.String acrValues)
      • getSessionDn

        public java.lang.String getSessionDn()
      • setSessionDn

        public void setSessionDn​(java.lang.String sessionDn)
      • cacheKey

        public java.lang.String cacheKey()
      • cacheKey

        public static java.lang.String cacheKey​(java.lang.String code,
                                                java.lang.String grantId)
      • getAuthReqId

        public java.lang.String getAuthReqId()
      • setAuthReqId

        public void setAuthReqId​(java.lang.String authReqId)
      • isTokensDelivered

        public boolean isTokensDelivered()
      • setTokensDelivered

        public void setTokensDelivered​(boolean tokensDelivered)
      • getDeviceCode

        public java.lang.String getDeviceCode()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object