Package org.cryptacular.x509
Enum GeneralNameType
- All Implemented Interfaces:
Serializable
,Comparable<GeneralNameType>
,java.lang.constant.Constable
Representation of the options in the CHOICE element describing various categories of the
GeneralName
type defined in section 4.2.1.7 of RFC 2459.- Author:
- Middleware Services
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptiondirectoryName choice element.dNSName choice element.ediPartyName choice element.iPAddress choice element.otherName choice element.registeredID choice element.rfc822Name choice element.uniformResourceIdentifier choice element.x400Address choice element. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Maximum tag number for items in CHOICE definition.static final int
Minimum tag number for items in CHOICE definition. -
Method Summary
Modifier and TypeMethodDescriptionstatic GeneralNameType
fromTagNumber
(int tagNo) Gets a name type from the value of the tag in the CHOICE element definition.static 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
-
OtherName
otherName choice element. -
RFC822Name
rfc822Name choice element. -
DNSName
dNSName choice element. -
X400Address
x400Address choice element. -
DirectoryName
directoryName choice element. -
EdiPartyName
ediPartyName choice element. -
UniformResourceIdentifier
uniformResourceIdentifier choice element. -
IPAddress
iPAddress choice element. -
RegisteredID
registeredID choice element.
-
-
Field Details
-
MIN_TAG_NUMBER
public static final int MIN_TAG_NUMBERMinimum tag number for items in CHOICE definition.- See Also:
-
MAX_TAG_NUMBER
public static final int MAX_TAG_NUMBERMaximum tag number for items in CHOICE definition.- See Also:
-
-
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
-
fromTagNumber
Gets a name type from the value of the tag in the CHOICE element definition.- Parameters:
tagNo
- Ordinal position of type in CHOICE definition in RFC 2459.- Returns:
- Type corresponding to given tag number.
- Throws:
IllegalArgumentException
- If there is not general name type corresponding to the given tag number.
-