Class ACertAttrSet
java.lang.Object
org.mozilla.jss.netscape.security.x509.ACertAttrSet
- All Implemented Interfaces:
CertAttrSet
A plain certattr set used by pkcs10 to parse an unknown attribute.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
decode
(InputStream in) Decodes the attribute in the input stream.void
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 thedecode
method.Gets an attribute value for this CertAttrSet.Returns an enumeration of the names of the attributes existing within this attribute.getName()
Returns the name (identifier) of this CertAttrSet.void
Sets an attribute value within this CertAttrSet.toString()
Returns a short string describing this certificate attribute.
-
Field Details
-
mDerValue
-
-
Constructor Details
-
ACertAttrSet
- Throws:
IOException
-
-
Method Details
-
getDerValue
-
toString
Returns a short string describing this certificate attribute.- Specified by:
toString
in interfaceCertAttrSet
- Overrides:
toString
in classObject
- Returns:
- value of this certificate attribute in printable form.
-
encode
Encodes the attribute to the output stream in a format that can be parsed by thedecode
method.- Specified by:
encode
in interfaceCertAttrSet
- Parameters:
out
- the OutputStream to encode the attribute to.- Throws:
CertificateException
- on encoding or validity errors.IOException
- on other errors.
-
decode
Decodes the attribute in the input stream.- Specified by:
decode
in interfaceCertAttrSet
- Parameters:
in
- the InputStream to read the encoded attribute from.- Throws:
CertificateException
- on decoding or validity errors.IOException
- on other errors.
-
set
Sets an attribute value within this CertAttrSet.- Specified by:
set
in interfaceCertAttrSet
- 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.
-
get
Gets an attribute value for this CertAttrSet.- Specified by:
get
in interfaceCertAttrSet
- Parameters:
name
- the name of the attribute to return.- Returns:
- attribute value
- Throws:
CertificateException
- on attribute handling errors.IOException
- on other errors.
-
delete
Deletes an attribute value from this CertAttrSet.- Specified by:
delete
in interfaceCertAttrSet
- Parameters:
name
- the name of the attribute to delete.- Throws:
CertificateException
- on attribute handling errors.IOException
- on other errors.
-
getAttributeNames
Returns an enumeration of the names of the attributes existing within this attribute.- Specified by:
getAttributeNames
in interfaceCertAttrSet
- Returns:
- an enumeration of the attribute names.
-
getName
Returns the name (identifier) of this CertAttrSet.- Specified by:
getName
in interfaceCertAttrSet
- Returns:
- the name of this CertAttrSet.
-