Enum Display

java.lang.Object
java.lang.Enum<Display>
com.nimbusds.openid.connect.sdk.Display
All Implemented Interfaces:
Serializable, Comparable<Display>, java.lang.constant.Constable

public enum Display extends Enum<Display>
Enumeration of the display types for authentication and consent UIs.

Related specifications:

  • OpenID Connect Core 1.0
  • Enum Constant Details

    • PAGE

      public static final Display PAGE
      Full user-agent page view (default).
    • TOUCH

      public static final Display TOUCH
      Device that leverages a touch interface. The authorisation server may attempt to detect the touch device and further customise the interface.
    • WAP

      public static final Display WAP
      Feature phone.
  • Method Details

    • values

      public static Display[] 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

      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 name
      NullPointerException - if the argument is null
    • getDefault

      public static Display getDefault()
      Gets the default display type.
      Returns:
      The default display type (PAGE).
    • toString

      public String toString()
      Returns the string identifier of this display type.
      Overrides:
      toString in class Enum<Display>
      Returns:
      The string identifier.
    • parse

      public static Display parse(String s) throws ParseException
      Parses a display type.
      Parameters:
      s - The string to parse. If the string is null or empty the getDefault() display type will be returned.
      Returns:
      The display type.
      Throws:
      ParseException - If the parsed string doesn't match a display type.