Enum PromptType

  • All Implemented Interfaces:
    Serializable, Comparable<PromptType>

    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 Detail

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

        public static final PromptType CONSENT
        The Authorization Server SHOULD prompt the End-User for consent before returning information to the Client. If it cannot obtain consent, it must return an error. ErrorCode : consent_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 Detail

      • values

        public static PromptType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (PromptType c : PromptType.values())
            System.out.println(c);
        
        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