All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class netscape.security.x509.CertificateAlgorithmId

netscape.security.x509.CertificateAlgorithmId

public class CertificateAlgorithmId
implements CertAttrSet
This class defines the AlgorithmId for the Certificate.


Variable Index

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

Constructor Index

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

Method Index

 o decode(InputStream)
Decode the algorithm identifier from the passed stream.
 o delete(String)
Delete the attribute value.
 o encode(OutputStream)
Encode the algorithm identifier 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 algorithm identifier as user readable 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 ALGORITHM
 public static final String ALGORITHM

Constructors

 o CertificateAlgorithmId
 public CertificateAlgorithmId(AlgorithmId algId)
Default constructor for the certificate attribute.

Parameters:
algId - the Algorithm identifier
 o CertificateAlgorithmId
 public CertificateAlgorithmId(DerInputStream in) throws IOException
Create the object, decoding the values from the passed DER stream.

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

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

Methods

 o toString
 public String toString()
Return the algorithm identifier as user readable string.

 o encode
 public void encode(OutputStream out) throws IOException
Encode the algorithm identifier in DER form to the stream.

Parameters:
out - the DerOutputStream to marshal the contents to.
Throws: IOException
on errors.
 o decode
 public void decode(InputStream in) throws IOException
Decode the algorithm identifier from the passed stream.

Parameters:
in - the InputStream to unmarshal the contents from.
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