public interface CertAttrSet
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| Modifier and Type | Method and Description |
|---|---|
void |
decode(java.io.InputStream in)
Decodes the attribute in the input stream.
|
void |
delete(java.lang.String name)
Deletes an attribute value from this CertAttrSet.
|
void |
encode(java.io.OutputStream out)
Encodes the attribute to the output stream in a format
that can be parsed by the
decode method. |
java.lang.Object |
get(java.lang.String name)
Gets an attribute value for this CertAttrSet.
|
java.util.Enumeration<java.lang.String> |
getAttributeNames()
Returns an enumeration of the names of the attributes existing within
this attribute.
|
java.lang.String |
getName()
Returns the name (identifier) of this CertAttrSet.
|
void |
set(java.lang.String name,
java.lang.Object obj)
Sets an attribute value within this CertAttrSet.
|
java.lang.String |
toString()
Returns a short string describing this certificate attribute.
|
java.lang.String toString()
toString in class java.lang.Objectvoid encode(java.io.OutputStream out)
throws java.security.cert.CertificateException,
java.io.IOException
decode method.out - the OutputStream to encode the attribute to.java.security.cert.CertificateException - on encoding or validity errors.java.io.IOException - on other errors.void decode(java.io.InputStream in)
throws java.security.cert.CertificateException,
java.io.IOException
in - the InputStream to read the encoded attribute from.java.security.cert.CertificateException - on decoding or validity errors.java.io.IOException - on other errors.void set(java.lang.String name,
java.lang.Object obj)
throws java.security.cert.CertificateException,
java.io.IOException
name - the name of the attribute (e.g. "x509.info.key")obj - the attribute object.java.security.cert.CertificateException - on attribute handling errors.java.io.IOException - on other errors.java.lang.Object get(java.lang.String name)
throws java.security.cert.CertificateException,
java.io.IOException
name - the name of the attribute to return.java.security.cert.CertificateException - on attribute handling errors.java.io.IOException - on other errors.void delete(java.lang.String name)
throws java.security.cert.CertificateException,
java.io.IOException
name - the name of the attribute to delete.java.security.cert.CertificateException - on attribute handling errors.java.io.IOException - on other errors.java.util.Enumeration<java.lang.String> getAttributeNames()
java.lang.String getName()