Package com.authlete.common.types
Enum EntityType
- java.lang.Object
-
- java.lang.Enum<EntityType>
-
- com.authlete.common.types.EntityType
-
- All Implemented Interfaces:
Serializable
,Comparable<EntityType>
public enum EntityType extends Enum<EntityType>
Entity type identifiers in the context of the OpenID Federation 1.0.- Since:
- 3.81
- See Also:
- OpenID Federation 1.0, 4.2. Entity Type Identifiers
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FEDERATION_ENTITY
"federation_entity"
(6).OAUTH_AUTHORIZATION_SERVER
"oauth_authorization_server"
(3).OAUTH_CLIENT
"oauth_client"
(4).OAUTH_RESOURCE
"oauth_resource"
(5).OPENID_CREDENTIAL_ISSUER
"openid_credential_issuer"
(7).OPENID_PROVIDER
"openid_provider"
(2).OPENID_RELYING_PARTY
"openid_relying_party"
(1).
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EntityType
getByValue(short value)
Find an instance of this enum by a value.short
getValue()
Get the integer representation of this enum instance.static EntityType
parse(String metadataType)
ConvertString
toMetadataType
.static EntityType[]
toArray(int bits)
static int
toBits(EnumSet<EntityType> set)
static EnumSet<EntityType>
toSet(int bits)
static EnumSet<EntityType>
toSet(EntityType[] array)
String
toString()
static EntityType
valueOf(String name)
Returns the enum constant of this type with the specified name.static EntityType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OPENID_RELYING_PARTY
public static final EntityType OPENID_RELYING_PARTY
"openid_relying_party"
(1).
-
OPENID_PROVIDER
public static final EntityType OPENID_PROVIDER
"openid_provider"
(2).
-
OAUTH_AUTHORIZATION_SERVER
public static final EntityType OAUTH_AUTHORIZATION_SERVER
"oauth_authorization_server"
(3).
-
OAUTH_CLIENT
public static final EntityType OAUTH_CLIENT
"oauth_client"
(4).
-
OAUTH_RESOURCE
public static final EntityType OAUTH_RESOURCE
"oauth_resource"
(5).
-
FEDERATION_ENTITY
public static final EntityType FEDERATION_ENTITY
"federation_entity"
(6).
-
OPENID_CREDENTIAL_ISSUER
public static final EntityType OPENID_CREDENTIAL_ISSUER
"openid_credential_issuer"
(7).This entity type identifier represents a credential issuer that conforms to the "OpenID for Verifiable Credential Issuance" specification. The specification is supported since Authlete 3.0.
-
-
Method Detail
-
values
public static EntityType[] 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 (EntityType c : EntityType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EntityType 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<EntityType>
-
getByValue
public static EntityType 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 EntityType parse(String metadataType)
ConvertString
toMetadataType
.- Parameters:
metadataType
- Metadata type. For example,"openid_provider"
.- Returns:
MetadataType
instance, ornull
.
-
toBits
public static int toBits(EnumSet<EntityType> set)
-
toArray
public static EntityType[] toArray(int bits)
-
toSet
public static EnumSet<EntityType> toSet(int bits)
-
toSet
public static EnumSet<EntityType> toSet(EntityType[] array)
-
-