All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class netscape.security.x509.DNSName

netscape.security.x509.DNSName

public class DNSName
implements GeneralNameInterface
This class implements the DNSName as required by the GeneralNames ASN.1 object.


Constructor Index

 o DNSName(DerValue)
Create the DNSName object from the passed encoded Der value.
 o DNSName(String)
Create the DNSName object with the specified name.

Method Index

 o encode(DerOutputStream)
Encode the DNS name into the DerOutputStream.
 o getType()
Return the type of the GeneralName.
 o toString()
Convert the name into user readable string.

Constructors

 o DNSName
 public DNSName(DerValue derValue) throws IOException
Create the DNSName object from the passed encoded Der value.

Parameters:
derValue - the encoded DER DNSName.
Throws: IOException
on error.
 o DNSName
 public DNSName(String name)
Create the DNSName object with the specified name.

Parameters:
name - the DNSName.

Methods

 o getType
 public int getType()
Return the type of the GeneralName.

 o encode
 public void encode(DerOutputStream out) throws IOException
Encode the DNS name into the DerOutputStream.

Parameters:
out - the DER stream to encode the DNSName to.
Throws: IOException
on encoding errors.
 o toString
 public String toString()
Convert the name into user readable string.


All Packages  Class Hierarchy  This Package  Previous  Next  Index