Class ChallengePassword
- java.lang.Object
-
- com.netscape.cms.servlet.cert.scep.ChallengePassword
-
- All Implemented Interfaces:
CertAttrSet
public class ChallengePassword extends java.lang.Object implements 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
-
-
Constructor Summary
Constructors Constructor Description ChallengePassword(java.lang.Object stuff)
Create a ChallengePassword object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
decode(java.io.InputStream in)
Decodes the attribute in the input stream.void
delete(java.lang.String name)
Currently Unimplementedvoid
encode(java.io.OutputStream out)
Currently Unimplementedjava.lang.Object
get(java.lang.String name)
Get an attribute of this object.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)
Currently Unimplementedjava.lang.String
toString()
Get the password marshalled in this object
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
PASSWORD
public static final java.lang.String PASSWORD
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ChallengePassword
public ChallengePassword(java.lang.Object stuff) throws java.io.IOException
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:
java.io.IOException
- if the DER encoded byt array was malformed, or if it did not match the template
-
-
Method Detail
-
toString
public java.lang.String toString()
Get the password marshalled in this object- Specified by:
toString
in interfaceCertAttrSet
- Overrides:
toString
in classjava.lang.Object
- Returns:
- the challenge password
-
encode
public void encode(java.io.OutputStream out) throws java.security.cert.CertificateException, java.io.IOException
Currently Unimplemented- Specified by:
encode
in interfaceCertAttrSet
- Parameters:
out
- the OutputStream to encode the attribute to.- Throws:
java.security.cert.CertificateException
- on encoding or validity errors.java.io.IOException
- on other errors.
-
decode
public void decode(java.io.InputStream in) throws java.security.cert.CertificateException, java.io.IOException
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:
java.security.cert.CertificateException
- on decoding or validity errors.java.io.IOException
- on other errors.
-
set
public void set(java.lang.String name, java.lang.Object obj) throws java.security.cert.CertificateException, java.io.IOException
Currently Unimplemented- Specified by:
set
in interfaceCertAttrSet
- Parameters:
name
- the name of the attribute (e.g. "x509.info.key")obj
- the attribute object.- Throws:
java.security.cert.CertificateException
- on attribute handling errors.java.io.IOException
- on other errors.
-
get
public java.lang.Object get(java.lang.String name) throws java.security.cert.CertificateException, java.io.IOException
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"- Throws:
java.security.cert.CertificateException
- on attribute handling errors.java.io.IOException
- on other errors.
-
delete
public void delete(java.lang.String name) throws java.security.cert.CertificateException, java.io.IOException
Currently Unimplemented- Specified by:
delete
in interfaceCertAttrSet
- Parameters:
name
- the name of the attribute to delete.- Throws:
java.security.cert.CertificateException
- on attribute handling errors.java.io.IOException
- on other errors.
-
getAttributeNames
public java.util.Enumeration<java.lang.String> 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
public java.lang.String getName()
Description copied from interface:CertAttrSet
Returns the name (identifier) of this CertAttrSet.- Specified by:
getName
in interfaceCertAttrSet
- Returns:
- the String "ChallengePassword"
-
-