public class ChallengePassword
extends java.lang.Object
implements netscape.security.x509.CertAttrSet
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
static java.lang.String |
PASSWORD |
Constructor and Description |
---|
ChallengePassword(java.lang.Object stuff)
Create a ChallengePassword object
|
Modifier and Type | Method and Description |
---|---|
void |
decode(java.io.InputStream in)
Decodes the attribute in the input stream.
|
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<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 Unimplemented
|
java.lang.String |
toString()
Get the password marshalled in this object
|
public static final java.lang.String NAME
public static final java.lang.String PASSWORD
public ChallengePassword(java.lang.Object stuff) throws java.io.IOException
stuff
- (must be of type byte[]) a DER-encoded by array following
The ASN.1 template for ChallenegePassword specified in the SCEP
documentationjava.io.IOException
- if the DER encoded byt array was malformed, or if it
did not match the templatepublic java.lang.String toString()
toString
in interface netscape.security.x509.CertAttrSet
toString
in class java.lang.Object
public void encode(java.io.OutputStream out) throws java.security.cert.CertificateException, java.io.IOException
encode
in interface netscape.security.x509.CertAttrSet
out
- the OutputStream to encode the attribute to.java.security.cert.CertificateException
- on encoding or validity errors.java.io.IOException
- on other errors.public void decode(java.io.InputStream in) throws java.security.cert.CertificateException, java.io.IOException
netscape.security.x509.CertAttrSet
decode
in interface netscape.security.x509.CertAttrSet
in
- the InputStream to read the encoded attribute from.java.security.cert.CertificateException
- on decoding or validity errors.java.io.IOException
- on other errors.public void set(java.lang.String name, java.lang.Object obj) throws java.security.cert.CertificateException, java.io.IOException
set
in interface netscape.security.x509.CertAttrSet
name
- the name of the attribute (e.g. "x509.info.key")obj
- the attribute object.java.security.cert.CertificateException
- on attribute handling errors.java.io.IOException
- on other errors.public java.lang.Object get(java.lang.String name) throws java.security.cert.CertificateException, java.io.IOException
get
in interface netscape.security.x509.CertAttrSet
name
- the name of the attribute of this object to get. The only
supported attribute is "password"java.security.cert.CertificateException
- on attribute handling errors.java.io.IOException
- on other errors.public void delete(java.lang.String name) throws java.security.cert.CertificateException, java.io.IOException
delete
in interface netscape.security.x509.CertAttrSet
name
- the name of the attribute to delete.java.security.cert.CertificateException
- on attribute handling errors.java.io.IOException
- on other errors.public java.util.Enumeration<java.lang.String> getAttributeNames()
netscape.security.x509.CertAttrSet
getAttributeNames
in interface netscape.security.x509.CertAttrSet
public java.lang.String getName()
netscape.security.x509.CertAttrSet
getName
in interface netscape.security.x509.CertAttrSet