All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface netscape.security.x509.CertAttrSet

public interface CertAttrSet
This interface defines the methods required of a certificate attribute. Examples of X.509 certificate attributes are Validity, Issuer_Name, and Subject Name. A CertAttrSet may compromise one attribute or many attributes.

A CertAttrSet itself can also be comprised of other sub-sets. In the case of X.509 V3 certificates, for example, the "extensions" attribute has subattributes, such as those for KeyUsage and AuthorityKeyIdentifier.

See Also:
CertificateException

Method Index

 o decode(InputStream)
Decodes the attribute in the input stream.
 o delete(String)
Deletes an attribute value from this CertAttrSet.
 o encode(OutputStream)
Encodes the attribute to the output stream in a format that can be parsed by the decode method.
 o get(String)
Gets an attribute value for this CertAttrSet.
 o getElements()
Returns an enumeration of the names of the attributes existing within this attribute.
 o getName()
Returns the name (identifier) of this CertAttrSet.
 o set(String, Object)
Sets an attribute value within this CertAttrSet.
 o toString()
Returns a short string describing this certificate attribute.

Methods

 o toString
 public abstract String toString()
Returns a short string describing this certificate attribute.

Returns:
value of this certificate attribute in printable form.
 o encode
 public abstract void encode(OutputStream out) throws CertificateException, IOException
Encodes the attribute to the output stream in a format that can be parsed by the decode method.

Parameters:
out - the OutputStream to encode the attribute to.
Throws: CertificateException
on encoding or validity errors.
Throws: IOException
on other errors.
 o decode
 public abstract void decode(InputStream in) throws CertificateException, IOException
Decodes the attribute in the input stream.

Parameters:
in - the InputStream to read the encoded attribute from.
Throws: CertificateException
on decoding or validity errors.
Throws: IOException
on other errors.
 o set
 public abstract void set(String name,
                          Object obj) throws CertificateException, IOException
Sets an attribute value within this CertAttrSet.

Parameters:
name - the name of the attribute (e.g. "x509.info.key")
obj - the attribute object.
Throws: CertificateException
on attribute handling errors.
Throws: IOException
on other errors.
 o get
 public abstract Object get(String name) throws CertificateException, IOException
Gets an attribute value for this CertAttrSet.

Parameters:
name - the name of the attribute to return.
Throws: CertificateException
on attribute handling errors.
Throws: IOException
on other errors.
 o delete
 public abstract void delete(String name) throws CertificateException, IOException
Deletes an attribute value from this CertAttrSet.

Parameters:
name - the name of the attribute to delete.
Throws: CertificateException
on attribute handling errors.
Throws: IOException
on other errors.
 o getElements
 public abstract Enumeration getElements()
Returns an enumeration of the names of the attributes existing within this attribute.

Returns:
an enumeration of the attribute names.
 o getName
 public abstract String getName()
Returns the name (identifier) of this CertAttrSet.

Returns:
the name of this CertAttrSet.

All Packages  Class Hierarchy  This Package  Previous  Next  Index