All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class netscape.security.x509.GeneralNames

netscape.security.x509.GeneralNames

public class GeneralNames
This object class represents the GeneralNames type required in X509 certificates.

The ASN.1 syntax for this is:

 GeneralNames ::= SEQUENCE SIZE (1..MAX) OF GeneralName
 


Constructor Index

 o GeneralNames()
The default constructor for this class.
 o GeneralNames(DerValue)
Create the GeneralNames, decoding from the passed DerValue.
 o GeneralNames(GeneralNameInterface[])
Create the GeneralNames

Method Index

 o encode(DerOutputStream)
Write the extension to the DerOutputStream.

Constructors

 o GeneralNames
 public GeneralNames(DerValue derVal) throws IOException, GeneralNamesException
Create the GeneralNames, decoding from the passed DerValue. Caution when using this constructor. It may be broken! Better to call addElement(gni) directly where gni is a GeneralNameInterface object

Parameters:
derVal - the DerValue to construct the GeneralNames from.
Throws: GeneralNamesException
on decoding error.
Throws: IOException
on error.
 o GeneralNames
 public GeneralNames(GeneralNameInterface names[]) throws GeneralNamesException
Create the GeneralNames

Parameters:
names - a non-empty array of names to put into the generalNames
 o GeneralNames
 public GeneralNames()
The default constructor for this class.

Methods

 o encode
 public void encode(DerOutputStream out) throws IOException, GeneralNamesException
Write the extension to the DerOutputStream.

Parameters:
out - the DerOutputStream to write the extension to.
Throws: GeneralNamesException
on encoding error.
Throws: IOException
on error.

All Packages  Class Hierarchy  This Package  Previous  Next  Index