Class CertificateX509Key
java.lang.Object
org.mozilla.jss.netscape.security.x509.CertificateX509Key
- All Implemented Interfaces:
Serializable,CertAttrSet
This class defines the X509Key attribute for the Certificate.
- Version:
- 1.5
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreate the object, decoding the values from the passed stream.Create the object, decoding the values from the passed DER stream.Default constructor for the certificate attribute. -
Method Summary
Modifier and TypeMethodDescriptionvoiddecode(InputStream in) Decode the key in DER form from the stream.voidDelete the attribute value.voidencode(OutputStream out) Encode the key in DER form to the stream.Get the attribute value.Return an enumeration of names of attributes existing within this attribute.getName()Return the name of this attribute.private voidreadObject(ObjectInputStream stream) voidSet the attribute value.toString()Return the key as printable string.private voidwriteObject(ObjectOutputStream stream)
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
IDENT
Identifier for this attribute, to be used with the get, set, delete methods of Certificate, x509 type.- See Also:
-
NAME
Sub attributes name for this CertAttrSet.- See Also:
-
KEY
- See Also:
-
key
-
-
Constructor Details
-
CertificateX509Key
Default constructor for the certificate attribute.- Parameters:
key- the X509Key
-
CertificateX509Key
Create the object, decoding the values from the passed DER stream.- Parameters:
in- the DerInputStream to read the X509Key from.- Throws:
IOException- on decoding errors.
-
CertificateX509Key
Create the object, decoding the values from the passed stream.- Parameters:
in- the InputStream to read the X509Key from.- Throws:
IOException- on decoding errors.
-
-
Method Details
-
toString
Return the key as printable string.- Specified by:
toStringin interfaceCertAttrSet- Overrides:
toStringin classObject- Returns:
- value of this certificate attribute in printable form.
-
decode
Decode the key in DER form from the stream.- Specified by:
decodein interfaceCertAttrSet- Parameters:
in- the InputStream to unmarshal the contents from- Throws:
IOException- on decoding or validity errors.
-
writeObject
- Throws:
IOException
-
readObject
- Throws:
IOException
-
encode
Encode the key in DER form to the stream.- Specified by:
encodein interfaceCertAttrSet- Parameters:
out- the OutputStream to marshal the contents to.- Throws:
IOException- on errors.
-
set
Set the attribute value.- Specified by:
setin interfaceCertAttrSet- Parameters:
name- the name of the attribute (e.g. "x509.info.key")obj- the attribute object.- Throws:
IOException- on other errors.
-
get
Get the attribute value.- Specified by:
getin interfaceCertAttrSet- Parameters:
name- the name of the attribute to return.- Returns:
- attribute value
- Throws:
IOException- on other errors.
-
delete
Delete the attribute value.- Specified by:
deletein interfaceCertAttrSet- Parameters:
name- the name of the attribute to delete.- Throws:
IOException- on other errors.
-
getAttributeNames
Return an enumeration of names of attributes existing within this attribute.- Specified by:
getAttributeNamesin interfaceCertAttrSet- Returns:
- an enumeration of the attribute names.
-
getName
Return the name of this attribute.- Specified by:
getNamein interfaceCertAttrSet- Returns:
- the name of this CertAttrSet.
-