org.pfsw.security.x509
Enum X509NameType

java.lang.Object
  extended by java.lang.Enum<X509NameType>
      extended by 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().


Enum Constant Summary
DIRECTORY_NAME
           
DNS_NAME
           
EDI_PARTY_NAME
           
IP_ADDRESS
           
OTHER_NAME
           
REGISTERED_ID
           
RFC822_NAME
           
URI
           
X400_ADDESS
           
 
Method Summary
 java.lang.String asString()
           
 java.lang.String getAsn1Name()
           
 int getTag()
           
static X509NameType ofTag(int asn1Tag)
           
 java.lang.String toString()
           
static X509NameType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static X509NameType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
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
 

Enum Constant Detail

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
Method Detail

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>