public static enum Prompt.Type extends java.lang.Enum<Prompt.Type>
Enum Constant and Description |
---|
CONSENT
The authorisation server must prompt the end-user for
consent before returning information to the client.
|
LOGIN
The authorisation server must prompt the end-user for
re-authentication.
|
NONE
The authorisation server must not display any authentication
or consent UI pages.
|
SELECT_ACCOUNT
The authorisation server must prompt the end-user to select
a user account.
|
Modifier and Type | Method and Description |
---|---|
static Prompt.Type |
parse(java.lang.String s)
Parses a prompt type.
|
java.lang.String |
toString()
Returns the string identifier of this prompt type.
|
static Prompt.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Prompt.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Prompt.Type NONE
scope
. This
can be used as a method to check for existing authentication
and / or consent.public static final Prompt.Type LOGIN
public static final Prompt.Type CONSENT
public static final Prompt.Type SELECT_ACCOUNT
public static Prompt.Type[] values()
for (Prompt.Type c : Prompt.Type.values()) System.out.println(c);
public static Prompt.Type valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String toString()
toString
in class java.lang.Enum<Prompt.Type>
public static Prompt.Type parse(java.lang.String s) throws ParseException
s
- The string to parse.ParseException
- If the parsed string is null
or doesn't match a prompt type.Copyright © 2015 Connect2id Ltd.. All Rights Reserved.