|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractCollection<E> java.util.AbstractSet<E> java.util.HashSet<Prompt.Type> com.nimbusds.openid.connect.sdk.Prompt
@NotThreadSafe public class Prompt
Prompts for end-user re-authentication and consent. This class is not thread-safe.
Related specifications:
Nested Class Summary | |
---|---|
static class |
Prompt.Type
Enumeration of the prompt types. |
Constructor Summary | |
---|---|
Prompt()
Creates a new empty prompt set. |
Method Summary | |
---|---|
boolean |
isValid()
Checks if the prompt set is valid. |
static Prompt |
parse(String s)
Parses a prompt set from the specified string. |
String |
toString()
Returns the string representation of this prompt set. |
Methods inherited from class java.util.HashSet |
---|
add, clear, clone, contains, isEmpty, iterator, remove, size |
Methods inherited from class java.util.AbstractSet |
---|
equals, hashCode, removeAll |
Methods inherited from class java.util.AbstractCollection |
---|
addAll, containsAll, retainAll, toArray, toArray |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Set |
---|
addAll, containsAll, equals, hashCode, removeAll, retainAll, toArray, toArray |
Constructor Detail |
---|
public Prompt()
Method Detail |
---|
public boolean isValid()
Prompt.Type.NONE
value.
true
if this prompt set if valid, else
false
.public String toString()
Example:
login consent
toString
in class AbstractCollection<Prompt.Type>
public static Prompt parse(String s) throws ParseException
s
- The string to parse, with one or more non-conflicting space
delimited prompt types. May be null
.
null
if the parsed string was
null
or empty.
ParseException
- If the string couldn't be parsed to a valid
prompt set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |