Package org.bouncycastle.tsp.ers
Class ERSEvidenceRecord
- java.lang.Object
-
- org.bouncycastle.tsp.ers.ERSEvidenceRecord
-
public class ERSEvidenceRecord extends java.lang.ObjectRFC 4998 Evidence Record.
-
-
Constructor Summary
Constructors Constructor Description ERSEvidenceRecord(byte[] evidenceRecord, DigestCalculatorProvider digestCalculatorProvider)ERSEvidenceRecord(org.bouncycastle.asn1.tsp.EvidenceRecord evidenceRecord, DigestCalculatorProvider digestCalculatorProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getEncoded()return the ASN.1 encoded representation of this object.ERSArchiveTimeStampgetLastArchiveTimeStamp()X509CertificateHoldergetSigningCertificate()Return the TimeStamp signing certificate if it is present.voidvalidate(SignerInformationVerifier verifier)Validate the time stamp associated with this ArchiveTimeStamp.voidvalidatePresent(byte[] hash, java.util.Date atDate)voidvalidatePresent(ERSData data, java.util.Date atDate)
-
-
-
Constructor Detail
-
ERSEvidenceRecord
public ERSEvidenceRecord(byte[] evidenceRecord, DigestCalculatorProvider digestCalculatorProvider) throws TSPException, ERSException- Throws:
TSPExceptionERSException
-
ERSEvidenceRecord
public ERSEvidenceRecord(org.bouncycastle.asn1.tsp.EvidenceRecord evidenceRecord, DigestCalculatorProvider digestCalculatorProvider) throws TSPException, ERSException- Throws:
TSPExceptionERSException
-
-
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.IOExceptionreturn the ASN.1 encoded representation of this object.- Throws:
java.io.IOException
-
-