anon.crypto
Class X509SubjectAlternativeName

java.lang.Object
  extended by anon.crypto.AbstractX509Extension
      extended by anon.crypto.AbstractX509AlternativeName
          extended by anon.crypto.X509SubjectAlternativeName

public final class X509SubjectAlternativeName
extends AbstractX509AlternativeName

The SubjectAlternativeName extension represents an alias to distinguished name (DN). It may contain several values and is often used for IPs, DNS-Names, URLs and E-Mail addresses.

Author:
Rolf Wendolsky

Field Summary
static java.lang.String IDENTIFIER
           
 
Fields inherited from class anon.crypto.AbstractX509AlternativeName
DIRECTORY_NAME, DNS_NAME, EDI_PARTY_NAME, IP_ADDRESS, OTHER_NAME, REGISTERED_ID, RFC_822_NAME, TAG_DNS, TAG_EMAIL, TAG_IP, TAG_OTHER, TAG_URL, UNIFORM_RESOURCE_IDENTIFIER, X400_ADDRESS
 
Constructor Summary
X509SubjectAlternativeName(boolean a_critical, java.lang.String a_value, java.lang.Integer a_tag)
          Constructs a new X509SubjectAlternativeName from a value.
X509SubjectAlternativeName(boolean a_critical, java.util.Vector a_values, java.util.Vector a_tags)
          Constructs a new X509SubjectAlternativeName from values.
X509SubjectAlternativeName(org.bouncycastle.asn1.DERSequence a_extension)
          Creates an extension from a BouncyCastle DER sequence.
X509SubjectAlternativeName(java.lang.String a_value, java.lang.Integer a_tag)
          Constructs a new X509SubjectAlternativeName from a value.
X509SubjectAlternativeName(java.util.Vector a_values, java.util.Vector a_tags)
          Constructs a new X509SubjectAlternativeName from values.
 
Method Summary
 java.lang.String getName()
          Returns "SubjectAlternativeName".
 
Methods inherited from class anon.crypto.AbstractX509AlternativeName
getTagAsString, getTags, getValues, isValidEMail, isValidIP
 
Methods inherited from class anon.crypto.AbstractX509Extension
equals, getBCExtension, getDEROctets, getIdentifier, getInstance, hashCode, isCritical, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

IDENTIFIER

public static final java.lang.String IDENTIFIER
Constructor Detail

X509SubjectAlternativeName

public X509SubjectAlternativeName(java.lang.String a_value,
                                  java.lang.Integer a_tag)
Constructs a new X509SubjectAlternativeName from a value.

Parameters:
a_value - a value
a_tag - the type tag for this value

X509SubjectAlternativeName

public X509SubjectAlternativeName(boolean a_critical,
                                  java.lang.String a_value,
                                  java.lang.Integer a_tag)
Constructs a new X509SubjectAlternativeName from a value.

Parameters:
a_critical - true if the extension is critical; false otherwise
a_value - a value
a_tag - the type tag for this value

X509SubjectAlternativeName

public X509SubjectAlternativeName(java.util.Vector a_values,
                                  java.util.Vector a_tags)
Constructs a new X509SubjectAlternativeName from values.

Parameters:
a_values - values for the SubjectAlternativeName
a_tags - the type tags for the values

X509SubjectAlternativeName

public X509SubjectAlternativeName(boolean a_critical,
                                  java.util.Vector a_values,
                                  java.util.Vector a_tags)
Constructs a new X509SubjectAlternativeName from values.

Parameters:
a_critical - true if the extension is critical; false otherwise
a_values - values for the SubjectAlternativeName
a_tags - the type tags for the values

X509SubjectAlternativeName

public X509SubjectAlternativeName(org.bouncycastle.asn1.DERSequence a_extension)
Creates an extension from a BouncyCastle DER sequence. For internal use only.

Parameters:
a_extension - a DERSequence
Method Detail

getName

public java.lang.String getName()
Returns "SubjectAlternativeName".

Specified by:
getName in class AbstractX509Extension
Returns:
"SubjectAlternativeName"