org.pfsw.security.x509
Enum X509NameType
java.lang.Object
java.lang.Enum<X509NameType>
org.pfsw.security.x509.X509NameType
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<X509NameType>, org.pfsw.bif.enums.IEnumType, org.pfsw.bif.text.IStringConstant, org.pfsw.bif.text.IStringRepresentation
public enum X509NameType
- extends java.lang.Enum<X509NameType>
- implements org.pfsw.bif.text.IStringConstant
Constants for alternative subject and issuer names.
See comment of X509Certificate.getSubjectAlternativeNames().
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.pfsw.bif.enums.IEnumType |
getDeclaringClass, name, ordinal |
OTHER_NAME
public static final X509NameType OTHER_NAME
RFC822_NAME
public static final X509NameType RFC822_NAME
DNS_NAME
public static final X509NameType DNS_NAME
X400_ADDESS
public static final X509NameType X400_ADDESS
DIRECTORY_NAME
public static final X509NameType DIRECTORY_NAME
EDI_PARTY_NAME
public static final X509NameType EDI_PARTY_NAME
URI
public static final X509NameType URI
IP_ADDRESS
public static final X509NameType IP_ADDRESS
REGISTERED_ID
public static final X509NameType REGISTERED_ID
values
public static X509NameType[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (X509NameType c : X509NameType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static X509NameType valueOf(java.lang.String name)
- 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:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
ofTag
public static X509NameType ofTag(int asn1Tag)
getAsn1Name
public java.lang.String getAsn1Name()
getTag
public int getTag()
asString
public java.lang.String asString()
- Specified by:
asString
in interface org.pfsw.bif.text.IStringRepresentation
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Enum<X509NameType>