Package com.github.f4b6a3.uuid.enums
Enum UuidLocalDomain
- java.lang.Object
-
- java.lang.Enum<UuidLocalDomain>
-
- com.github.f4b6a3.uuid.enums.UuidLocalDomain
-
- All Implemented Interfaces:
Serializable,Comparable<UuidLocalDomain>
public enum UuidLocalDomain extends Enum<UuidLocalDomain>
Local domains used to create DCE Security UUIDs.Local domains predefined by DCE 1.1 Authentication and Security Services (Chapter 11): - LOCAL_DOMAIN_PERSON: 0 (interpreted as POSIX UID domain); - LOCAL_DOMAIN_GROUP: 1 (interpreted as POSIX GID domain); - LOCAL_DOMAIN_ORG: 2.
Source: DCE 1.1: Authentication and Security Services (Chapter 11 - domain names): https://pubs.opengroup.org/onlinepubs/9696989899/chap11.htm#tagcjh_14_05_01_01
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LOCAL_DOMAIN_GROUPLOCAL_DOMAIN_ORGLOCAL_DOMAIN_PERSON
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UuidLocalDomaingetLocalDomain(byte value)bytegetValue()static UuidLocalDomainvalueOf(String name)Returns the enum constant of this type with the specified name.static UuidLocalDomain[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LOCAL_DOMAIN_PERSON
public static final UuidLocalDomain LOCAL_DOMAIN_PERSON
-
LOCAL_DOMAIN_GROUP
public static final UuidLocalDomain LOCAL_DOMAIN_GROUP
-
LOCAL_DOMAIN_ORG
public static final UuidLocalDomain LOCAL_DOMAIN_ORG
-
-
Method Detail
-
values
public static UuidLocalDomain[] 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 (UuidLocalDomain c : UuidLocalDomain.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UuidLocalDomain 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 byte getValue()
-
getLocalDomain
public static UuidLocalDomain getLocalDomain(byte value)
-
-