com.ibm.security12.sun.security.x509
Class RFC822Name

java.lang.Object
  |
  +--com.ibm.security12.sun.security.x509.RFC822Name

public class RFC822Name
extends Object
implements GeneralNameInterface

This class implements the RFC822Name as required by the GeneralNames ASN.1 object.

Version:
1.5
Author:
Amit Kapoor, Hemma Prafullchandra
See Also:
GeneralName, GeneralNames, GeneralNameInterface

Constructor Summary
RFC822Name(DerValue derValue)
          Create the RFC822Name object from the passed encoded Der value.
RFC822Name(String name)
          Create the RFC822Name object with the specified name.
 
Method Summary
 void encode(DerOutputStream out)
          Encode the RFC822 name into the DerOutputStream.
 int getType()
          Return the type of the GeneralName.
 String toString()
          Convert the name into user readable string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RFC822Name

public RFC822Name(DerValue derValue)
           throws IOException
Create the RFC822Name object from the passed encoded Der value.
Parameters:
derValue - the encoded DER RFC822Name.
Throws:
IOException - on error.

RFC822Name

public RFC822Name(String name)
Create the RFC822Name object with the specified name.
Parameters:
name - the RFC822Name.
Method Detail

getType

public int getType()
Return the type of the GeneralName.
Specified by:
getType in interface GeneralNameInterface

encode

public void encode(DerOutputStream out)
            throws IOException
Encode the RFC822 name into the DerOutputStream.
Specified by:
encode in interface GeneralNameInterface
Parameters:
out - the DER stream to encode the RFC822Name to.
Throws:
IOException - on encoding errors.

toString

public String toString()
Convert the name into user readable string.
Overrides:
toString in class Object