public enum SubjectType extends Enum<SubjectType>
subject_type
.Enum Constant and Description |
---|
PAIRWISE
"pairwise" (2). |
PUBLIC
"public" (1). |
Modifier and Type | Method and Description |
---|---|
static SubjectType |
getByValue(short value)
Find an instance of this enum by a value.
|
short |
getValue()
Get the integer representation of this enum instance.
|
static SubjectType |
parse(String subjectType)
Convert
String to SubjectType . |
static SubjectType[] |
toArray(int bits) |
static int |
toBits(EnumSet<SubjectType> set) |
static EnumSet<SubjectType> |
toSet(int bits) |
static EnumSet<SubjectType> |
toSet(SubjectType[] array) |
String |
toString() |
static SubjectType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SubjectType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SubjectType PUBLIC
"public"
(1).
This provides the same sub
(subject) value to all Clients.
It is the default if the provider has no subject_types_supported
element in its discovery document.
public static final SubjectType PAIRWISE
"pairwise"
(2).
This provides a different sub
value to each sector identifier, so
as not to enable Clients to correlate the End-User's activities without
permission. See 8.1.
Pairwise Identifier Algorithm for details.
public static SubjectType[] values()
for (SubjectType c : SubjectType.values()) System.out.println(c);
public static SubjectType 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<SubjectType>
public static SubjectType getByValue(short value)
value
- The integer representation of the instance to find.null
if not found.public static SubjectType parse(String subjectType)
String
to SubjectType
.subjectType
- A subject type. For example, "pairwise"
.SubjectType
instance, or null
.public static int toBits(EnumSet<SubjectType> set)
public static SubjectType[] toArray(int bits)
public static EnumSet<SubjectType> toSet(int bits)
public static EnumSet<SubjectType> toSet(SubjectType[] array)
Copyright © 2023. All rights reserved.