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
public class DeviceCodeGrant extends AuthorizationGrant
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, refreshTokens, scopeChecker, txTokens
-
-
Constructor Summary
Constructors Constructor Description DeviceCodeGrant()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDeviceCode()
io.jans.as.model.common.GrantType
getGrantType()
void
init(DeviceAuthorizationCacheControl cacheData, io.jans.as.common.model.common.User user)
void
save()
Saves changes asynchronouslyvoid
setDeviceCode(String deviceCode)
-
Methods inherited from class io.jans.as.server.model.common.AuthorizationGrant
asToken, asToken, asToken, asToken, asToken, asTokenEntity, checkExpiredTokens, checkScopesPolicy, createAccessToken, createAccessTokenAsJwt, createIdToken, createRefreshToken, createRefreshToken, createRefreshToken, getScopesAsString, getSub, init, isCachedWithNoPersistence, isImplicitFlow, persist, persist, revokeAllTokens, setIsCachedWithNoPersistence
-
Methods 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, getLongLivedAccessToken, getNonce, getReferenceId, getRefreshToken, getRefreshTokens, getRefreshTokensCodes, getScopes, getSessionDn, getStatusListIndex, getTokenBindingHash, getTokenEntity, getTxToken, getTxTokens, getUser, getUserDn, getUserId, getX5ts256, setAccessTokens, setAcrValues, setAuthenticationTime, setAuthorizationCode, setAuthzDetails, setClaims, setCodeChallenge, setCodeChallengeMethod, setDpopJkt, setGrantId, setIdToken, setJwtAuthorizationRequest, setLongLivedAccessToken, setNonce, setReferenceId, setRefreshTokens, setScopes, setSessionDn, setStatusListIndex, setTokenBindingHash, setTokenEntity, setTxTokens, setX5ts256, toString
-
-
-
-
Method Detail
-
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:IAuthorizationGrant
Saves changes asynchronously- Specified by:
save
in interfaceIAuthorizationGrant
- Overrides:
save
in classAuthorizationGrant
-
getDeviceCode
public String getDeviceCode()
-
setDeviceCode
public void setDeviceCode(String deviceCode)
-
-