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
-
IDENT
- Identifier for this attribute, to be used with the
get, set, delete methods of Certificate, x509 type.
-
NAME
- name
-
CertificateExtensions()
- Default constructor for the certificate attribute.
-
CertificateExtensions(DerInputStream)
- Create the object, decoding the values from the passed DER stream.
-
decode(InputStream)
- Decode the extensions from the InputStream.
-
delete(String)
- Delete the attribute value.
-
encode(OutputStream)
- Encode the extensions in DER form to the stream.
-
get(String)
- Get the attribute value.
-
getElements()
- Return an enumeration of names of attributes existing within this
attribute.
-
getName()
- Return the name of this attribute.
-
parseExtension(Extension)
-
-
set(String, Object)
- Set the attribute value.
IDENT
public static final String IDENT
- Identifier for this attribute, to be used with the
get, set, delete methods of Certificate, x509 type.
NAME
public static final String NAME
- name
CertificateExtensions
public CertificateExtensions()
- Default constructor for the certificate attribute.
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.
parseExtension
public void parseExtension(Extension ext) throws IOException
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.
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.
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.
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.
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.
getElements
public Enumeration getElements()
- Return an enumeration of names of attributes existing within this
attribute.
getName
public String getName()
- Return the name of this attribute.
All Packages Class Hierarchy This Package Previous Next Index