Package com.nimbusds.openid.connect.sdk
Enum Display
- All Implemented Interfaces:
Serializable
,Comparable<Display>
,java.lang.constant.Constable
Enumeration of the display types for authentication and consent UIs.
Related specifications:
- OpenID Connect Core 1.0, section 3.1.2.1.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic Display
Gets the default display type.static Display
Parses a display type.toString()
Returns the string identifier of this display type.static Display
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.
-
Enum Constant Details
-
PAGE
Full user-agent page view (default). -
POPUP
Popup user-agent window. The popup User Agent window should be of an appropriate size for a login-focused dialog and should not obscure the entire window that it is popping up over. -
TOUCH
Device that leverages a touch interface. The authorisation server may attempt to detect the touch device and further customise the interface. -
WAP
Feature phone.
-
-
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
-
getDefault
Gets the default display type.- Returns:
- The default display type (
PAGE
).
-
toString
Returns the string identifier of this display type. -
parse
Parses a display type.- Parameters:
s
- The string to parse. If the string isnull
or empty thegetDefault()
display type will be returned.- Returns:
- The display type.
- Throws:
ParseException
- If the parsed string doesn't match a display type.
-