Package org.gluu.oxauth.model.common
Class DeviceCodeGrant
- java.lang.Object
-
- org.gluu.oxauth.model.common.AbstractAuthorizationGrant
-
- org.gluu.oxauth.model.common.AuthorizationGrant
-
- org.gluu.oxauth.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 org.gluu.oxauth.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.String
getDeviceCode()
GrantType
getGrantType()
void
init(DeviceAuthorizationCacheControl cacheData, User user)
void
save()
Saves changes asynchronouslyvoid
setDeviceCode(java.lang.String deviceCode)
-
Methods inherited from class org.gluu.oxauth.model.common.AuthorizationGrant
asToken, asToken, asToken, asToken, asTokenLdap, checkExpiredTokens, checkScopesPolicy, createAccessToken, createIdToken, createIdToken, createRefreshToken, createRefreshToken, getScopesAsString, getSub, init, isCachedWithNoPersistence, isImplicitFlow, persist, persist, revokeAllTokens, setIsCachedWithNoPersistence
-
Methods inherited from class org.gluu.oxauth.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, getTokenLdap, getUser, getUserDn, getUserId, getX5ts256, setAccessTokens, setAcrValues, setAuthenticationTime, setAuthorizationCode, setClaims, setCodeChallenge, setCodeChallengeMethod, setGrantId, setIdToken, setJwtAuthorizationRequest, setLongLivedAccessToken, setNonce, setRefreshTokens, setScopes, setSessionDn, setTokenBindingHash, setTokenLdap, setX5ts256, toString
-
-
-
-
Method Detail
-
getGrantType
public GrantType getGrantType()
-
init
public void init(DeviceAuthorizationCacheControl cacheData, User user)
-
save
public void save()
Description copied from interface:IAuthorizationGrant
Saves changes asynchronously- Specified by:
save
in interfaceIAuthorizationGrant
- Overrides:
save
in classAuthorizationGrant
-
getDeviceCode
public java.lang.String getDeviceCode()
-
setDeviceCode
public void setDeviceCode(java.lang.String deviceCode)
-
-