All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class netscape.security.x509.CertificateX509Key

netscape.security.x509.CertificateX509Key

public class CertificateX509Key
implements CertAttrSet
This class defines the X509Key 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 KEY
 o NAME
Sub attributes name for this CertAttrSet.

Constructor Index

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

Method Index

 o decode(InputStream)
Decode the key in DER form from the stream.
 o delete(String)
Delete the attribute value.
 o encode(OutputStream)
Encode the key 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 set(String, Object)
Set the attribute value.
 o toString()
Return the key as printable string.

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
Sub attributes name for this CertAttrSet.

 o KEY
 public static final String KEY

Constructors

 o CertificateX509Key
 public CertificateX509Key(X509Key key)
Default constructor for the certificate attribute.

Parameters:
key - the X509Key
 o CertificateX509Key
 public CertificateX509Key(DerInputStream in) throws IOException
Create the object, decoding the values from the passed DER stream.

Parameters:
in - the DerInputStream to read the X509Key from.
Throws: IOException
on decoding errors.
 o CertificateX509Key
 public CertificateX509Key(InputStream in) throws IOException
Create the object, decoding the values from the passed stream.

Parameters:
in - the InputStream to read the X509Key from.
Throws: IOException
on decoding errors.

Methods

 o toString
 public String toString()
Return the key as printable string.

 o decode
 public void decode(InputStream in) throws IOException
Decode the key in DER form from the stream.

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

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

 o get
 public Object get(String name) throws IOException
Get the attribute value.

 o delete
 public void delete(String name) throws IOException
Delete the attribute value.

 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