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
-
-
Constructor Summary
Constructors Constructor Description DeviceCodeGrant()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDeviceCode()io.jans.as.model.common.GrantTypegetGrantType()voidinit(DeviceAuthorizationCacheControl cacheData, io.jans.as.common.model.common.User user)voidsave()Saves changes asynchronouslyvoidsetDeviceCode(java.lang.String deviceCode)-
Methods inherited from class io.jans.as.server.model.common.AuthorizationGrant
asToken, asToken, asToken, asToken, asTokenEntity, checkExpiredTokens, checkScopesPolicy, createAccessToken, 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, getAccessTokens, getAccessTokensCodes, getAcrValues, getAuthenticationTime, getAuthorizationCode, getAuthorizationGrantType, getClaims, getClient, getClientDn, getClientId, getCodeChallenge, getCodeChallengeMethod, getGrantId, getIdToken, getJwtAuthorizationRequest, getLongLivedAccessToken, getNonce, getRefreshToken, getRefreshTokens, getRefreshTokensCodes, getScopes, getSessionDn, getTokenBindingHash, getTokenEntity, getUser, getUserDn, getUserId, getX5cs256, setAccessTokens, setAcrValues, setAuthenticationTime, setAuthorizationCode, setClaims, setCodeChallenge, setCodeChallengeMethod, setGrantId, setIdToken, setJwtAuthorizationRequest, setLongLivedAccessToken, setNonce, setRefreshTokens, setScopes, setSessionDn, setTokenBindingHash, setTokenEntity, setX5cs256, 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:IAuthorizationGrantSaves changes asynchronously- Specified by:
savein interfaceIAuthorizationGrant- Overrides:
savein classAuthorizationGrant
-
getDeviceCode
public java.lang.String getDeviceCode()
-
setDeviceCode
public void setDeviceCode(java.lang.String deviceCode)
-
-