public enum ClientType extends Enum<ClientType>
Enum Constant and Description |
---|
CONFIDENTIAL
"confidential" (2). |
PUBLIC
"public" (1). |
Modifier and Type | Method and Description |
---|---|
static ClientType |
getByValue(short value)
Find an instance of this enum by a value.
|
short |
getValue()
Get the integer representation of this enum instance.
|
static ClientType |
parse(String clientType)
Convert
String to ClientType . |
static ClientType[] |
toArray(int bits) |
static int |
toBits(EnumSet<ClientType> set) |
static EnumSet<ClientType> |
toSet(ClientType[] array) |
static EnumSet<ClientType> |
toSet(int bits) |
String |
toString() |
static ClientType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ClientType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClientType PUBLIC
"public"
(1).
Clients incapable of maintaining the confidentiality of their credentials (e.g., clients executing on the device used by the resource owner, such as an installed native application or a web browser-based application), and incapable of secure client authentication via any other means.
public static final ClientType CONFIDENTIAL
"confidential"
(2).
Clients capable of maintaining the confidentiality of their credentials (e.g., client implemented on a secure server with restricted access to the client credentials), or capable of secure client authentication using other means.
public static ClientType[] values()
for (ClientType c : ClientType.values()) System.out.println(c);
public static ClientType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic short getValue()
public String toString()
toString
in class Enum<ClientType>
public static ClientType getByValue(short value)
value
- The integer representation of the instance to find.null
if not found.public static ClientType parse(String clientType)
String
to ClientType
.clientType
- A client type. For example, "public"
.ClientType
instance, or null
.public static int toBits(EnumSet<ClientType> set)
public static ClientType[] toArray(int bits)
public static EnumSet<ClientType> toSet(int bits)
public static EnumSet<ClientType> toSet(ClientType[] array)
Copyright © 2022. All rights reserved.