Package io.jans.as.server.model.common
Class DeviceCodeGrant
java.lang.Object
io.jans.as.server.model.common.AbstractAuthorizationGrant
io.jans.as.server.model.common.AuthorizationGrant
io.jans.as.server.model.common.DeviceCodeGrant
- All Implemented Interfaces:
IAuthorizationGrant
An extension grant with the grant type value: urn:ietf:params:oauth:grant-type:device_code
-
Field Summary
Fields inherited from class io.jans.as.server.model.common.AbstractAuthorizationGrant
accessTokens, appConfiguration, logoutStatusJwts, refreshTokens, scopeChecker, txTokens -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.jans.as.model.common.GrantTypevoidinit(DeviceAuthorizationCacheControl cacheData, io.jans.as.common.model.common.User user) voidsave()Saves changes asynchronouslyvoidsetDeviceCode(String deviceCode) Methods inherited from class io.jans.as.server.model.common.AuthorizationGrant
asToken, asToken, asToken, asToken, asToken, asToken, asTokenEntity, checkExpiredTokens, checkScopesPolicy, createAccessToken, createAccessTokenAsJwt, createIdToken, createLogoutStatusJwt, createRefreshToken, createRefreshToken, createRefreshToken, fillPayloadOfAccessTokenJwt, getScopesAsString, getSub, init, isCachedWithNoPersistence, isImplicitFlow, persist, persist, revokeAllTokens, setIsCachedWithNoPersistenceMethods inherited from class io.jans.as.server.model.common.AbstractAuthorizationGrant
getAccessToken, getAccessTokenLifetimeInSeconds, getAccessTokens, getAccessTokensCodes, getAcrValues, getAuthenticationTime, getAuthorizationCode, getAuthorizationGrantType, getAuthzDetails, getAuthzDetailsAsString, getClaims, getClient, getClientDn, getClientId, getCodeChallenge, getCodeChallengeMethod, getDpopJkt, getGrantId, getIdToken, getJwtAuthorizationRequest, getLogoutStatusJwt, getLogoutStatusJwts, getLogoutStatusJwtsCodes, getLongLivedAccessToken, getNonce, getReferenceId, getRefreshToken, getRefreshTokens, getRefreshTokensCodes, getScopes, getSessionDn, getStatusListIndex, getTokenBindingHash, getTokenEntity, getTxToken, getTxTokens, getUser, getUserDn, getUserId, getX5ts256, isAuthorizationChallenge, setAccessTokens, setAcrValues, setAuthenticationTime, setAuthorizationChallenge, setAuthorizationCode, setAuthzDetails, setClaims, setCodeChallenge, setCodeChallengeMethod, setDpopJkt, setGrantId, setIdToken, setJwtAuthorizationRequest, setLogoutStatusJwts, setLongLivedAccessToken, setNonce, setReferenceId, setRefreshTokens, setScopes, setSessionDn, setStatusListIndex, setTokenBindingHash, setTokenEntity, setTxTokens, setX5ts256, toString
-
Constructor Details
-
DeviceCodeGrant
public DeviceCodeGrant()
-
-
Method Details
-
init
public void init(DeviceAuthorizationCacheControl cacheData, io.jans.as.common.model.common.User user) -
getGrantType
public io.jans.as.model.common.GrantType getGrantType() -
save
public void save()Description copied from interface:IAuthorizationGrantSaves changes asynchronously- Specified by:
savein interfaceIAuthorizationGrant- Overrides:
savein classAuthorizationGrant
-
getDeviceCode
-
setDeviceCode
-