Package com.authlete.common.types
Enum ClientRegistrationType
- java.lang.Object
-
- java.lang.Enum<ClientRegistrationType>
-
- com.authlete.common.types.ClientRegistrationType
-
- All Implemented Interfaces:
Serializable
,Comparable<ClientRegistrationType>
public enum ClientRegistrationType extends Enum<ClientRegistrationType>
Values for theclient_registration_types
RP metadata and theclient_registration_types_supported
OP metadata that are defined in OpenID Federation 1.0.- Since:
- 3.22
- See Also:
- OpenID Federation 1.0
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ClientRegistrationType
getByValue(short value)
Find an instance of this enum by a value.short
getValue()
Get the integer representation of this enum instance.static ClientRegistrationType
parse(String clientRegistrationType)
ConvertString
toClientRegistrationType
.static ClientRegistrationType[]
toArray(int bits)
static int
toBits(EnumSet<ClientRegistrationType> set)
static EnumSet<ClientRegistrationType>
toSet(int bits)
static EnumSet<ClientRegistrationType>
toSet(ClientRegistrationType[] array)
String
toString()
static ClientRegistrationType
valueOf(String name)
Returns the enum constant of this type with the specified name.static ClientRegistrationType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AUTOMATIC
public static final ClientRegistrationType AUTOMATIC
"automatic"
(1).
-
EXPLICIT
public static final ClientRegistrationType EXPLICIT
"explicit"
(2).
-
-
Method Detail
-
values
public static ClientRegistrationType[] 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 (ClientRegistrationType c : ClientRegistrationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ClientRegistrationType 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.
-
toString
public String toString()
- Overrides:
toString
in classEnum<ClientRegistrationType>
-
getByValue
public static ClientRegistrationType 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
null
if not found.
-
parse
public static ClientRegistrationType parse(String clientRegistrationType)
ConvertString
toClientRegistrationType
.- Parameters:
clientRegistrationType
- A client registration type. For example,"automatic"
.- Returns:
- A
ClientRegistrationType
instance, ornull
.
-
toBits
public static int toBits(EnumSet<ClientRegistrationType> set)
-
toArray
public static ClientRegistrationType[] toArray(int bits)
-
toSet
public static EnumSet<ClientRegistrationType> toSet(int bits)
-
toSet
public static EnumSet<ClientRegistrationType> toSet(ClientRegistrationType[] array)
-
-