All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class netscape.security.x509.CertificateExtensions

netscape.security.x509.CertificateExtensions

public class CertificateExtensions
implements CertAttrSet
This class defines the Extensions attribute for the Certificate.

See Also:
CertAttrSet

Variable Index

 o IDENT
Identifier for this attribute, to be used with the get, set, delete methods of Certificate, x509 type.
 o NAME
name

Constructor Index

 o CertificateExtensions()
Default constructor for the certificate attribute.
 o CertificateExtensions(DerInputStream)
Create the object, decoding the values from the passed DER stream.

Method Index

 o decode(InputStream)
Decode the extensions from the InputStream.
 o delete(String)
Delete the attribute value.
 o encode(OutputStream)
Encode the extensions in DER form to the stream.
 o get(String)
Get the attribute value.
 o getElements()
Return an enumeration of names of attributes existing within this attribute.
 o getName()
Return the name of this attribute.
 o parseExtension(Extension)
 o set(String, Object)
Set the attribute value.

Variables

 o IDENT
 public static final String IDENT
Identifier for this attribute, to be used with the get, set, delete methods of Certificate, x509 type.

 o NAME
 public static final String NAME
name

Constructors

 o CertificateExtensions
 public CertificateExtensions()
Default constructor for the certificate attribute.

 o CertificateExtensions
 public CertificateExtensions(DerInputStream in) throws IOException
Create the object, decoding the values from the passed DER stream.

Parameters:
in - the DerInputStream to read the Extension from.
Throws: IOException
on decoding errors.

Methods

 o parseExtension
 public void parseExtension(Extension ext) throws IOException
 o decode
 public void decode(InputStream in) throws IOException
Decode the extensions from the InputStream.

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

Parameters:
out - the DerOutputStream to marshal the contents to.
Throws: CertificateException
on encoding errors.
Throws: IOException
on errors.
 o set
 public void set(String name,
                 Object obj) throws IOException
Set the attribute value.

Parameters:
name - the extension name used in the cache.
obj - the object to set.
Throws: IOException
if the object could not be cached.
 o get
 public Object get(String name) throws IOException
Get the attribute value.

Parameters:
name - the extension name used in the lookup.
Throws: IOException
if named extension is not found.
 o delete
 public void delete(String name) throws IOException
Delete the attribute value.

Parameters:
name - the extension name used in the lookup.
Throws: IOException
if named extension is not found.
 o getElements
 public Enumeration getElements()
Return an enumeration of names of attributes existing within this attribute.

 o getName
 public String getName()
Return the name of this attribute.


All Packages  Class Hierarchy  This Package  Previous  Next  Index