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_typesRP metadata and theclient_registration_types_supportedOP 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 ClientRegistrationTypegetByValue(short value)Find an instance of this enum by a value.shortgetValue()Get the integer representation of this enum instance.static ClientRegistrationTypeparse(String clientRegistrationType)ConvertStringtoClientRegistrationType.static ClientRegistrationType[]toArray(int bits)static inttoBits(EnumSet<ClientRegistrationType> set)static EnumSet<ClientRegistrationType>toSet(int bits)static EnumSet<ClientRegistrationType>toSet(ClientRegistrationType[] array)StringtoString()static ClientRegistrationTypevalueOf(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:
toStringin 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
nullif not found.
-
parse
public static ClientRegistrationType parse(String clientRegistrationType)
ConvertStringtoClientRegistrationType.- Parameters:
clientRegistrationType- A client registration type. For example,"automatic".- Returns:
- A
ClientRegistrationTypeinstance, 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)
-
-