Package org.keycloak.models
Class OAuth2DeviceCodeModel
java.lang.Object
org.keycloak.models.OAuth2DeviceCodeModel
- Author:
- Hiroyuki Wada
-
Method Summary
Modifier and TypeMethodDescriptionstatic OAuth2DeviceCodeModel
create
(RealmModel realm, ClientModel client, String deviceCode, String scope, String nonce, int expiresIn, int pollingInterval, String clientNotificationToken, String authReqId, Map<String, String> additionalParams, String codeChallenge, String codeChallengeMethod) static String
deny()
static OAuth2DeviceCodeModel
int
getNonce()
int
getScope()
boolean
isDenied()
boolean
boolean
toMap()
-
Method Details
-
create
public static OAuth2DeviceCodeModel create(RealmModel realm, ClientModel client, String deviceCode, String scope, String nonce, int expiresIn, int pollingInterval, String clientNotificationToken, String authReqId, Map<String, String> additionalParams, String codeChallenge, String codeChallengeMethod) -
approve
-
approve
-
deny
-
fromCache
public static OAuth2DeviceCodeModel fromCache(RealmModel realm, String deviceCode, Map<String, String> data) -
getDeviceCode
-
getScope
-
getNonce
-
getExpiration
public int getExpiration() -
getPollingInterval
public int getPollingInterval() -
getClientNotificationToken
-
getAuthReqId
-
getClientId
-
isPending
public boolean isPending() -
isDenied
public boolean isDenied() -
getUserSessionId
-
createKey
-
serializeKey
-
serializePollingKey
-
getCodeChallenge
-
getCodeChallengeMethod
-
toMap
-
getParams
-
getAdditionalParams
-
isExpired
public boolean isExpired()
-