public class TimestampToken extends Token
extraInfo, issuerToken, issuerX500Principal, signatureAlgorithm, signatureInvalidityReason, signatureValid| Constructor and Description |
|---|
TimestampToken(byte[] binaries,
TimestampType type,
CertificatePool certPool) |
TimestampToken(org.bouncycastle.cms.CMSSignedData cms,
TimestampType type,
CertificatePool certPool) |
TimestampToken(org.bouncycastle.tsp.TimeStampToken timeStamp,
TimestampType type,
CertificatePool certPool)
Constructor with an indication of the timestamp type.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAbbreviation() |
ArchiveTimestampType |
getArchiveTimestampType() |
String |
getCanonicalizationMethod()
Applies only fro XAdES timestamps
|
List<CertificateToken> |
getCertificates()
Returns the list of wrapped certificates.
|
byte[] |
getEncoded() |
String |
getEncodedSignedDataDigestValue()
Retrieves the encoded signed data digest value.
|
Date |
getGenerationTime()
Retrieves the timestamp generation time.
|
int |
getHashCode()
Used only with XAdES timestamps.
|
DigestAlgorithm |
getSignedDataDigestAlgo()
Retrieves the
DigestAlgorithm used to generate the digest value to timestamp. |
List<TimestampReference> |
getTimestampedReferences() |
List<TimestampInclude> |
getTimestampIncludes() |
TimestampType |
getTimeStampType()
Retrieves the type of the timestamp token.
|
org.bouncycastle.asn1.cms.AttributeTable |
getUnsignedAttributes() |
Boolean |
isMessageImprintDataFound() |
Boolean |
isMessageImprintDataIntact()
The method
matchData must be invoked previously. |
boolean |
isProcessed() |
boolean |
isSignedBy(CertificateToken issuerToken) |
boolean |
matchData(byte[] data)
Checks if the
TimeStampToken matches the signed data. |
void |
setArchiveTimestampType(ArchiveTimestampType archiveTimestampType)
Archive timestamps can be of different sub type.
|
void |
setCanonicalizationMethod(String canonicalizationMethod)
Allows to set the canonicalization method used by the timestamp.
|
void |
setHashCode(int hashCode)
Used only with XAdES timestamps.
|
void |
setTimestampedReferences(List<TimestampReference> timestampedReferences)
This method is used to set the timestamped references.
|
void |
setTimestampIncludes(List<TimestampInclude> timestampIncludes) |
String |
toString(String indentStr) |
equals, extraInfo, getDigest, getDSSId, getDSSIdAsString, getIssuerToken, getIssuerX500Principal, getSignatureAlgorithm, getValidationInfo, hashCode, isSelfSigned, isSignatureValid, isTrusted, toStringpublic TimestampToken(byte[] binaries,
TimestampType type,
CertificatePool certPool)
throws org.bouncycastle.tsp.TSPException,
IOException,
org.bouncycastle.cms.CMSException
org.bouncycastle.tsp.TSPExceptionIOExceptionorg.bouncycastle.cms.CMSExceptionpublic TimestampToken(org.bouncycastle.cms.CMSSignedData cms,
TimestampType type,
CertificatePool certPool)
throws org.bouncycastle.tsp.TSPException,
IOException
org.bouncycastle.tsp.TSPExceptionIOExceptionpublic TimestampToken(org.bouncycastle.tsp.TimeStampToken timeStamp,
TimestampType type,
CertificatePool certPool)
TimestampToken.timeStamp - TimeStampTokentype - TimestampTypecertPool - CertificatePool which is used to identify the signing certificate of the timestamppublic String getAbbreviation()
getAbbreviation in class Tokenpublic final boolean isSignedBy(CertificateToken issuerToken)
isSignedBy in class Tokenpublic boolean matchData(byte[] data)
TimeStampToken matches the signed data.data - the array of byte representing the timestamped datapublic boolean isProcessed()
public TimestampType getTimeStampType()
TimestampTypepublic Date getGenerationTime()
Datepublic DigestAlgorithm getSignedDataDigestAlgo()
DigestAlgorithm used to generate the digest value to timestamp.DigestAlgorithmpublic String getEncodedSignedDataDigestValue()
Stringpublic Boolean isMessageImprintDataFound()
public Boolean isMessageImprintDataIntact()
matchData must be invoked previously.public List<TimestampReference> getTimestampedReferences()
List of TimestampReferencespublic void setTimestampedReferences(List<TimestampReference> timestampedReferences)
timestampedReferences - List of TimestampReferencepublic ArchiveTimestampType getArchiveTimestampType()
ArchiveTimestampType in the case of an archive timestamp, null otherwisepublic void setArchiveTimestampType(ArchiveTimestampType archiveTimestampType)
archiveTimestampType - ArchiveTimestampTypepublic String getCanonicalizationMethod()
String representing the canonicalization method used by the timestamppublic void setCanonicalizationMethod(String canonicalizationMethod)
canonicalizationMethod - String representing the canonicalization methodpublic byte[] getEncoded()
getEncoded in class Tokenpublic List<TimestampInclude> getTimestampIncludes()
public void setTimestampIncludes(List<TimestampInclude> timestampIncludes)
public List<CertificateToken> getCertificates()
List of CertificateTokenpublic org.bouncycastle.asn1.cms.AttributeTable getUnsignedAttributes()
public void setHashCode(int hashCode)
hashCode - the hash code of the DOM element containing the timestamppublic int getHashCode()
Copyright © 2018. All rights reserved.