Package eu.europa.esig.dss.enumerations
Enum Class GeneralNameType
- All Implemented Interfaces:
Serializable
,Comparable<GeneralNameType>
,Constable
Represents possible types of a GeneralName
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic GeneralNameType
fromIndex
(int index) Returns aGeneralNameType
for the given index if existsstatic GeneralNameType
Returns aGeneralNameType
for the given label if existsint
getIndex()
Gets index of the GeneralName typegetLabel()
Gets a human-readable label of the GeneralName typestatic GeneralNameType
Returns the enum constant of this class with the specified name.static GeneralNameType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OTHER_NAME
-
RFC822_NAME
-
DNS_NAME
-
X400_ADDRESS
-
DIRECTORY_NAME
-
EDI_PARTY_NAME
-
UNIFORM_RESOURCE_IDENTIFIER
-
IP_ADDRESS
-
REGISTERED_ID
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getIndex
public int getIndex()Gets index of the GeneralName type- Returns:
- int index
-
getLabel
-
fromIndex
Returns aGeneralNameType
for the given index if exists- Parameters:
index
- int index to get value for- Returns:
GeneralNameType
if found, null otherwise
-
fromLabel
Returns aGeneralNameType
for the given label if exists- Parameters:
label
-String
representing a human-readable value of the general name type- Returns:
GeneralNameType
if found, null otherwise
-