Package com.authlete.common.types
Enum Display
- java.lang.Object
-
- java.lang.Enum<Display>
-
- com.authlete.common.types.Display
-
- All Implemented Interfaces:
Serializable,Comparable<Display>
public enum Display extends Enum<Display>
Values fordisplay.- Author:
- Takahiko Kawasaki
- See Also:
- OpenID Connect Core 1.0, 3.1.2.1. Authentication Request
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DisplaygetByValue(short value)Find an instance of this enum by a value.shortgetValue()Get the integer representation of this enum instance.static Displayparse(String display)ConvertStringtoDisplay.static Display[]toArray(int bits)static inttoBits(EnumSet<Display> set)static EnumSet<Display>toSet(int bits)static EnumSet<Display>toSet(Display[] array)StringtoString()static DisplayvalueOf(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.
-
-
-
Enum Constant Detail
-
PAGE
public static final Display PAGE
"page"(1).The Authorization Server SHOULD display the authentication and consent UI consistent with a full User Agent page view. If the
displayparameter is not specified, this is the default display mode.
-
POPUP
public static final Display POPUP
"popup"(2).The Authorization Server SHOULD display the authentication and consent UI consistent with a 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
public static final Display TOUCH
"touch"(3).The Authorization Server SHOULD display the authentication and consent UI consistent with a device that leverages a touch interface.
-
WAP
public static final Display WAP
"wap"(4).The Authorization Server SHOULD display the authentication and consent UI consistent with a "feature phone" type display.
-
-
Method Detail
-
values
public static Display[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Display c : Display.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Display valueOf(String name)
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
-
getValue
public short getValue()
Get the integer representation of this enum instance.
-
getByValue
public static Display getByValue(short value)
Find an instance of this enum by a value.- Parameters:
value- The integer representation of the instance to find.- Returns:
- An instance of this enum, or
nullif not found.
-
parse
public static Display parse(String display)
ConvertStringtoDisplay.- Parameters:
display- A value ofdisplayparameter. For example,"page".- Returns:
Displayinstance, ornull.
-
toArray
public static Display[] toArray(int bits)
-
-