Package org.keycloak.models
Interface OAuth2DeviceUserCodeProvider
-
- All Superinterfaces:
Provider
- All Known Implementing Classes:
DefaultOAuth2DeviceUserCodeProvider
public interface OAuth2DeviceUserCodeProvider extends Provider
- Author:
- Hiroyuki Wada
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
display(String userCode)
Get human-readability user code from original user code.String
format(String userCode)
Format inputted user code.String
generate()
Generate a new user code for OAuth 2.0 Device Authorization Grant.
-
-
-
Method Detail
-
generate
String generate()
Generate a new user code for OAuth 2.0 Device Authorization Grant.- Returns:
- Return a generated user code
-
display
String display(String userCode)
Get human-readability user code from original user code.- Parameters:
userCode
- Original user code- Returns:
- Return a human-readability user code
-
-