Class CAdESTimestampSource
java.lang.Object
eu.europa.esig.dss.spi.validation.timestamp.AbstractTimestampSource
eu.europa.esig.dss.spi.validation.timestamp.SignatureTimestampSource<CAdESSignature,CAdESAttribute>
eu.europa.esig.dss.cades.validation.timestamp.CAdESTimestampSource
- All Implemented Interfaces:
TimestampSource
,Serializable
- Direct Known Subclasses:
PAdESTimestampSource
The timestamp source for a CAdES signature
- See Also:
-
Field Summary
Fields inherited from class eu.europa.esig.dss.spi.validation.timestamp.SignatureTimestampSource
archiveTimestamps, certificateSource, contentTimestamps, crlSource, detachedEvidenceRecords, detachedTimestamps, embeddedEvidenceRecords, ocspSource, refsOnlyTimestamps, sigAndRefsTimestamps, signature, signatureTimestamps, unsignedPropertiesReferences
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuildCRLIdentifiers
(org.bouncycastle.asn1.x509.CertificateList... crlVals) Builds a list of CRL identifiers for the givenrevVals
protected List
<OCSPResponseBinary> buildOCSPIdentifiers
(org.bouncycastle.cert.ocsp.BasicOCSPResp... ocspVals) Builds a list of OCSP identifiers for the givenocspVals
protected SignatureProperties
<CAdESAttribute> Creates the 'signed-signature-properties' element of the signatureprotected SignatureProperties
<CAdESAttribute> Creates the 'unsigned-signature-properties' element of the signatureprotected List
<TimestampedReference> getArchiveTimestampReferences
(List<TimestampToken> previousTimestamps) Returns a list of time-stamped references for an archival time-stampprotected ArchiveTimestampType
getArchiveTimestampType
(CAdESAttribute unsignedAttribute) ReturnsArchiveTimestampType
for the givenunsignedAttribute
protected List
<CertificateRef> getCertificateRefs
(CAdESAttribute unsignedAttribute) Returns a list ofCertificateRef
s from the givenunsignedAttribute
protected List
<TimestampedReference> getCounterSignatureReferences
(AdvancedSignature counterSignature) Returns a list of references extracted from a counter signatureprotected List
<AdvancedSignature> getCounterSignatures
(CAdESAttribute unsignedAttribute) Extracts Counter Signatures from the givenunsignedAttribute
getCRLRefs
(CAdESAttribute unsignedAttribute) Returns a list of CRL revocation refs from the givenunsignedAttribute
protected List
<Identifier> getEncapsulatedCertificateIdentifiers
(CAdESAttribute unsignedAttribute) Returns a list ofIdentifier
s obtained from the givenunsignedAttribute
getEncapsulatedCRLIdentifiers
(CAdESAttribute unsignedAttribute) Returns a list ofCRLBinary
s obtained from the givenunsignedAttribute
protected List
<OCSPResponseBinary> getEncapsulatedOCSPIdentifiers
(CAdESAttribute unsignedAttribute) Returns a list ofOCSPResponseBinary
s obtained from the givenunsignedAttribute
getOCSPRefs
(CAdESAttribute unsignedAttribute) Returns a list of OCSP revocation refs from the givenunsignedAttribute
protected List
<TimestampedReference> Returns a list of allTimestampedReference
s found into CMS SignedData of the signature NOTE: used only in ASiC-E CAdESprotected CAdESTimestampMessageDigestBuilder
getTimestampMessageImprintDigestBuilder
(DigestAlgorithm digestAlgorithm) Returns aTimestampMessageDigestBuilder
to compute message digest with the providedDigestAlgorithm
protected CAdESTimestampMessageDigestBuilder
getTimestampMessageImprintDigestBuilder
(TimestampToken timestampToken) Returns a relatedTimestampMessageDigestBuilder
protected void
incorporateArchiveTimestampReferences
(TimestampToken timestampToken, List<TimestampToken> previousTimestamps) The method incorporates all the timestamped references for the given archivetimestampToken
protected boolean
isAllDataObjectsTimestamp
(CAdESAttribute signedAttribute) Determines if the givensignedAttribute
is an instance of "data-objects-timestamp" element NOTE: Applicable only for XAdESprotected boolean
isArchiveTimestamp
(CAdESAttribute unsignedAttribute) Determines if the givenunsignedAttribute
is an instance of "archive-timestamp" elementprotected boolean
isAttrAuthoritiesCertValues
(CAdESAttribute unsignedAttribute) Determines if the givenunsignedAttribute
is an instance of "AttrAuthoritiesCertValues" elementprotected boolean
isAttributeCertificateRef
(CAdESAttribute unsignedAttribute) Determines if the givenunsignedAttribute
is an instance of "attribute-certificate-ref" elementprotected boolean
isAttributeRevocationRef
(CAdESAttribute unsignedAttribute) Determines if the givenunsignedAttribute
is an instance of "attribute-revocation-ref" elementprotected boolean
isAttributeRevocationValues
(CAdESAttribute unsignedAttribute) Determines if the givenunsignedAttribute
is an instance of "AttributeRevocationValues" elementprotected boolean
isCertificateValues
(CAdESAttribute unsignedAttribute) Determines if the givenunsignedAttribute
is an instance of "certificate-values" elementprotected boolean
isCompleteCertificateRef
(CAdESAttribute unsignedAttribute) Determines if the givenunsignedAttribute
is an instance of "complete-certificate-ref" elementprotected boolean
isCompleteRevocationRef
(CAdESAttribute unsignedAttribute) Determines if the givenunsignedAttribute
is an instance of "complete-revocation-ref" elementprotected boolean
isContentTimestamp
(CAdESAttribute signedAttribute) Determines if the givensignedAttribute
is an instance of "content-timestamp" element NOTE: Applicable only for CAdESprotected boolean
isCounterSignature
(CAdESAttribute unsignedAttribute) Determines if the givenunsignedAttribute
is an instance of "counter-signature" elementprotected boolean
isEvidenceRecord
(CAdESAttribute unsignedAttribute) Determines if the givenunsignedAttribute
is an instance of "evidence-record" elementprotected boolean
isIndividualDataObjectsTimestamp
(CAdESAttribute signedAttribute) Determines if the givensignedAttribute
is an instance of "individual-data-objects-timestamp" element NOTE: Applicable only for XAdESprotected boolean
isRefsOnlyTimestamp
(CAdESAttribute unsignedAttribute) Determines if the givenunsignedAttribute
is an instance of "refs-only-timestamp" elementprotected boolean
isRevocationValues
(CAdESAttribute unsignedAttribute) Determines if the givenunsignedAttribute
is an instance of "revocation-values" elementprotected boolean
isSigAndRefsTimestamp
(CAdESAttribute unsignedAttribute) Determines if the givenunsignedAttribute
is an instance of "sig-and-refs-timestamp" elementprotected boolean
isSignaturePolicyStore
(CAdESAttribute unsignedAttribute) Determines if the givenunsignedAttribute
is an instance of "signature-policy-store" elementprotected boolean
isSignatureTimestamp
(CAdESAttribute unsignedAttribute) Determines if the givenunsignedAttribute
is an instance of "signature-timestamp" elementprotected boolean
isTimeStampValidationData
(CAdESAttribute unsignedAttribute) Determines if the givenunsignedAttribute
is an instance of "timestamp-validation-data" elementprotected List
<EvidenceRecord> makeEvidenceRecords
(CAdESAttribute signatureAttribute, List<TimestampedReference> references) Creates a list of evidence records from the providedsignatureAttribute
protected TimestampToken
makeTimestampToken
(CAdESAttribute signatureAttribute, TimestampType timestampType, List<TimestampedReference> references) Creates a timestamp token from the providedsignatureAttribute
Methods inherited from class eu.europa.esig.dss.spi.validation.timestamp.SignatureTimestampSource
addExternalEvidenceRecord, addExternalTimestamp, createAndValidate, getAllEvidenceRecords, getAllTimestamps, getAllTimestampsExceptLastArchiveTimestamp, getArchiveTimestamps, getAttributeOrder, getContentTimestamps, getCounterSignaturesReferences, getDetachedEvidenceRecords, getDetachedTimestamps, getDocumentTimestamps, getEmbeddedEvidenceRecords, getEncapsulatedReferencesFromTimestamps, getKeyInfoReferences, getSignatureReference, getSignatureTimestampReferences, getSignatureTimestamps, getSignedSignatureProperties, getSignerDataReferences, getSigningCertificateTimestampReferences, getTimestampCertificateSources, getTimestampCertificateSourcesExceptLastArchiveTimestamp, getTimestampCRLSources, getTimestampedCertificateRefs, getTimestampedCertificateValues, getTimestampedRevocationRefs, getTimestampedRevocationValues, getTimestampOCSPSources, getTimestampScopes, getTimestampsX1, getTimestampsX2, getTimestampValidationData, getUnsignedPropertiesReferences, getUnsignedSignatureProperties, isTimestamped, makeTimestampTokens, makeTimestampTokens, makeTimestampTokens, makeTimestampTokensFromSignedAttributes, makeTimestampTokensFromUnsignedAttributes, populateSources, populateSources, populateSources, validateTimestamps
Methods inherited from class eu.europa.esig.dss.spi.validation.timestamp.AbstractTimestampSource
addReference, addReference, addReferences, createReferenceForCertificate, createReferenceForIdentifier, createReferencesForCertificateRefs, createReferencesForCertificates, createReferencesForCRLBinaries, createReferencesForCRLRefs, createReferencesForIdentifiers, createReferencesForOCSPBinaries, createReferencesForOCSPBinary, createReferencesForOCSPRefs, getEncapsulatedValuesFromTimestamp, getReferencesFromTimestamp, getSignerDataTimestampedReferences, processEmbeddedEvidenceRecords, processEvidenceRecordTimestamps
-
Constructor Details
-
CAdESTimestampSource
The default constructor- Parameters:
signature
-CAdESSignature
to get timestamps for
-
-
Method Details
-
getTimestampMessageImprintDigestBuilder
protected CAdESTimestampMessageDigestBuilder getTimestampMessageImprintDigestBuilder(DigestAlgorithm digestAlgorithm) Description copied from class:SignatureTimestampSource
Returns aTimestampMessageDigestBuilder
to compute message digest with the providedDigestAlgorithm
- Specified by:
getTimestampMessageImprintDigestBuilder
in classSignatureTimestampSource<CAdESSignature,
CAdESAttribute> - Parameters:
digestAlgorithm
-DigestAlgorithm
to use for message-digest computation- Returns:
TimestampMessageDigestBuilder
-
getTimestampMessageImprintDigestBuilder
protected CAdESTimestampMessageDigestBuilder getTimestampMessageImprintDigestBuilder(TimestampToken timestampToken) Description copied from class:SignatureTimestampSource
Returns a relatedTimestampMessageDigestBuilder
- Specified by:
getTimestampMessageImprintDigestBuilder
in classSignatureTimestampSource<CAdESSignature,
CAdESAttribute> - Parameters:
timestampToken
-TimestampToken
to get message-imprint digest builder for- Returns:
TimestampMessageDigestBuilder
-
buildSignedSignatureProperties
Description copied from class:SignatureTimestampSource
Creates the 'signed-signature-properties' element of the signature- Specified by:
buildSignedSignatureProperties
in classSignatureTimestampSource<CAdESSignature,
CAdESAttribute> - Returns:
SignatureProperties
-
buildUnsignedSignatureProperties
Description copied from class:SignatureTimestampSource
Creates the 'unsigned-signature-properties' element of the signature- Specified by:
buildUnsignedSignatureProperties
in classSignatureTimestampSource<CAdESSignature,
CAdESAttribute> - Returns:
SignatureProperties
-
isContentTimestamp
Description copied from class:SignatureTimestampSource
Determines if the givensignedAttribute
is an instance of "content-timestamp" element NOTE: Applicable only for CAdES- Specified by:
isContentTimestamp
in classSignatureTimestampSource<CAdESSignature,
CAdESAttribute> - Parameters:
signedAttribute
-SignatureAttribute
to process- Returns:
- TRUE if the
unsignedAttribute
is a Data Objects Timestamp, FALSE otherwise
-
isAllDataObjectsTimestamp
Description copied from class:SignatureTimestampSource
Determines if the givensignedAttribute
is an instance of "data-objects-timestamp" element NOTE: Applicable only for XAdES- Specified by:
isAllDataObjectsTimestamp
in classSignatureTimestampSource<CAdESSignature,
CAdESAttribute> - Parameters:
signedAttribute
-SignatureAttribute
to process- Returns:
- TRUE if the
unsignedAttribute
is a Data Objects Timestamp, FALSE otherwise
-
isIndividualDataObjectsTimestamp
Description copied from class:SignatureTimestampSource
Determines if the givensignedAttribute
is an instance of "individual-data-objects-timestamp" element NOTE: Applicable only for XAdES- Specified by:
isIndividualDataObjectsTimestamp
in classSignatureTimestampSource<CAdESSignature,
CAdESAttribute> - Parameters:
signedAttribute
-SignatureAttribute
to process- Returns:
- TRUE if the
unsignedAttribute
is a Data Objects Timestamp, FALSE otherwise
-
isSignatureTimestamp
Description copied from class:SignatureTimestampSource
Determines if the givenunsignedAttribute
is an instance of "signature-timestamp" element- Specified by:
isSignatureTimestamp
in classSignatureTimestampSource<CAdESSignature,
CAdESAttribute> - Parameters:
unsignedAttribute
-SignatureAttribute
to process- Returns:
- TRUE if the
unsignedAttribute
is a Signature Timestamp, FALSE otherwise
-
isCompleteCertificateRef
Description copied from class:SignatureTimestampSource
Determines if the givenunsignedAttribute
is an instance of "complete-certificate-ref" element- Specified by:
isCompleteCertificateRef
in classSignatureTimestampSource<CAdESSignature,
CAdESAttribute> - Parameters:
unsignedAttribute
-SignatureAttribute
to process- Returns:
- TRUE if the
unsignedAttribute
is a Complete Certificate Ref, FALSE otherwise
-
isAttributeCertificateRef
Description copied from class:SignatureTimestampSource
Determines if the givenunsignedAttribute
is an instance of "attribute-certificate-ref" element- Specified by:
isAttributeCertificateRef
in classSignatureTimestampSource<CAdESSignature,
CAdESAttribute> - Parameters:
unsignedAttribute
-SignatureAttribute
to process- Returns:
- TRUE if the
unsignedAttribute
is an Attribute Certificate Ref, FALSE otherwise
-
isCompleteRevocationRef
Description copied from class:SignatureTimestampSource
Determines if the givenunsignedAttribute
is an instance of "complete-revocation-ref" element- Specified by:
isCompleteRevocationRef
in classSignatureTimestampSource<CAdESSignature,
CAdESAttribute> - Parameters:
unsignedAttribute
-SignatureAttribute
to process- Returns:
- TRUE if the
unsignedAttribute
is a Complete Revocation Ref, FALSE otherwise
-
isAttributeRevocationRef
Description copied from class:SignatureTimestampSource
Determines if the givenunsignedAttribute
is an instance of "attribute-revocation-ref" element- Specified by:
isAttributeRevocationRef
in classSignatureTimestampSource<CAdESSignature,
CAdESAttribute> - Parameters:
unsignedAttribute
-SignatureAttribute
to process- Returns:
- TRUE if the
unsignedAttribute
is an Attribute Revocation Ref, FALSE otherwise
-
isRefsOnlyTimestamp
Description copied from class:SignatureTimestampSource
Determines if the givenunsignedAttribute
is an instance of "refs-only-timestamp" element- Specified by:
isRefsOnlyTimestamp
in classSignatureTimestampSource<CAdESSignature,
CAdESAttribute> - Parameters:
unsignedAttribute
-SignatureAttribute
to process- Returns:
- TRUE if the
unsignedAttribute
is a Refs Only TimeStamp, FALSE otherwise
-
isSigAndRefsTimestamp
Description copied from class:SignatureTimestampSource
Determines if the givenunsignedAttribute
is an instance of "sig-and-refs-timestamp" element- Specified by:
isSigAndRefsTimestamp
in classSignatureTimestampSource<CAdESSignature,
CAdESAttribute> - Parameters:
unsignedAttribute
-SignatureAttribute
to process- Returns:
- TRUE if the
unsignedAttribute
is a Sig And Refs TimeStamp, FALSE otherwise
-
isCertificateValues
Description copied from class:SignatureTimestampSource
Determines if the givenunsignedAttribute
is an instance of "certificate-values" element- Specified by:
isCertificateValues
in classSignatureTimestampSource<CAdESSignature,
CAdESAttribute> - Parameters:
unsignedAttribute
-SignatureAttribute
to process- Returns:
- TRUE if the
unsignedAttribute
is a Certificate Values, FALSE otherwise
-
isRevocationValues
Description copied from class:SignatureTimestampSource
Determines if the givenunsignedAttribute
is an instance of "revocation-values" element- Specified by:
isRevocationValues
in classSignatureTimestampSource<CAdESSignature,
CAdESAttribute> - Parameters:
unsignedAttribute
-SignatureAttribute
to process- Returns:
- TRUE if the
unsignedAttribute
is a Revocation Values, FALSE otherwise
-
isAttrAuthoritiesCertValues
Description copied from class:SignatureTimestampSource
Determines if the givenunsignedAttribute
is an instance of "AttrAuthoritiesCertValues" element- Specified by:
isAttrAuthoritiesCertValues
in classSignatureTimestampSource<CAdESSignature,
CAdESAttribute> - Parameters:
unsignedAttribute
-SignatureAttribute
to process- Returns:
- TRUE if the
unsignedAttribute
is an AttrAuthoritiesCertValues, FALSE otherwise
-
isAttributeRevocationValues
Description copied from class:SignatureTimestampSource
Determines if the givenunsignedAttribute
is an instance of "AttributeRevocationValues" element- Specified by:
isAttributeRevocationValues
in classSignatureTimestampSource<CAdESSignature,
CAdESAttribute> - Parameters:
unsignedAttribute
-SignatureAttribute
to process- Returns:
- TRUE if the
unsignedAttribute
is an AttributeRevocationValues, FALSE otherwise
-
isArchiveTimestamp
Description copied from class:SignatureTimestampSource
Determines if the givenunsignedAttribute
is an instance of "archive-timestamp" element- Specified by:
isArchiveTimestamp
in classSignatureTimestampSource<CAdESSignature,
CAdESAttribute> - Parameters:
unsignedAttribute
-SignatureAttribute
to process- Returns:
- TRUE if the
unsignedAttribute
is an Archive TimeStamp, FALSE otherwise
-
isTimeStampValidationData
Description copied from class:SignatureTimestampSource
Determines if the givenunsignedAttribute
is an instance of "timestamp-validation-data" element- Specified by:
isTimeStampValidationData
in classSignatureTimestampSource<CAdESSignature,
CAdESAttribute> - Parameters:
unsignedAttribute
-SignatureTimestampSource
to process- Returns:
- TRUE if the
unsignedAttribute
is a TimeStamp Validation Data, FALSE otherwise
-
isCounterSignature
Description copied from class:SignatureTimestampSource
Determines if the givenunsignedAttribute
is an instance of "counter-signature" element- Specified by:
isCounterSignature
in classSignatureTimestampSource<CAdESSignature,
CAdESAttribute> - Parameters:
unsignedAttribute
-SignatureTimestampSource
to process- Returns:
- TRUE if the
unsignedAttribute
is a Counter signature, FALSE otherwise
-
isSignaturePolicyStore
Description copied from class:SignatureTimestampSource
Determines if the givenunsignedAttribute
is an instance of "signature-policy-store" element- Specified by:
isSignaturePolicyStore
in classSignatureTimestampSource<CAdESSignature,
CAdESAttribute> - Parameters:
unsignedAttribute
-SignatureTimestampSource
to process- Returns:
- TRUE if the
unsignedAttribute
is a Counter signature, FALSE otherwise
-
isEvidenceRecord
Description copied from class:SignatureTimestampSource
Determines if the givenunsignedAttribute
is an instance of "evidence-record" element- Specified by:
isEvidenceRecord
in classSignatureTimestampSource<CAdESSignature,
CAdESAttribute> - Parameters:
unsignedAttribute
-SignatureTimestampSource
to process- Returns:
- TRUE if the
unsignedAttribute
is an evidence record, FALSE otherwise
-
makeTimestampToken
protected TimestampToken makeTimestampToken(CAdESAttribute signatureAttribute, TimestampType timestampType, List<TimestampedReference> references) Description copied from class:SignatureTimestampSource
Creates a timestamp token from the providedsignatureAttribute
- Specified by:
makeTimestampToken
in classSignatureTimestampSource<CAdESSignature,
CAdESAttribute> - Parameters:
signatureAttribute
-SignatureAttribute
to create timestamp fromtimestampType
- a targetTimestampType
references
- list ofTimestampedReference
s covered by the current timestamp- Returns:
TimestampToken
-
makeEvidenceRecords
protected List<EvidenceRecord> makeEvidenceRecords(CAdESAttribute signatureAttribute, List<TimestampedReference> references) Description copied from class:SignatureTimestampSource
Creates a list of evidence records from the providedsignatureAttribute
- Specified by:
makeEvidenceRecords
in classSignatureTimestampSource<CAdESSignature,
CAdESAttribute> - Parameters:
signatureAttribute
-SignatureAttribute
to create evidence records fromreferences
- list ofTimestampedReference
s covered by the current evidence record(s)- Returns:
- a list of
EvidenceRecord
s
-
incorporateArchiveTimestampReferences
protected void incorporateArchiveTimestampReferences(TimestampToken timestampToken, List<TimestampToken> previousTimestamps) Description copied from class:SignatureTimestampSource
The method incorporates all the timestamped references for the given archivetimestampToken
- Overrides:
incorporateArchiveTimestampReferences
in classSignatureTimestampSource<CAdESSignature,
CAdESAttribute> - Parameters:
timestampToken
-TimestampToken
representing an Archive TST to add references intopreviousTimestamps
- a list of previously createdTimestampToken
s
-
getArchiveTimestampReferences
protected List<TimestampedReference> getArchiveTimestampReferences(List<TimestampToken> previousTimestamps) Description copied from class:SignatureTimestampSource
Returns a list of time-stamped references for an archival time-stamp- Overrides:
getArchiveTimestampReferences
in classSignatureTimestampSource<CAdESSignature,
CAdESAttribute> - Parameters:
previousTimestamps
- a list of previousTimestampToken
s- Returns:
- a list of
TimestampedReference
s
-
getSignatureSignedDataReferences
Description copied from class:SignatureTimestampSource
Returns a list of allTimestampedReference
s found into CMS SignedData of the signature NOTE: used only in ASiC-E CAdES- Overrides:
getSignatureSignedDataReferences
in classSignatureTimestampSource<CAdESSignature,
CAdESAttribute> - Returns:
- list of
TimestampedReference
s
-
getCertificateRefs
Description copied from class:SignatureTimestampSource
Returns a list ofCertificateRef
s from the givenunsignedAttribute
- Specified by:
getCertificateRefs
in classSignatureTimestampSource<CAdESSignature,
CAdESAttribute> - Parameters:
unsignedAttribute
-SignatureTimestampSource
to get certRefs from- Returns:
- list of
CertificateRef
s
-
getCRLRefs
Description copied from class:SignatureTimestampSource
Returns a list of CRL revocation refs from the givenunsignedAttribute
- Specified by:
getCRLRefs
in classSignatureTimestampSource<CAdESSignature,
CAdESAttribute> - Parameters:
unsignedAttribute
-SignatureTimestampSource
to get CRLRef- Returns:
- list of
CRLRef
s
-
getOCSPRefs
Description copied from class:SignatureTimestampSource
Returns a list of OCSP revocation refs from the givenunsignedAttribute
- Specified by:
getOCSPRefs
in classSignatureTimestampSource<CAdESSignature,
CAdESAttribute> - Parameters:
unsignedAttribute
-SignatureTimestampSource
to get OCSPRefs from- Returns:
- list of
OCSPRef
s
-
getEncapsulatedCertificateIdentifiers
Description copied from class:SignatureTimestampSource
Returns a list ofIdentifier
s obtained from the givenunsignedAttribute
- Specified by:
getEncapsulatedCertificateIdentifiers
in classSignatureTimestampSource<CAdESSignature,
CAdESAttribute> - Parameters:
unsignedAttribute
-SignatureTimestampSource
to get certificate identifiers from- Returns:
- list of
Identifier
s
-
getEncapsulatedCRLIdentifiers
Description copied from class:SignatureTimestampSource
Returns a list ofCRLBinary
s obtained from the givenunsignedAttribute
- Specified by:
getEncapsulatedCRLIdentifiers
in classSignatureTimestampSource<CAdESSignature,
CAdESAttribute> - Parameters:
unsignedAttribute
-SignatureTimestampSource
to get CRL identifiers from- Returns:
- list of
CRLBinary
s
-
buildCRLIdentifiers
-
getEncapsulatedOCSPIdentifiers
Description copied from class:SignatureTimestampSource
Returns a list ofOCSPResponseBinary
s obtained from the givenunsignedAttribute
- Specified by:
getEncapsulatedOCSPIdentifiers
in classSignatureTimestampSource<CAdESSignature,
CAdESAttribute> - Parameters:
unsignedAttribute
-SignatureTimestampSource
to get OCSP identifiers from- Returns:
- list of
OCSPResponseBinary
s
-
buildOCSPIdentifiers
protected List<OCSPResponseBinary> buildOCSPIdentifiers(org.bouncycastle.cert.ocsp.BasicOCSPResp... ocspVals) Builds a list of OCSP identifiers for the givenocspVals
- Parameters:
ocspVals
- instances ofBasicOCSPResponse
representing OCSP basic responses- Returns:
- a list of
OCSPResponseBinary
-
getArchiveTimestampType
Description copied from class:SignatureTimestampSource
ReturnsArchiveTimestampType
for the givenunsignedAttribute
- Specified by:
getArchiveTimestampType
in classSignatureTimestampSource<CAdESSignature,
CAdESAttribute> - Parameters:
unsignedAttribute
-SignatureTimestampSource
to get archive timestamp type for- Returns:
ArchiveTimestampType
-
getCounterSignatures
Description copied from class:SignatureTimestampSource
Extracts Counter Signatures from the givenunsignedAttribute
- Specified by:
getCounterSignatures
in classSignatureTimestampSource<CAdESSignature,
CAdESAttribute> - Parameters:
unsignedAttribute
-SignatureTimestampSource
containing counter signatures- Returns:
- a list of
AdvancedSignature
containing counter signatures
-
getCounterSignatureReferences
protected List<TimestampedReference> getCounterSignatureReferences(AdvancedSignature counterSignature) Description copied from class:SignatureTimestampSource
Returns a list of references extracted from a counter signature- Overrides:
getCounterSignatureReferences
in classSignatureTimestampSource<CAdESSignature,
CAdESAttribute> - Parameters:
counterSignature
-AdvancedSignature
representing a counter signature- Returns:
- a list of
TimestampedReference
s
-