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.
-
CRLExtensions()
- Default constructor.
-
CRLExtensions(DerInputStream)
- Create the object, decoding the values from the passed DER stream.
-
decode(InputStream)
- Decode the extensions from the InputStream.
-
encode(OutputStream, boolean)
- Encode the extensions in DER form to the stream.
-
get(String)
- Get the extension with this alias.
-
getElements()
- Return an enumeration of names of the extensions.
-
set(String, Object)
- Set the extension value with this alias.
CRLExtensions
public CRLExtensions()
- Default constructor.
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.
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.
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.
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.
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.
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