Bouncy Castle Cryptography Library 1.71

org.bouncycastle.tsp.ers
Class ERSEvidenceRecord

java.lang.Object
  |
  +--org.bouncycastle.tsp.ers.ERSEvidenceRecord

public class ERSEvidenceRecord
extends java.lang.Object

RFC 4998 Evidence Record.


Constructor Summary
ERSEvidenceRecord(byte[] evidenceRecord, DigestCalculatorProvider digestCalculatorProvider)
           
ERSEvidenceRecord(org.bouncycastle.asn1.tsp.EvidenceRecord evidenceRecord, DigestCalculatorProvider digestCalculatorProvider)
           
 
Method Summary
 byte[] getEncoded()
          return the ASN.1 encoded representation of this object.
 ERSArchiveTimeStamp getLastArchiveTimeStamp()
           
 X509CertificateHolder getSigningCertificate()
          Return the TimeStamp signing certificate if it is present.
 void validate(SignerInformationVerifier verifier)
          Validate the time stamp associated with this ArchiveTimeStamp.
 void validatePresent(byte[] hash, java.util.Date atDate)
           
 void validatePresent(ERSData data, java.util.Date atDate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ERSEvidenceRecord

public ERSEvidenceRecord(byte[] evidenceRecord,
                         DigestCalculatorProvider digestCalculatorProvider)
                  throws TSPException,
                         ERSException

ERSEvidenceRecord

public ERSEvidenceRecord(org.bouncycastle.asn1.tsp.EvidenceRecord evidenceRecord,
                         DigestCalculatorProvider digestCalculatorProvider)
                  throws TSPException,
                         ERSException
Method Detail

getLastArchiveTimeStamp

public ERSArchiveTimeStamp getLastArchiveTimeStamp()

validatePresent

public void validatePresent(ERSData data,
                            java.util.Date atDate)
                     throws ERSException,
                            OperatorCreationException

validatePresent

public void validatePresent(byte[] hash,
                            java.util.Date atDate)
                     throws ERSException,
                            OperatorCreationException

getSigningCertificate

public X509CertificateHolder getSigningCertificate()
Return the TimeStamp signing certificate if it is present.
Returns:
the TimeStamp signing certificate.

validate

public void validate(SignerInformationVerifier verifier)
              throws TSPException
Validate the time stamp associated with this ArchiveTimeStamp.
Parameters:
verifier - signer verifier for the contained time stamp.
Throws:
TSPException - in case of validation failure or error.

getEncoded

public byte[] getEncoded()
                  throws java.io.IOException
return the ASN.1 encoded representation of this object.

Bouncy Castle Cryptography Library 1.71