Package org.bouncycastle.tsp.ers
Class ERSEvidenceRecord
java.lang.Object
org.bouncycastle.tsp.ers.ERSEvidenceRecord
RFC 4998 Evidence Record.
-
Constructor Summary
ConstructorsConstructorDescriptionERSEvidenceRecord
(byte[] evidenceRecord, DigestCalculatorProvider digestCalculatorProvider) ERSEvidenceRecord
(org.bouncycastle.asn1.tsp.EvidenceRecord evidenceRecord, DigestCalculatorProvider digestCalculatorProvider) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
return the ASN.1 encoded representation of this object.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, Date atDate) void
validatePresent
(ERSData data, Date atDate)
-
Constructor Details
-
ERSEvidenceRecord
public ERSEvidenceRecord(byte[] evidenceRecord, DigestCalculatorProvider digestCalculatorProvider) throws TSPException, ERSException - Throws:
TSPException
ERSException
-
ERSEvidenceRecord
public ERSEvidenceRecord(org.bouncycastle.asn1.tsp.EvidenceRecord evidenceRecord, DigestCalculatorProvider digestCalculatorProvider) throws TSPException, ERSException - Throws:
TSPException
ERSException
-
-
Method Details
-
getLastArchiveTimeStamp
-
validatePresent
public void validatePresent(ERSData data, Date atDate) throws ERSException, OperatorCreationException -
validatePresent
public void validatePresent(byte[] hash, Date atDate) throws ERSException, OperatorCreationException -
getSigningCertificate
Return the TimeStamp signing certificate if it is present.- Returns:
- the TimeStamp signing certificate.
-
validate
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
return the ASN.1 encoded representation of this object.- Throws:
IOException
-