Package org.keycloak.models
Class OAuth2DeviceCodeModel
- java.lang.Object
-
- org.keycloak.models.OAuth2DeviceCodeModel
-
public class OAuth2DeviceCodeModel extends Object
- Author:
- Hiroyuki Wada
-
-
Method Summary
-
-
-
Method Detail
-
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
public OAuth2DeviceCodeModel approve(String userSessionId)
-
approve
public OAuth2DeviceCodeModel approve(String userSessionId, Map<String,String> additionalParams)
-
deny
public OAuth2DeviceCodeModel deny()
-
fromCache
public static OAuth2DeviceCodeModel fromCache(RealmModel realm, String deviceCode, Map<String,String> data)
-
getDeviceCode
public String getDeviceCode()
-
getScope
public String getScope()
-
getNonce
public String getNonce()
-
getExpiration
public int getExpiration()
-
getPollingInterval
public int getPollingInterval()
-
getClientNotificationToken
public String getClientNotificationToken()
-
getAuthReqId
public String getAuthReqId()
-
getClientId
public String getClientId()
-
isPending
public boolean isPending()
-
isDenied
public boolean isDenied()
-
getUserSessionId
public String getUserSessionId()
-
serializeKey
public String serializeKey()
-
serializePollingKey
public String serializePollingKey()
-
getCodeChallenge
public String getCodeChallenge()
-
getCodeChallengeMethod
public String getCodeChallengeMethod()
-
isExpired
public boolean isExpired()
-
-