java.lang.Object
java.lang.Enum<PromptType>
jakarta.security.enterprise.authentication.mechanism.http.openid.PromptType
All Implemented Interfaces:
Serializable, Comparable<PromptType>, java.lang.constant.Constable

public enum PromptType extends Enum<PromptType>
Prompt specifies whether the Authorization Server prompts the End-User for re-authentication and consent.
Author:
Gaurav Gupta
  • Enum Constant Details

    • NONE

      public static final PromptType NONE
      The Authorization Server must not display any authentication or consent user interface pages. An error is returned if an End-User is not already authenticated or the Client does not have pre-configured consent for the requested Claims. ErrorCode : login_required, interaction_required
    • LOGIN

      public static final PromptType LOGIN
      The Authorization Server SHOULD prompt the End-User for reauthentication. If it cannot reauthenticate the End-User, it MUST return an error. ErrorCode : login_required
    • SELECT_ACCOUNT

      public static final PromptType SELECT_ACCOUNT
      The Authorization Server SHOULD prompt the End-User to select a user account. If it cannot obtain an account selection choice made by the end-user, it must return an error. ErrorCode : account_selection_required
  • Method Details

    • values

      public static PromptType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static PromptType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • fromString

      public static PromptType fromString(String key)