public class ERSArchiveTimeStamp
extends java.lang.Object
Constructor and Description |
---|
ERSArchiveTimeStamp(org.bouncycastle.asn1.tsp.ArchiveTimeStamp archiveTimeStamp,
DigestCalculatorProvider digCalcProv) |
ERSArchiveTimeStamp(byte[] archiveTimeStamp,
DigestCalculatorProvider digCalcProv) |
Modifier and Type | Method and Description |
---|---|
org.bouncycastle.asn1.x509.AlgorithmIdentifier |
getDigestAlgorithmIdentifier() |
byte[] |
getEncoded()
return the ASN.1 encoded representation of this object.
|
java.util.Date |
getExpiryTime()
Return the not-after date for the time-stamp's signing certificate
if it is present.
|
java.util.Date |
getGenTime()
Return the generation time of the time-stamp associated with
this archive time stamp.
|
X509CertificateHolder |
getSigningCertificate()
Return the TimeStamp signing certificate if it is present.
|
TimeStampToken |
getTimeStampToken() |
boolean |
isContaining(ERSData data,
java.util.Date atDate) |
org.bouncycastle.asn1.tsp.ArchiveTimeStamp |
toASN1Structure() |
void |
validate(SignerInformationVerifier verifier)
Validate the time stamp associated with this ArchiveTimeStamp.
|
void |
validatePresent(boolean isDataGroup,
byte[] hash,
java.util.Date atDate) |
void |
validatePresent(ERSData data,
java.util.Date atDate) |
public ERSArchiveTimeStamp(byte[] archiveTimeStamp, DigestCalculatorProvider digCalcProv) throws TSPException, ERSException
TSPException
ERSException
public ERSArchiveTimeStamp(org.bouncycastle.asn1.tsp.ArchiveTimeStamp archiveTimeStamp, DigestCalculatorProvider digCalcProv) throws TSPException, ERSException
TSPException
ERSException
public org.bouncycastle.asn1.x509.AlgorithmIdentifier getDigestAlgorithmIdentifier()
public void validatePresent(ERSData data, java.util.Date atDate) throws ERSException
ERSException
public boolean isContaining(ERSData data, java.util.Date atDate) throws ERSException
ERSException
public void validatePresent(boolean isDataGroup, byte[] hash, java.util.Date atDate) throws ERSException
ERSException
public TimeStampToken getTimeStampToken()
public X509CertificateHolder getSigningCertificate()
public void validate(SignerInformationVerifier verifier) throws TSPException
verifier
- signer verifier for the contained time stamp.TSPException
- in case of validation failure or error.public java.util.Date getGenTime()
public java.util.Date getExpiryTime()
public org.bouncycastle.asn1.tsp.ArchiveTimeStamp toASN1Structure()
public byte[] getEncoded() throws java.io.IOException
java.io.IOException