Package org.bouncycastle.tsp.ers
Class ERSEvidenceRecord
- java.lang.Object
-
- org.bouncycastle.tsp.ers.ERSEvidenceRecord
-
public class ERSEvidenceRecord extends Object
RFC 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.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, Date atDate)
void
validatePresent(ERSData data, Date atDate)
-
-
-
Constructor Detail
-
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 Detail
-
getLastArchiveTimeStamp
public ERSArchiveTimeStamp getLastArchiveTimeStamp()
-
validatePresent
public void validatePresent(ERSData data, Date atDate) throws ERSException, OperatorCreationException
-
validatePresent
public void validatePresent(byte[] hash, 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 IOException
return the ASN.1 encoded representation of this object.- Throws:
IOException
-
-