Package io.jans.as.model.common
Enum Prompt
- All Implemented Interfaces:
HasParamName
,Serializable
,Comparable<Prompt>
,java.lang.constant.Constable
An ASCII string values that specifies whether the Authorization Server
prompts the End-User for re-authentication and consent.
- Author:
- Javier Rojas Blum Date: 02.10.2012
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe Authorization Server MUST prompt the End-User for consent before returning information to the Client.A value of create indicates to the OpenID Provider that the client desires that the user be shown the account creation UX rather than the login flow.The Authorization Server MUST prompt the End-User for re-authenticationThe Authorization Server MUST NOT display any authentication or consent user interface pages.The Authorization Server MUST prompt the End-User to select a user account. -
Method Summary
Modifier and TypeMethodDescriptionstatic Prompt
fromString
(String param) Returns the correspondingPrompt
for a parameter prompt of the authorization endpoint.fromString
(String paramList, String separator) Returns a list of the correspondingPrompt
from a space-separated list of prompt parameters.Gets param name.toString()
Returns a string representation of the object.static Prompt
Returns the enum constant of this type with the specified name.static Prompt[]
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 the End-User is not already authenticated or the Client does not have pre-configured consent for the requested scopes. This can be used as a method to check for existing authentication and/or consent. -
LOGIN
The Authorization Server MUST prompt the End-User for re-authentication -
CONSENT
The Authorization Server MUST prompt the End-User for consent before returning information to the Client. -
SELECT_ACCOUNT
The Authorization Server MUST prompt the End-User to select a user account. This allows a user who has multiple accounts at the Authorization Server to select amongst the multiple accounts that they may have current sessions for. -
CREATE
A value of create indicates to the OpenID Provider that the client desires that the user be shown the account creation UX rather than the login flow. Care must be taken if combining this value with other prompt values. Mutually exclusive conditions can arise so it is RECOMMENDED that create not be combined with any other values.
-
-
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
Returns the correspondingPrompt
for a parameter prompt of the authorization endpoint.- Parameters:
param
- The parameter.- Returns:
- The corresponding response type if found, otherwise
null
.
-
getParamName
Gets param name.- Specified by:
getParamName
in interfaceHasParamName
- Returns:
- param name
-
fromString
Returns a list of the correspondingPrompt
from a space-separated list of prompt parameters.- Parameters:
paramList
- A space-separated list of prompt parameters.separator
- The separator of the string list.- Returns:
- A list of the recognized response types.
-
toString
Returns a string representation of the object. In this case the parameter name.
-