Package eu.europa.esig.dss.enumerations
Enum GeneralNameType
- All Implemented Interfaces:
Serializable
,Comparable<GeneralNameType>
Represents possible types of a GeneralName
-
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 type with the specified name.static GeneralNameType[]
values()
Returns an array containing the constants of this enum type, 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 type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getIndex
public int getIndex()Gets index of the GeneralName type- Returns:
- int index
-
getLabel
Gets a human-readable label of the GeneralName type- Returns:
String
-
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
-