All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class netscape.security.x509.GeneralName

netscape.security.x509.GeneralName

public class GeneralName
implements GeneralNameInterface
This class implements the ASN.1 GeneralName object class.

The ASN.1 syntax for this is:

 GeneralName ::= CHOICE {
    otherName                       [0]     OtherName,
    rfc822Name                      [1]     IA5String,
    dNSName                         [2]     IA5String,
    x400Address                     [3]     ORAddress,
    directoryName                   [4]     Name,
    ediPartyName                    [5]     EDIPartyName,
    uniformResourceIdentifier       [6]     IA5String,
    iPAddress                       [7]     OCTET STRING,
    registeredID                    [8]     OBJECT IDENTIFIER
 }
 


Constructor Index

 o GeneralName(DerValue)
Create the object from its DER encoded value.
 o GeneralName(GeneralNameInterface)
Default constructor for the class.

Method Index

 o encode(DerOutputStream)
Encode the name to the specified DerOutputStream.
 o getType()
Return the type of the general name.
 o toString()
Return the name as user readable string

Constructors

 o GeneralName
 public GeneralName(GeneralNameInterface name)
Default constructor for the class.

Parameters:
name - the selected CHOICE from the list.
 o GeneralName
 public GeneralName(DerValue encName) throws IOException
Create the object from its DER encoded value.

Parameters:
encName - the DER encoded GeneralName.

Methods

 o getType
 public int getType()
Return the type of the general name.

 o toString
 public String toString()
Return the name as user readable string

 o encode
 public void encode(DerOutputStream out) throws IOException
Encode the name to the specified DerOutputStream.

Parameters:
out - the DerOutputStream to encode the the GeneralName to.
Throws: IOException
on encoding errors.

All Packages  Class Hierarchy  This Package  Previous  Next  Index