public interface OAuth2DeviceTokenStoreProvider extends Provider
Modifier and Type | Method and Description |
---|---|
boolean |
approve(RealmModel realm,
String userCode,
String userSessionId)
Approve the given user code
|
boolean |
deny(RealmModel realm,
String userCode)
Deny the given user code
|
OAuth2DeviceCodeModel |
getByDeviceCode(RealmModel realm,
String deviceCode)
Get the model object by the given device code
|
OAuth2DeviceCodeModel |
getByUserCode(RealmModel realm,
String userCode)
Get the model object by the given user code
|
boolean |
isPollingAllowed(OAuth2DeviceCodeModel deviceCode)
Check the device code is allowed to poll
|
void |
put(OAuth2DeviceCodeModel deviceCode,
OAuth2DeviceUserCodeModel userCode,
int lifespanSeconds)
Stores the given device code and user code
|
boolean |
removeDeviceCode(RealmModel realm,
String deviceCode)
Remove the given device code
|
boolean |
removeUserCode(RealmModel realm,
String userCode)
Remove the given user code
|
void put(OAuth2DeviceCodeModel deviceCode, OAuth2DeviceUserCodeModel userCode, int lifespanSeconds)
deviceCode
- userCode
- lifespanSeconds
- OAuth2DeviceCodeModel getByDeviceCode(RealmModel realm, String deviceCode)
realm
- deviceCode
- boolean isPollingAllowed(OAuth2DeviceCodeModel deviceCode)
deviceCode
- OAuth2DeviceCodeModel getByUserCode(RealmModel realm, String userCode)
realm
- userCode
- boolean approve(RealmModel realm, String userCode, String userSessionId)
realm
- userCode
- userSessionId
- boolean deny(RealmModel realm, String userCode)
realm
- userCode
- boolean removeDeviceCode(RealmModel realm, String deviceCode)
realm
- deviceCode
- boolean removeUserCode(RealmModel realm, String userCode)
realm
- userCode
- Copyright © 2021 JBoss by Red Hat. All rights reserved.