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
-
decode(InputStream)
- Decodes the attribute in the input stream.
-
delete(String)
- Deletes an attribute value from this CertAttrSet.
-
encode(OutputStream)
- Encodes the attribute to the output stream in a format
that can be parsed by the
decode method.
-
get(String)
- Gets an attribute value for this CertAttrSet.
-
getElements()
- Returns an enumeration of the names of the attributes existing within
this attribute.
-
getName()
- Returns the name (identifier) of this CertAttrSet.
-
set(String, Object)
- Sets an attribute value within this CertAttrSet.
-
toString()
- Returns a short string describing this certificate attribute.
toString
public abstract String toString()
- Returns a short string describing this certificate attribute.
- Returns:
- value of this certificate attribute in
printable form.
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.
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.
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.
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.
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.
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.
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