Package org.apache.nifi.security.cert
Enum Class GeneralNameType
- All Implemented Interfaces:
Serializable,Comparable<GeneralNameType>,Constable
Subject Alternative Name General Name Types defined according to RFC 3280 Section 4.2.1.7
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateGeneralNameType(int nameType, String generalName, Class<?> valueClass) -
Method Summary
Modifier and TypeMethodDescriptionGet General Name labelintGet General Name Type identifierClass<?> Get Value Class associated with General Name elements returned from Certificatesstatic GeneralNameTypeReturns 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
-
RFC_822_NAME
-
DNS_NAME
-
X400_ADDRESS
-
DIRECTORY_NAME
-
EDI_PARTY_NAME
-
UNIFORM_RESOURCE_IDENTIFIER
-
IP_ADDRESS
-
REGISTERED_ID
-
-
Field Details
-
nameType
private final int nameType -
generalName
-
valueClass
-
-
Constructor Details
-
GeneralNameType
-
-
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
-
getNameType
public int getNameType()Get General Name Type identifier- Returns:
- Subject Alternative Name Type identifier
-
getGeneralName
Get General Name label- Returns:
- General Name label from RFC 3280 Section 4.2.1.7
-
getValueClass
Get Value Class associated with General Name elements returned from Certificates- Returns:
- Value Class
-