Interface UserCodeGenerator
-
- All Superinterfaces:
org.forgerock.oauth2.core.plugins.OAuth2Plugin
@SupportedAll public interface UserCodeGenerator extends org.forgerock.oauth2.core.plugins.OAuth2Plugin
Generator for OAuth2 User Codes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
generateCode(org.forgerock.openam.oauth2.OAuth2ProviderConfig.UserCodeCharacterSet characterSet, int length)
Generate a Device Authentication User Code.
-
-
-
Method Detail
-
generateCode
String generateCode(org.forgerock.openam.oauth2.OAuth2ProviderConfig.UserCodeCharacterSet characterSet, int length)
Generate a Device Authentication User Code.- Parameters:
characterSet
- the configured set of characters from which the code should be generated.length
- the length of the code to generate.- Returns:
- the User Code.
-
-