All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class netscape.security.x509.CRLExtensions

netscape.security.x509.CRLExtensions

public class CRLExtensions
This class defines the CRL Extensions.


Constructor Index

 o CRLExtensions()
Default constructor.
 o CRLExtensions(DerInputStream)
Create the object, decoding the values from the passed DER stream.

Method Index

 o decode(InputStream)
Decode the extensions from the InputStream.
 o encode(OutputStream, boolean)
Encode the extensions in DER form to the stream.
 o get(String)
Get the extension with this alias.
 o getElements()
Return an enumeration of names of the extensions.
 o set(String, Object)
Set the extension value with this alias.

Constructors

 o CRLExtensions
 public CRLExtensions()
Default constructor.

 o CRLExtensions
 public CRLExtensions(DerInputStream in) throws CRLException, X509ExtensionException
Create the object, decoding the values from the passed DER stream.

Parameters:
in - the DerInputStream to read the Extension from.
Throws: CRLException
on decoding errors.
Throws: X509ExtensionException
on extension handling errors.

Methods

 o decode
 public void decode(InputStream in) throws CRLException, X509ExtensionException
Decode the extensions from the InputStream.

Parameters:
in - the InputStream to unmarshal the contents from.
Throws: CRLException
on decoding or validity errors.
Throws: X509ExtensionException
on extension handling errors.
 o encode
 public void encode(OutputStream out,
                    boolean isExplicit) throws CRLException
Encode the extensions in DER form to the stream.

Parameters:
out - the DerOutputStream to marshal the contents to.
isExplicit - the tag indicating whether this is an entry extension or a CRL extension.
Throws: CRLException
on encoding errors.
 o get
 public Extension get(String alias) throws X509ExtensionException
Get the extension with this alias.

Parameters:
alias - the identifier string for the extension to retrieve.
Throws: X509ExtensionException
on extension handling errors.
 o set
 public void set(String alias,
                 Object obj) throws IOException
Set the extension value with this alias.

Parameters:
alias - the identifier string for the extension to set.
obj - the Object to set the extension identified by the alias.
Throws: IOException
on errors.
 o getElements
 public Enumeration getElements()
Return an enumeration of names of the extensions.

Returns:
an enumeration of the names of the extensions in this CRL.

All Packages  Class Hierarchy  This Package  Previous  Next  Index