|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.netscape.certsrv.kra.ProofOfArchival
public class ProofOfArchival
A class represents a proof of escrow. It indicates a key pairs have been escrowed by appropriate authority. The structure of this object is very similar (if not exact) to X.509 certificate. A proof of escrow is signed by an escrow authority. It is possible to have a CMS policy to reject the certificate issuance request if proof of escrow is not presented.
Here is the ASN1 definition of a proof of escrow:
ProofOfEscrow ::= SIGNED { SEQUENCE { version [0] Version DEFAULT v1, serialNumber INTEGER, subjectName Name, issuerName Name, dateOfArchival Time, extensions [1] Extensions OPTIONAL } }
Field Summary | |
---|---|
static java.lang.String |
ATTR_DATE_OF_ARCHIVAL
|
static java.lang.String |
ATTR_ISSUER
|
static java.lang.String |
ATTR_SERIALNO
|
static java.lang.String |
ATTR_SUBJECT
|
static java.lang.String |
ATTR_VERSION
|
static java.math.BigInteger |
DEFAULT_VERSION
Constants |
protected java.util.Date |
mDateOfArchival
|
protected java.lang.String |
mIssuer
|
protected static java.util.Vector |
mNames
|
protected java.math.BigInteger |
mSerialNo
|
protected java.lang.String |
mSubject
|
protected java.math.BigInteger |
mVersion
|
Constructor Summary | |
---|---|
ProofOfArchival(java.math.BigInteger serialNo,
java.lang.String subject,
java.lang.String issuer,
java.util.Date dateOfArchival)
Constructs a proof of escrow. |
|
ProofOfArchival(java.io.InputStream in)
Constructs proof of escrow from input stream. |
Method Summary | |
---|---|
void |
decode(java.io.InputStream in)
Decodes the input stream. |
void |
delete(java.lang.String name)
Deletes an attribute. |
void |
encode(netscape.security.util.DerOutputStream out)
Encodes this proof of escrow into the given output stream. |
void |
encodeAndSign(java.security.PrivateKey key,
java.lang.String algorithm,
java.lang.String provider,
netscape.security.util.DerOutputStream out)
Encodes and signs this proof of escrow. |
java.lang.Object |
get(java.lang.String name)
Retrieves the value of an named attribute. |
java.util.Date |
getDateOfArchival()
Returns the beginning of the escrowed perioid. |
java.util.Enumeration |
getElements()
Retrieves a list of possible attribute names. |
java.lang.String |
getIssuerName()
Retrieves the issuer name. |
java.util.Enumeration |
getSerializableAttrNames()
Retrieves serializable attribute names. |
java.math.BigInteger |
getSerialNumber()
Retrieves the serial number. |
java.lang.String |
getSubjectName()
Retrieves the subject name. |
java.math.BigInteger |
getVersion()
Retrieves version of this proof. |
void |
set(java.lang.String name,
java.lang.Object obj)
Sets an attribute value. |
java.lang.String |
toString()
Retrieves the string reprensetation of this proof of archival. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.math.BigInteger DEFAULT_VERSION
public static final java.lang.String ATTR_VERSION
public static final java.lang.String ATTR_SERIALNO
public static final java.lang.String ATTR_SUBJECT
public static final java.lang.String ATTR_ISSUER
public static final java.lang.String ATTR_DATE_OF_ARCHIVAL
protected java.math.BigInteger mSerialNo
protected java.math.BigInteger mVersion
protected java.lang.String mSubject
protected java.lang.String mIssuer
protected java.util.Date mDateOfArchival
protected static java.util.Vector mNames
Constructor Detail |
---|
public ProofOfArchival(java.math.BigInteger serialNo, java.lang.String subject, java.lang.String issuer, java.util.Date dateOfArchival)
serialNo
- serial number of proofsubject
- subject nameissuer
- issuer namedateOfArchival
- date of archivalpublic ProofOfArchival(java.io.InputStream in) throws EBaseException
in
- encoding source
EBaseException
- failed to decodeMethod Detail |
---|
public void set(java.lang.String name, java.lang.Object obj) throws EBaseException
set
in interface IAttrSet
name
- attribute nameobj
- attribute value
EBaseException
- failed to set attributepublic java.lang.Object get(java.lang.String name) throws EBaseException
get
in interface IAttrSet
name
- attribute name
EBaseException
- failed to get attributepublic void delete(java.lang.String name) throws EBaseException
delete
in interface IAttrSet
name
- attribute name
EBaseException
- failed to get attributepublic java.util.Enumeration getElements()
getElements
in interface IAttrSet
public java.util.Enumeration getSerializableAttrNames()
getSerializableAttrNames
in interface IDBObj
public java.math.BigInteger getVersion()
getVersion
in interface IProofOfArchival
public java.math.BigInteger getSerialNumber()
getSerialNumber
in interface IProofOfArchival
public java.lang.String getSubjectName()
getSubjectName
in interface IProofOfArchival
public java.lang.String getIssuerName()
getIssuerName
in interface IProofOfArchival
public java.util.Date getDateOfArchival()
getDateOfArchival
in interface IProofOfArchival
public void encode(netscape.security.util.DerOutputStream out) throws EBaseException
EBaseException
public void encodeAndSign(java.security.PrivateKey key, java.lang.String algorithm, java.lang.String provider, netscape.security.util.DerOutputStream out) throws EBaseException
EBaseException
public void decode(java.io.InputStream in) throws EBaseException
EBaseException
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |