Module jakarta.security
Enum PromptType
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
Prompt specifies whether the Authorization Server prompts the End-User for
re-authentication and consent.
- Author:
- Gaurav Gupta
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe Authorization Server SHOULD prompt the End-User for consent before returning information to the Client.The Authorization Server SHOULD prompt the End-User for reauthentication.The Authorization Server must not display any authentication or consent user interface pages.The Authorization Server SHOULD prompt the End-User to select a user account. -
Method Summary
Modifier and TypeMethodDescriptionstatic PromptType
fromString
(String key) static PromptType
Returns the enum constant of this type with the specified name.static PromptType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
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
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
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
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
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
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 nameNullPointerException
- if the argument is null
-
fromString
-