Class ChallengePassword
java.lang.Object
org.mozilla.jss.netscape.security.x509.ChallengePassword
- All Implemented Interfaces:
CertAttrSet
Class for handling the decoding of a SCEP Challenge Password
object. Currently this class cannot be used for encoding
thus some fo the methods are unimplemented
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidvoiddecode(InputStream in) Decodes the attribute in the input stream.voidCurrently Unimplementedvoidencode(OutputStream out) Currently UnimplementedGet an attribute of this object.Returns an enumeration of the names of the attributes existing within this attribute.getName()Returns the name (identifier) of this CertAttrSet.voidCurrently UnimplementedtoString()Get the password marshalled in this object
-
Field Details
-
NAME
- See Also:
-
PASSWORD
- See Also:
-
cpw
-
-
Constructor Details
-
ChallengePassword
Create a ChallengePassword object- Parameters:
stuff- (must be of type byte[]) a DER-encoded by array following The ASN.1 template for ChallenegePassword specified in the SCEP documentation- Throws:
IOException- if the DER encoded byt array was malformed, or if it did not match the template
-
-
Method Details
-
toString
Get the password marshalled in this object- Specified by:
toStringin interfaceCertAttrSet- Overrides:
toStringin classObject- Returns:
- the challenge password
-
encode
Currently Unimplemented- Specified by:
encodein interfaceCertAttrSet- Parameters:
out- the OutputStream to encode the attribute to.- Throws:
CertificateException- on encoding or validity errors.IOException- on other errors.
-
decode
Description copied from interface:CertAttrSetDecodes the attribute in the input stream.- Specified by:
decodein interfaceCertAttrSet- Parameters:
in- the InputStream to read the encoded attribute from.- Throws:
CertificateException- on decoding or validity errors.IOException- on other errors.
-
construct
- Throws:
IOException
-
set
Currently Unimplemented- Specified by:
setin 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
Get an attribute of this object.- Specified by:
getin interfaceCertAttrSet- Parameters:
name- the name of the attribute of this object to get. The only supported attribute is "password"- Returns:
- attribute value
- Throws:
CertificateException- on attribute handling errors.IOException- on other errors.
-
delete
Currently Unimplemented- Specified by:
deletein interfaceCertAttrSet- Parameters:
name- the name of the attribute to delete.- Throws:
CertificateException- on attribute handling errors.IOException- on other errors.
-
getAttributeNames
Description copied from interface:CertAttrSetReturns an enumeration of the names of the attributes existing within this attribute.- Specified by:
getAttributeNamesin interfaceCertAttrSet- Returns:
- an empty set of elements
-
getName
Description copied from interface:CertAttrSetReturns the name (identifier) of this CertAttrSet.- Specified by:
getNamein interfaceCertAttrSet- Returns:
- the String "ChallengePassword"
-