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
-
GeneralNames()
- The default constructor for this class.
-
GeneralNames(DerValue)
- Create the GeneralNames, decoding from the passed DerValue.
-
GeneralNames(GeneralNameInterface[])
- Create the GeneralNames
-
encode(DerOutputStream)
- Write the extension to the DerOutputStream.
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.
GeneralNames
public GeneralNames(GeneralNameInterface names[]) throws GeneralNamesException
- Create the GeneralNames
- Parameters:
- names - a non-empty array of names to put into the
generalNames
GeneralNames
public GeneralNames()
- The default constructor for this class.
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