|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<Display> com.nimbusds.openid.connect.sdk.Display
public enum Display
Enumeration of the display types for authentication and consent UIs. This class is immutable.
Related specifications:
Enum Constant Summary | |
---|---|
PAGE
Full user-agent page view (default). |
|
POPUP
Popup user-agent window. |
|
TOUCH
Device that leverages a touch interface. |
|
WAP
Feature phone. |
Method Summary | |
---|---|
static Display |
getDefault()
Gets the default display type ( PAGE ). |
static Display |
parse(String s)
Parses a display type. |
String |
toString()
Returns the string identifier of this display type. |
static Display |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Display[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Display PAGE
public static final Display POPUP
public static final Display TOUCH
public static final Display WAP
Method Detail |
---|
public static Display[] values()
for (Display c : Display.values()) System.out.println(c);
public static Display valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static Display getDefault()
PAGE
).
public String toString()
toString
in class Enum<Display>
public static Display parse(String s) throws ParseException
s
- The string to parse. If the string is null
or empty
the getDefault()
display type will be returned.
ParseException
- If the parsed string doesn't match a display
type.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |