Enum Prompt.Type

    • Enum Constant Detail

      • NONE

        public static final Prompt.Type NONE
        The authorisation server must not display any authentication or consent UI pages. An error is returned if the end user is not already authenticated or the client does not have pre-configured consent for the requested scope. This can be used as a method to check for existing authentication and / or consent.
      • LOGIN

        public static final Prompt.Type LOGIN
        The authorisation server must prompt the end-user for re-authentication.
      • CONSENT

        public static final Prompt.Type CONSENT
        The authorisation server must prompt the end-user for consent before returning information to the client.
      • SELECT_ACCOUNT

        public static final Prompt.Type SELECT_ACCOUNT
        The authorisation server must prompt the end-user to select a user account. This allows a user who has multiple accounts at the authorisation server to select amongst the multiple accounts that they may have current sessions for.
    • Method Detail

      • values

        public static Prompt.Type[] 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 (Prompt.Type c : Prompt.Type.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Prompt.Type 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