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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ERSEvidenceRecord
public ERSEvidenceRecord(byte[] evidenceRecord,
DigestCalculatorProvider digestCalculatorProvider)
throws TSPException,
ERSException
ERSEvidenceRecord
public ERSEvidenceRecord(org.bouncycastle.asn1.tsp.EvidenceRecord evidenceRecord,
DigestCalculatorProvider digestCalculatorProvider)
throws TSPException,
ERSException
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.