com.netscape.cms.servlet.cert.scep
Class ChallengePassword

java.lang.Object
  extended by com.netscape.cms.servlet.cert.scep.ChallengePassword
All Implemented Interfaces:
netscape.security.x509.CertAttrSet

public class ChallengePassword
extends java.lang.Object
implements netscape.security.x509.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
static java.lang.String NAME
           
static java.lang.String PASSWORD
           
 
Constructor Summary
ChallengePassword(java.lang.Object stuff)
          Create a ChallengePassword object
 
Method Summary
 void decode(java.io.InputStream in)
           
 void delete(java.lang.String name)
          Currently Unimplemented
 void encode(java.io.OutputStream out)
          Currently Unimplemented
 java.lang.Object get(java.lang.String name)
          Get an attribute of this object.
 java.util.Enumeration getElements()
           
 java.lang.String getName()
           
 void set(java.lang.String name, java.lang.Object obj)
          Currently Unimplemented
 java.lang.String toString()
          Get the password marshalled in this object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 interface netscape.security.x509.CertAttrSet
Overrides:
toString in class java.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 interface netscape.security.x509.CertAttrSet
Throws:
java.security.cert.CertificateException
java.io.IOException

decode

public void decode(java.io.InputStream in)
            throws java.security.cert.CertificateException,
                   java.io.IOException
Specified by:
decode in interface netscape.security.x509.CertAttrSet
Throws:
java.security.cert.CertificateException
java.io.IOException

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 interface netscape.security.x509.CertAttrSet
Throws:
java.security.cert.CertificateException
java.io.IOException

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 interface netscape.security.x509.CertAttrSet
Parameters:
name - the name of the attribute of this object to get. The only supported attribute is "password"
Throws:
java.security.cert.CertificateException
java.io.IOException

delete

public void delete(java.lang.String name)
            throws java.security.cert.CertificateException,
                   java.io.IOException
Currently Unimplemented

Specified by:
delete in interface netscape.security.x509.CertAttrSet
Throws:
java.security.cert.CertificateException
java.io.IOException

getElements

public java.util.Enumeration getElements()
Specified by:
getElements in interface netscape.security.x509.CertAttrSet
Returns:
an empty set of elements

getName

public java.lang.String getName()
Specified by:
getName in interface netscape.security.x509.CertAttrSet
Returns:
the String "ChallengePassword"