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 void
void
decode
(InputStream in) Decodes the attribute in the input stream.void
Currently Unimplementedvoid
encode
(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.void
Currently 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:
toString
in interfaceCertAttrSet
- Overrides:
toString
in classObject
- Returns:
- the challenge password
-
encode
Currently Unimplemented- 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
Description copied from interface:CertAttrSet
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.
-
construct
- Throws:
IOException
-
set
Currently Unimplemented- 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
Get an attribute of this object.- Specified by:
get
in 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:
delete
in 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:CertAttrSet
Returns an enumeration of the names of the attributes existing within this attribute.- Specified by:
getAttributeNames
in interfaceCertAttrSet
- Returns:
- an empty set of elements
-
getName
Description copied from interface:CertAttrSet
Returns the name (identifier) of this CertAttrSet.- Specified by:
getName
in interfaceCertAttrSet
- Returns:
- the String "ChallengePassword"
-