|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
CertificateException
Method Summary | |
void |
decode(InputStream in)
Decodes the attribute in the input stream. |
void |
delete(String name)
Deletes an attribute value from this CertAttrSet. |
void |
encode(OutputStream out)
Encodes the attribute to the output stream in a format that can be parsed by the decode method. |
Object |
get(String name)
Gets an attribute value for this CertAttrSet. |
Enumeration |
getElements()
Returns an enumeration of the names of the attributes existing within this attribute. |
String |
getName()
Returns the name (identifier) of this CertAttrSet. |
void |
set(String name,
Object obj)
Sets an attribute value within this CertAttrSet. |
String |
toString()
Returns a short string describing this certificate attribute. |
Method Detail |
public String toString()
public void encode(OutputStream out) throws CertificateException, IOException
decode
method.out
- the OutputStream to encode the attribute to.public void decode(InputStream in) throws CertificateException, IOException
in
- the InputStream to read the encoded attribute from.public void set(String name, Object obj) throws CertificateException, IOException
name
- the name of the attribute (e.g. "x509.info.key")obj
- the attribute object.public Object get(String name) throws CertificateException, IOException
name
- the name of the attribute to return.public void delete(String name) throws CertificateException, IOException
name
- the name of the attribute to delete.public Enumeration getElements()
public String getName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |