public enum GeneralNameType extends Enum<GeneralNameType>
GeneralName
type defined in section 4.2.1.7 of RFC 2459.Enum Constant and Description |
---|
DirectoryName
directoryName choice element.
|
DNSName
dNSName choice element.
|
EdiPartyName
ediPartyName choice element.
|
IPAddress
iPAddress choice element.
|
OtherName
otherName choice element.
|
RegisteredID
registeredID choice element.
|
RFC822Name
rfc822Name choice element.
|
UniformResourceIdentifier
uniformResourceIdentifier choice element.
|
X400Address
x400Address choice element.
|
Modifier and Type | Field and Description |
---|---|
static int |
MAX_TAG_NUMBER
Maximum tag number for items in CHOICE definition.
|
static int |
MIN_TAG_NUMBER
Minimum tag number for items in CHOICE definition.
|
Modifier and Type | Method and Description |
---|---|
static GeneralNameType |
fromTagNumber(int tagNo)
Gets a name type from the value of the tag in the CHOICE element definition.
|
static GeneralNameType |
valueOf(String name)
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.
|
public static final GeneralNameType OtherName
public static final GeneralNameType RFC822Name
public static final GeneralNameType DNSName
public static final GeneralNameType X400Address
public static final GeneralNameType DirectoryName
public static final GeneralNameType EdiPartyName
public static final GeneralNameType UniformResourceIdentifier
public static final GeneralNameType IPAddress
public static final GeneralNameType RegisteredID
public static final int MIN_TAG_NUMBER
public static final int MAX_TAG_NUMBER
public static GeneralNameType[] values()
for (GeneralNameType c : GeneralNameType.values()) System.out.println(c);
public static GeneralNameType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static GeneralNameType fromTagNumber(int tagNo)
tagNo
- Ordinal position of type in CHOICE definition in RFC 2459.IllegalArgumentException
- If there is not a general name type corresponding to the given tag number.Copyright © 2003-2024 Virginia Tech. All Rights Reserved.