Package io.jans.as.server.model.common
Class CacheGrant
- java.lang.Object
-
- io.jans.as.server.model.common.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 Summary
Constructors Constructor Description CacheGrant()
CacheGrant(AuthorizationGrant grant, io.jans.as.model.configuration.AppConfiguration appConfiguration)
CacheGrant(CIBAGrant grant, io.jans.as.model.configuration.AppConfiguration appConfiguration)
CacheGrant(DeviceCodeGrant grant, io.jans.as.model.configuration.AppConfiguration appConfiguration)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CIBAGrant
asCibaGrant(jakarta.enterprise.inject.Instance<AbstractAuthorizationGrant> grantInstance)
AuthorizationCodeGrant
asCodeGrant(jakarta.enterprise.inject.Instance<AbstractAuthorizationGrant> grantInstance)
DeviceCodeGrant
asDeviceCodeGrant(jakarta.enterprise.inject.Instance<AbstractAuthorizationGrant> grantInstance)
java.lang.String
cacheKey()
static java.lang.String
cacheKey(java.lang.String code, java.lang.String grantId)
java.lang.String
getAcrValues()
java.util.Date
getAuthenticationTime()
java.util.Date
getAuthorizationCodeCreationDate()
java.lang.String
getAuthorizationCodeString()
java.lang.String
getAuthReqId()
java.lang.String
getClaims()
io.jans.as.common.model.registration.Client
getClient()
java.lang.String
getCodeChallenge()
java.lang.String
getCodeChallengeMethod()
java.lang.String
getDeviceCode()
int
getExpiresIn()
java.lang.String
getGrantId()
java.lang.String
getNonce()
java.util.Set<java.lang.String>
getScopes()
java.lang.String
getSessionDn()
io.jans.as.common.model.common.User
getUser()
boolean
isTokensDelivered()
void
setAcrValues(java.lang.String acrValues)
void
setAuthenticationTime(java.util.Date authenticationTime)
void
setAuthorizationCodeString(java.lang.String authorizationCodeString)
void
setAuthReqId(java.lang.String authReqId)
void
setClaims(java.lang.String claims)
void
setClient(io.jans.as.common.model.registration.Client client)
void
setCodeChallenge(java.lang.String codeChallenge)
void
setCodeChallengeMethod(java.lang.String codeChallengeMethod)
void
setGrantId(java.lang.String grantId)
void
setNonce(java.lang.String nonce)
void
setScopes(java.util.Set<java.lang.String> scopes)
void
setSessionDn(java.lang.String sessionDn)
void
setTokensDelivered(boolean tokensDelivered)
void
setUser(io.jans.as.common.model.common.User user)
java.lang.String
toString()
-
-
-
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)
-
asCodeGrant
public AuthorizationCodeGrant asCodeGrant(jakarta.enterprise.inject.Instance<AbstractAuthorizationGrant> grantInstance)
-
asCibaGrant
public CIBAGrant asCibaGrant(jakarta.enterprise.inject.Instance<AbstractAuthorizationGrant> grantInstance)
-
asDeviceCodeGrant
public DeviceCodeGrant asDeviceCodeGrant(jakarta.enterprise.inject.Instance<AbstractAuthorizationGrant> grantInstance)
-
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 classjava.lang.Object
-
-