public interface

CertAttrSet

sun.security.x509.CertAttrSet<T>
Known Indirect Subclasses

Class Overview

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 comprise 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.

Summary

Public Methods
abstract void delete(String name)
Deletes an attribute value from this CertAttrSet.
abstract void encode(OutputStream out)
Encodes the attribute to the output stream in a format that can be parsed by the decode method.
abstract Object get(String name)
Gets an attribute value for this CertAttrSet.
abstract Enumeration<T> getElements()
Returns an enumeration of the names of the attributes existing within this attribute.
abstract String getName()
Returns the name (identifier) of this CertAttrSet.
abstract void set(String name, Object obj)
Sets an attribute value within this CertAttrSet.
abstract String toString()
Returns a short string describing this certificate attribute.

Public Methods

public abstract void delete (String name)

Deletes an attribute value from this CertAttrSet.

Parameters
name the name of the attribute to delete.
Throws
CertificateException on attribute handling errors.
IOException on other errors.

public abstract void encode (OutputStream out)

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.
IOException on other errors.

public abstract Object get (String name)

Gets an attribute value for this CertAttrSet.

Parameters
name the name of the attribute to return.
Throws
CertificateException on attribute handling errors.
IOException on other errors.

public abstract Enumeration<T> getElements ()

Returns an enumeration of the names of the attributes existing within this attribute.

Returns
  • an enumeration of the attribute names.

public abstract String getName ()

Returns the name (identifier) of this CertAttrSet.

Returns
  • the name of this CertAttrSet.

public abstract void set (String name, Object obj)

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.
IOException on other errors.

public abstract String toString ()

Returns a short string describing this certificate attribute.

Returns
  • value of this certificate attribute in printable form.