Package org.bouncycastle.tsp.ers
Class ERSArchiveTimeStamp
java.lang.Object
org.bouncycastle.tsp.ers.ERSArchiveTimeStamp
RFC 4998 ArchiveTimeStamp.
-
Constructor Summary
ConstructorsConstructorDescriptionERSArchiveTimeStamp
(byte[] archiveTimeStamp, DigestCalculatorProvider digCalcProv) ERSArchiveTimeStamp
(org.bouncycastle.asn1.tsp.ArchiveTimeStamp archiveTimeStamp, DigestCalculatorProvider digCalcProv) -
Method Summary
Modifier and TypeMethodDescriptionorg.bouncycastle.asn1.x509.AlgorithmIdentifier
byte[]
return the ASN.1 encoded representation of this object.Return the not-after date for the time-stamp's signing certificate if it is present.Return the generation time of the time-stamp associated with this archive time stamp.Return the TimeStamp signing certificate if it is present.org.bouncycastle.asn1.tsp.ArchiveTimeStamp
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
-
ERSArchiveTimeStamp
public ERSArchiveTimeStamp(byte[] archiveTimeStamp, DigestCalculatorProvider digCalcProv) throws TSPException, ERSException - Throws:
TSPException
ERSException
-
ERSArchiveTimeStamp
public ERSArchiveTimeStamp(org.bouncycastle.asn1.tsp.ArchiveTimeStamp archiveTimeStamp, DigestCalculatorProvider digCalcProv) throws TSPException, ERSException - Throws:
TSPException
ERSException
-
-
Method Details
-
getDigestAlgorithmIdentifier
public org.bouncycastle.asn1.x509.AlgorithmIdentifier getDigestAlgorithmIdentifier() -
validatePresent
public void validatePresent(ERSData data, Date atDate) throws ERSException, OperatorCreationException -
validatePresent
public void validatePresent(byte[] hash, Date atDate) throws ERSException, OperatorCreationException -
getTimeStampToken
-
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.
-
getGenTime
Return the generation time of the time-stamp associated with this archive time stamp.- Returns:
- the time the associated time-stamp was created.
-
getExpiryTime
Return the not-after date for the time-stamp's signing certificate if it is present.- Returns:
- the issuing TSP server not-after date, or null if not present.
-
toASN1Structure
public org.bouncycastle.asn1.tsp.ArchiveTimeStamp toASN1Structure() -
getEncoded
return the ASN.1 encoded representation of this object.- Throws:
IOException
-