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. |
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.
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