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

    Modifier and Type
    Method
    Description
    generateCode(org.forgerock.openam.oauth2.OAuth2ProviderConfig.UserCodeCharacterSet characterSet, int length)
    Generate a Device Authentication User Code.
  • Method Details

    • 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.