Package eu.europa.esig.dss.validation
Interface AdvancedSignature
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
CAdESSignature
,DefaultAdvancedSignature
,PAdESSignature
,XAdESSignature
public interface AdvancedSignature extends Serializable
Provides an abstraction for an Advanced Electronic Signature. This ease the validation process. Every signature
format : XAdES, CAdES and PAdES are treated the same.
-
Method Summary
Modifier and Type Method Description void
addExternalTimestamp(TimestampToken timestamp)
This method allows to add an external timestamp.boolean
areAllSelfSignedCertificates()
Checks if all certificate chains present in the signature are self-signedvoid
checkSignatureIntegrity()
Verifies the signature integrity; checks if the signed content has not been tampered with.void
checkSignaturePolicy(SignaturePolicyProvider signaturePolicyDetector)
void
checkSigningCertificate()
This method checks the protection of the certificates included within the signature (XAdES: KeyInfo) against the substitution attack.List<RevocationRef>
findRefsForRevocationIdentifier(EncapsulatedRevocationTokenIdentifier revocationIdentifier)
Retrieves a list of foundRevocationRef
s for the givenrevocationIdentifier
List<RevocationRef>
findRefsForRevocationToken(RevocationToken revocationToken)
Retrieves a list of foundRevocationRef
s for the givenrevocationToken
void
findSignatureScope(SignatureScopeFinder signatureScopeFinder)
List<EncapsulatedRevocationTokenIdentifier>
getAllFoundRevocationIdentifiers()
Returns a list of allEncapsulatedRevocationTokenIdentifier
s found in CRL and OCSP sourcesSet<RevocationToken>
getAllRevocationTokens()
Retrieves the set of allRevocationToken
s in the signatureList<TimestampToken>
getAllTimestamps()
Returns a list of all timestamps found in the signatureList<TimestampToken>
getArchiveTimestamps()
Returns the archive TimestampsList<CRLRef>
getAttributeRevocationCRLReferences()
Retrieves a list of allCRLRef
s present in 'AttributeRevocationRefs' element NOTE: Applicable only for XAdES and CAdES revocation sourcesList<OCSPRef>
getAttributeRevocationOCSPReferences()
Retrieves a list of allOCSPRef
s present in 'AttributeRevocationRefs' element NOTE: Applicable only for XAdES and CAdES revocation sourcesList<RevocationToken>
getAttributeRevocationTokens()
Retrieves the list of allRevocationToken
s present in 'AttributeRevocationRefs' element NOTE: Applicable only for XAdES and CAdES revocation sourcesList<RevocationToken>
getAttributeRevocationValuesTokens()
Retrieves the list of allRevocationToken
s present in 'AttributeRevocationValues' element NOTE: Applicable only for XAdES revocation sourceCandidatesForSigningCertificate
getCandidatesForSigningCertificate()
Gets an object containing the signing certificate or information indicating why it is impossible to extract it from the signature.List<CertificateToken>
getCertificateListWithinSignatureAndTimestamps()
Returns a list of all certificates found into signature and timestampsList<CertificateRef>
getCertificateRefs()
Retrieve list of certificate refList<CertificateToken>
getCertificates()
Get certificates embedded in the signatureSignatureCertificateSource
getCertificateSource()
Gets a certificate source which contains ALL certificates embedded in the signature.List<SignerRole>
getCertifiedSignerRoles()
Returns the certified roles of the signer.List<SignerRole>
getClaimedSignerRoles()
Returns the claimed roles of the signer.List<RevocationToken>
getCMSSignedDataRevocationTokens()
Retrieves the list of allRevocationToken
s present in the CMS SignedData NOTE: Applicable only for CAdES revocation sourcesCommitmentType
getCommitmentTypeIndication()
This method obtains the information concerning commitment type indication linked to the signatureListCRLSource
getCompleteCRLSource()
Gets a ListCRLSource representing a merged source fromsignatureCRLSourse
and all included to the signature timestamp objectsListOCSPSource
getCompleteOCSPSource()
Gets a ListOCSPSource representing a merged source fromsignatureOCSPSourse
and all included to the signature timestamp objectsList<CRLRef>
getCompleteRevocationCRLReferences()
Retrieves a list of allCRLRef
s present in 'CompleteRevocationRefs' element NOTE: Applicable only for XAdES and CAdES revocation sourcesList<OCSPRef>
getCompleteRevocationOCSPReferences()
Retrieves a list of allOCSPRef
s present in 'CompleteRevocationRefs' element NOTE: Applicable only for XAdES and CAdES revocation sourcesList<RevocationToken>
getCompleteRevocationTokens()
Retrieves the list of allRevocationToken
s present in 'CompleteRevocationRefs' element NOTE: Applicable only for XAdES and CAdES revocation sourcesList<DSSDocument>
getContainerContents()
String
getContentHints()
String
getContentIdentifier()
List<TimestampToken>
getContentTimestamps()
Returns the content timestampsString
getContentType()
Returns the value of the signed attribute content-typeList<AdvancedSignature>
getCounterSignatures()
Returns a list of counter signatures applied to this signatureSignatureCRLSource
getCRLSource()
Gets a CRL source which contains ALL CRLs embedded in the signature.String
getDAIdentifier()
This method returns an identifier provided by the Driving Application (DA) Note: used only for XAdESSignatureLevel
getDataFoundUpToLevel()
List<DSSDocument>
getDetachedContents()
DigestAlgorithm
getDigestAlgorithm()
Retrieves the digest algorithm used for generating the signature.List<TimestampToken>
getDocumentTimestamps()
Returns a list of timestamps defined with the 'DocTimeStamp' type NOTE: applicable only for PAdESList<RevocationToken>
getDSSDictionaryRevocationTokens()
Retrieves the list of allRevocationToken
s present in 'DSS' dictionary NOTE: Applicable only for PAdES revocation sourceSignatureIdentifier
getDSSId()
This method returns theSignatureIdentifier
.EncryptionAlgorithm
getEncryptionAlgorithm()
Retrieves the encryption algorithm used for generating the signature.String
getId()
This method returns the DSS unique signature id.List<DSSDocument>
getManifestedDocuments()
MaskGenerationFunction
getMaskGenerationFunction()
Retrieves the mask generation function used for generating the signature.AdvancedSignature
getMasterSignature()
byte[]
getMessageDigestValue()
String
getMimeType()
Returns the value of the signed attribute mime-typeSignatureOCSPSource
getOCSPSource()
Gets an OCSP source which contains ALL OCSP responses embedded in the signature.List<CertificateRef>
getOrphanCertificateRefs()
Returns a list of orphan certificate refs, that are not associated to anyCertificateToken
List<RevocationRef>
getOrphanRevocationRefs()
Returns a list of all orphanRevocationRef
s found into the signaturePdfRevision
getPdfRevision()
SignaturePolicy
getPolicyId()
Returns the Signature Policy OID from the signature.CertificateToken
getProvidedSigningCertificateToken()
List<ReferenceValidation>
getReferenceValidations()
Returns individual validation foreach reference (XAdES) or for the message-imprint (CAdES)List<RevocationToken>
getRevocationValuesTokens()
Retrieves the list of allRevocationToken
s present in 'RevocationValues' element NOTE: Applicable only for CAdES and XAdES revocation sourcesSignatureAlgorithm
getSignatureAlgorithm()
Retrieves the signature algorithm (or cipher) used for generating the signature.SignatureCryptographicVerification
getSignatureCryptographicVerification()
SignatureDigestReference
getSignatureDigestReference(DigestAlgorithm digestAlgorithm)
Returns a signature reference element as defined in TS 119 442 - V1.1.1 - Electronic Signatures and Infrastructures (ESI), ch.String
getSignatureFilename()
This method returns the signature filename (useful for ASiC and multiple signature files)SignatureForm
getSignatureForm()
Specifies the format of the signatureSignatureLevel[]
getSignatureLevels()
SignatureProductionPlace
getSignatureProductionPlace()
Returns information about the place where the signature was generatedList<SignatureScope>
getSignatureScopes()
List<TimestampToken>
getSignatureTimestamps()
Returns the signature timestampsbyte[]
getSignatureValue()
Returns the digital signature valueList<SignerRole>
getSignerRoles()
Returns the list of roles of the signer.CertificateToken
getSigningCertificateToken()
This method returns the signing certificate token or null if there is no valid signing certificate.Date
getSigningTime()
Returns the signing time included within the signature.String
getStructureValidationResult()
List<CRLRef>
getTimestampRevocationCRLReferences()
Retrieves a list of allCRLRef
s present in a timestamp element NOTE: Applicable only for CAdES revocation sourceList<OCSPRef>
getTimestampRevocationOCSPReferences()
Retrieves a list of allOCSPRef
s present in a timestamp element NOTE: Applicable only for CAdES revocation sourceList<RevocationToken>
getTimestampSignedDataRevocationTokens()
Retrieves the list of allRevocationToken
s present in the Timestamp token SignedData NOTE: Applicable only for CAdES revocation sourcesSignatureTimestampSource
getTimestampSource()
Gets a Signature Timestamp source which contains ALL timestamps embedded in the signature.List<TimestampToken>
getTimestampsX1()
Returns the time-stamp which is placed on the digital signature (XAdES example: ds:SignatureValue element), the signature time-stamp(s) present in the AdES-T form, the certification path references and the revocation status references.List<TimestampToken>
getTimestampsX2()
Returns the time-stamp which is computed over the concatenation of CompleteCertificateRefs and CompleteRevocationRefs elements (XAdES example).List<RevocationToken>
getTimestampValidationDataTokens()
Retrieves the list of allRevocationToken
s present in 'TimestampValidationData/RevocationValues' element NOTE: Applicable only for XAdES revocation sourceList<RevocationToken>
getVRIDictionaryRevocationTokens()
Retrieves the list of allRevocationToken
s present in 'VRI' dictionary NOTE: Applicable only for PAdES revocation sourceboolean
isDataForSignatureLevelPresent(SignatureLevel signatureLevel)
boolean
isDocHashOnlyValidation()
Returns true if the validation of the signature has been performed only on Signer's Document Representation (SDR).boolean
isHashOnlyValidation()
Returns true if the validation of the signature has been performed only on Data To Be Signed Representation (DTBSR).void
prepareTimestamps(ValidationContext validationContext)
void
setContainerContents(List<DSSDocument> containerContents)
This method allows to set the container contents in the case of ASiC signature.void
setDetachedContents(List<DSSDocument> detachedContents)
This method allows to set the signed contents in the case of the detached signature.void
setManifestFiles(List<ManifestFile> manifestFiles)
This method allows to set the manifest files in the case of ASiC-E signature.void
setMasterSignature(AdvancedSignature masterSignature)
This setter allows to indicate the master signature.void
setProvidedSigningCertificateToken(CertificateToken certificateToken)
This method allows to provide a signing certificate to be used in the validation process.void
setSignatureFilename(String signatureFilename)
This method allows to set the signature filename (useful in case of ASiC)void
validateStructure()
This method allows the structure validation of the signature.
-
Method Details
-
getSignatureFilename
String getSignatureFilename()This method returns the signature filename (useful for ASiC and multiple signature files)- Returns:
- the signature filename
-
setSignatureFilename
This method allows to set the signature filename (useful in case of ASiC) -
getDetachedContents
List<DSSDocument> getDetachedContents()- Returns:
- in the case of the detached signature this is the
List
of signed contents.
-
setDetachedContents
This method allows to set the signed contents in the case of the detached signature.- Parameters:
detachedContents
-List
ofDSSDocument
representing the signed detached contents.
-
getContainerContents
List<DSSDocument> getContainerContents()- Returns:
- in case of ASiC signature returns a list of container documents
-
setContainerContents
This method allows to set the container contents in the case of ASiC signature.- Parameters:
containerContents
-List
ofDSSDocument
representing the container contents.
-
setManifestFiles
This method allows to set the manifest files in the case of ASiC-E signature.- Parameters:
manifestFiles
-List
ofManifestFile
s
-
getManifestedDocuments
List<DSSDocument> getManifestedDocuments()- Returns:
- in case of ASiC-E signature returns a list of
DSSDocument
s contained in the related signature manifest
-
getProvidedSigningCertificateToken
CertificateToken getProvidedSigningCertificateToken()- Returns:
- This method returns the provided signing certificate or
null
-
setProvidedSigningCertificateToken
This method allows to provide a signing certificate to be used in the validation process. It can happen in the case of a non-AdES signature without the signing certificate within the signature.- Parameters:
certificateToken
-CertificateToken
representing the signing certificate token.
-
getSignatureForm
SignatureForm getSignatureForm()Specifies the format of the signature -
getSignatureAlgorithm
SignatureAlgorithm getSignatureAlgorithm()Retrieves the signature algorithm (or cipher) used for generating the signature.- Returns:
SignatureAlgorithm
-
getEncryptionAlgorithm
EncryptionAlgorithm getEncryptionAlgorithm()Retrieves the encryption algorithm used for generating the signature.- Returns:
EncryptionAlgorithm
-
getDigestAlgorithm
DigestAlgorithm getDigestAlgorithm()Retrieves the digest algorithm used for generating the signature.- Returns:
DigestAlgorithm
-
getMaskGenerationFunction
MaskGenerationFunction getMaskGenerationFunction()Retrieves the mask generation function used for generating the signature.- Returns:
MaskGenerationFunction
-
getSigningTime
Date getSigningTime()Returns the signing time included within the signature.- Returns:
Date
representing the signing time or null
-
getCertificateSource
SignatureCertificateSource getCertificateSource()Gets a certificate source which contains ALL certificates embedded in the signature.- Returns:
-
getCRLSource
SignatureCRLSource getCRLSource()Gets a CRL source which contains ALL CRLs embedded in the signature.- Returns:
SignatureCRLSource
-
getOCSPSource
SignatureOCSPSource getOCSPSource()Gets an OCSP source which contains ALL OCSP responses embedded in the signature.- Returns:
SignatureOCSPSource
-
getCompleteCRLSource
ListCRLSource getCompleteCRLSource()Gets a ListCRLSource representing a merged source fromsignatureCRLSourse
and all included to the signature timestamp objects- Returns:
ListCRLSource
-
getCompleteOCSPSource
ListOCSPSource getCompleteOCSPSource()Gets a ListOCSPSource representing a merged source fromsignatureOCSPSourse
and all included to the signature timestamp objects- Returns:
ListOCSPSource
-
getTimestampSource
SignatureTimestampSource getTimestampSource()Gets a Signature Timestamp source which contains ALL timestamps embedded in the signature.- Returns:
SignatureTimestampSource
-
getCandidatesForSigningCertificate
CandidatesForSigningCertificate getCandidatesForSigningCertificate()Gets an object containing the signing certificate or information indicating why it is impossible to extract it from the signature. If the signing certificate is identified then it is cached and the subsequent calls to this method will return this cached value. This method never returns null.- Returns:
-
setMasterSignature
This setter allows to indicate the master signature. It means that this is a countersignature.- Parameters:
masterSignature
-AdvancedSignature
-
getMasterSignature
AdvancedSignature getMasterSignature()- Returns:
AdvancedSignature
-
getSigningCertificateToken
CertificateToken getSigningCertificateToken()This method returns the signing certificate token or null if there is no valid signing certificate. Note that to determinate the signing certificate the signature must be validated: the methodcheckSignatureIntegrity
must be called.- Returns:
-
checkSignatureIntegrity
void checkSignatureIntegrity()Verifies the signature integrity; checks if the signed content has not been tampered with. In the case of a non-AdES signature no including the signing certificate then the latter must be provided by callingsetProvidedSigningCertificateToken
In the case of a detached signature the signed content must be provided by callingsetProvidedSigningCertificateToken
-
getSignatureCryptographicVerification
SignatureCryptographicVerification getSignatureCryptographicVerification()- Returns:
- SignatureCryptographicVerification with all the information collected during the validation process.
-
checkSigningCertificate
void checkSigningCertificate()This method checks the protection of the certificates included within the signature (XAdES: KeyInfo) against the substitution attack. -
getPolicyId
SignaturePolicy getPolicyId()Returns the Signature Policy OID from the signature.- Returns:
SignaturePolicy
-
getSignatureProductionPlace
SignatureProductionPlace getSignatureProductionPlace()Returns information about the place where the signature was generated- Returns:
SignatureProductionPlace
-
getCommitmentTypeIndication
CommitmentType getCommitmentTypeIndication()This method obtains the information concerning commitment type indication linked to the signature- Returns:
CommitmentType
-
getContentType
String getContentType()Returns the value of the signed attribute content-type- Returns:
- content type as
String
-
getMimeType
String getMimeType()Returns the value of the signed attribute mime-type- Returns:
- mime type as
String
-
getContentIdentifier
String getContentIdentifier()- Returns:
- content identifier as
String
-
getContentHints
String getContentHints()- Returns:
- content hints as
String
-
getSignerRoles
List<SignerRole> getSignerRoles()Returns the list of roles of the signer.- Returns:
- list of the
SignerRole
s
-
getClaimedSignerRoles
List<SignerRole> getClaimedSignerRoles()Returns the claimed roles of the signer.- Returns:
- list of the
SignerRole
s
-
getCertifiedSignerRoles
List<SignerRole> getCertifiedSignerRoles()Returns the certified roles of the signer.- Returns:
- list of the
SignerRole
s
-
getCertificates
List<CertificateToken> getCertificates()Get certificates embedded in the signature- Returns:
- a list of certificate contained within the signature
-
getCertificateListWithinSignatureAndTimestamps
List<CertificateToken> getCertificateListWithinSignatureAndTimestamps()Returns a list of all certificates found into signature and timestamps- Returns:
- list of
CertificateToken
s
-
getContentTimestamps
List<TimestampToken> getContentTimestamps()Returns the content timestamps- Returns:
List
ofTimestampToken
-
getSignatureTimestamps
List<TimestampToken> getSignatureTimestamps()Returns the signature timestamps- Returns:
List
ofTimestampToken
-
getTimestampsX1
List<TimestampToken> getTimestampsX1()Returns the time-stamp which is placed on the digital signature (XAdES example: ds:SignatureValue element), the signature time-stamp(s) present in the AdES-T form, the certification path references and the revocation status references.- Returns:
List
ofTimestampToken
-
getTimestampsX2
List<TimestampToken> getTimestampsX2()Returns the time-stamp which is computed over the concatenation of CompleteCertificateRefs and CompleteRevocationRefs elements (XAdES example).- Returns:
List
ofTimestampToken
-
getArchiveTimestamps
List<TimestampToken> getArchiveTimestamps()Returns the archive Timestamps- Returns:
List
ofTimestampToken
s
-
getDocumentTimestamps
List<TimestampToken> getDocumentTimestamps()Returns a list of timestamps defined with the 'DocTimeStamp' type NOTE: applicable only for PAdES- Returns:
List
ofTimestampToken
s
-
getAllTimestamps
List<TimestampToken> getAllTimestamps()Returns a list of all timestamps found in the signature- Returns:
List
ofTimestampToken
s
-
addExternalTimestamp
This method allows to add an external timestamp. The given timestamp must be processed before.- Parameters:
timestamp
- the timestamp token
-
getCounterSignatures
List<AdvancedSignature> getCounterSignatures()Returns a list of counter signatures applied to this signature- Returns:
- a
List
ofAdvancedSignatures
representing the counter signatures
-
getCertificateRefs
List<CertificateRef> getCertificateRefs()Retrieve list of certificate ref- Returns:
List
ofCertificateRef
-
getOrphanCertificateRefs
List<CertificateRef> getOrphanCertificateRefs()Returns a list of orphan certificate refs, that are not associated to anyCertificateToken
- Returns:
- list of found
CertificateRef
s
-
getDSSId
SignatureIdentifier getDSSId()This method returns theSignatureIdentifier
.- Returns:
- unique
SignatureIdentifier
-
getId
String getId()This method returns the DSS unique signature id. It allows to unambiguously identify each signature.- Returns:
- The signature unique Id
-
getDAIdentifier
String getDAIdentifier()This method returns an identifier provided by the Driving Application (DA) Note: used only for XAdES- Returns:
- The signature identifier
-
isDataForSignatureLevelPresent
- Parameters:
signatureLevel
-SignatureLevel
to be checked- Returns:
- true if the signature contains the data needed for this
SignatureLevel
. Doesn't mean any validity of the data found.
-
getDataFoundUpToLevel
SignatureLevel getDataFoundUpToLevel() -
getSignatureLevels
SignatureLevel[] getSignatureLevels()- Returns:
- the list of signature levels for this type of signature, in the simple to complete order. Example: B,T,LT,LTA
-
areAllSelfSignedCertificates
boolean areAllSelfSignedCertificates()Checks if all certificate chains present in the signature are self-signed- Returns:
- TRUE if all certificates are self-signed, false otherwise
-
prepareTimestamps
-
validateStructure
void validateStructure()This method allows the structure validation of the signature. -
getStructureValidationResult
String getStructureValidationResult() -
checkSignaturePolicy
-
findSignatureScope
-
getSignatureScopes
List<SignatureScope> getSignatureScopes() -
isDocHashOnlyValidation
boolean isDocHashOnlyValidation()Returns true if the validation of the signature has been performed only on Signer's Document Representation (SDR). (An SDR typically is built on a cryptographic hash of the Signer's Document)- Returns:
- true of it is DocHashOnly validation, false otherwise
-
isHashOnlyValidation
boolean isHashOnlyValidation()Returns true if the validation of the signature has been performed only on Data To Be Signed Representation (DTBSR). EN 319 102-1 v1.1.1 (4.2.8 Data to be signed representation (DTBSR)): The DTBS preparation component shall take the DTBSF and hash it according to the hash algorithm specified in the cryptographic suite. The result of this process is the DTBSR, which is then used to create the signature. NOTE: In order for the produced hash to be representative of the DTBSF, the hashing function has the property that it is computationally infeasible to find collisions for the expected signature lifetime. Should the hash function become weak in the future, additional security measures, such as applying time-stamp tokens, can be taken.- Returns:
- true of it is HashOnly validation, false otherwise
-
getSignatureValue
byte[] getSignatureValue()Returns the digital signature value- Returns:
- digital signature value byte array
-
getReferenceValidations
List<ReferenceValidation> getReferenceValidations()Returns individual validation foreach reference (XAdES) or for the message-imprint (CAdES)- Returns:
- a list with one or more
ReferenceValidation
-
getSignatureDigestReference
Returns a signature reference element as defined in TS 119 442 - V1.1.1 - Electronic Signatures and Infrastructures (ESI), ch. 5.1.4.2.1.3 XML component- Parameters:
digestAlgorithm
-DigestAlgorithm
to use- Returns:
SignatureDigestReference
-
getAllRevocationTokens
Set<RevocationToken> getAllRevocationTokens()Retrieves the set of allRevocationToken
s in the signature- Returns:
- list of
RevocationToken
s
-
getCMSSignedDataRevocationTokens
List<RevocationToken> getCMSSignedDataRevocationTokens()Retrieves the list of allRevocationToken
s present in the CMS SignedData NOTE: Applicable only for CAdES revocation sources- Returns:
- list of
RevocationToken
s
-
getTimestampSignedDataRevocationTokens
List<RevocationToken> getTimestampSignedDataRevocationTokens()Retrieves the list of allRevocationToken
s present in the Timestamp token SignedData NOTE: Applicable only for CAdES revocation sources- Returns:
- list of
RevocationToken
s
-
getRevocationValuesTokens
List<RevocationToken> getRevocationValuesTokens()Retrieves the list of allRevocationToken
s present in 'RevocationValues' element NOTE: Applicable only for CAdES and XAdES revocation sources- Returns:
- list of
RevocationToken
s
-
getAttributeRevocationValuesTokens
List<RevocationToken> getAttributeRevocationValuesTokens()Retrieves the list of allRevocationToken
s present in 'AttributeRevocationValues' element NOTE: Applicable only for XAdES revocation source- Returns:
- list of
RevocationToken
s
-
getTimestampValidationDataTokens
List<RevocationToken> getTimestampValidationDataTokens()Retrieves the list of allRevocationToken
s present in 'TimestampValidationData/RevocationValues' element NOTE: Applicable only for XAdES revocation source- Returns:
- list of
RevocationToken
s
-
getDSSDictionaryRevocationTokens
List<RevocationToken> getDSSDictionaryRevocationTokens()Retrieves the list of allRevocationToken
s present in 'DSS' dictionary NOTE: Applicable only for PAdES revocation source- Returns:
- list of
RevocationToken
s
-
getVRIDictionaryRevocationTokens
List<RevocationToken> getVRIDictionaryRevocationTokens()Retrieves the list of allRevocationToken
s present in 'VRI' dictionary NOTE: Applicable only for PAdES revocation source- Returns:
- list of
RevocationToken
s
-
getCompleteRevocationTokens
List<RevocationToken> getCompleteRevocationTokens()Retrieves the list of allRevocationToken
s present in 'CompleteRevocationRefs' element NOTE: Applicable only for XAdES and CAdES revocation sources- Returns:
- list of
RevocationToken
s
-
getAttributeRevocationTokens
List<RevocationToken> getAttributeRevocationTokens()Retrieves the list of allRevocationToken
s present in 'AttributeRevocationRefs' element NOTE: Applicable only for XAdES and CAdES revocation sources- Returns:
- list of
RevocationToken
s
-
getCompleteRevocationCRLReferences
Retrieves a list of allCRLRef
s present in 'CompleteRevocationRefs' element NOTE: Applicable only for XAdES and CAdES revocation sources- Returns:
- list of
CRLRef
s
-
getAttributeRevocationCRLReferences
Retrieves a list of allCRLRef
s present in 'AttributeRevocationRefs' element NOTE: Applicable only for XAdES and CAdES revocation sources- Returns:
- list of
CRLRef
s
-
getTimestampRevocationCRLReferences
Retrieves a list of allCRLRef
s present in a timestamp element NOTE: Applicable only for CAdES revocation source- Returns:
- list of
CRLRef
s
-
getCompleteRevocationOCSPReferences
Retrieves a list of allOCSPRef
s present in 'CompleteRevocationRefs' element NOTE: Applicable only for XAdES and CAdES revocation sources- Returns:
- list of
OCSPRef
s
-
getAttributeRevocationOCSPReferences
Retrieves a list of allOCSPRef
s present in 'AttributeRevocationRefs' element NOTE: Applicable only for XAdES and CAdES revocation sources- Returns:
- list of
OCSPRef
s
-
getTimestampRevocationOCSPReferences
Retrieves a list of allOCSPRef
s present in a timestamp element NOTE: Applicable only for CAdES revocation source- Returns:
- list of
OCSPRef
s
-
getAllFoundRevocationIdentifiers
List<EncapsulatedRevocationTokenIdentifier> getAllFoundRevocationIdentifiers()Returns a list of allEncapsulatedRevocationTokenIdentifier
s found in CRL and OCSP sources- Returns:
- list of all
EncapsulatedRevocationTokenIdentifier
s
-
getOrphanRevocationRefs
List<RevocationRef> getOrphanRevocationRefs()Returns a list of all orphanRevocationRef
s found into the signature- Returns:
- list of
RevocationRef
s
-
findRefsForRevocationToken
Retrieves a list of foundRevocationRef
s for the givenrevocationToken
- Parameters:
revocationToken
-RevocationToken
to get references for- Returns:
- list of
RevocationRef
s
-
findRefsForRevocationIdentifier
List<RevocationRef> findRefsForRevocationIdentifier(EncapsulatedRevocationTokenIdentifier revocationIdentifier)Retrieves a list of foundRevocationRef
s for the givenrevocationIdentifier
- Parameters:
revocationIdentifier
-EncapsulatedRevocationTokenIdentifier
to get references for- Returns:
- list of
RevocationRef
s
-
getMessageDigestValue
byte[] getMessageDigestValue() -
getPdfRevision
PdfRevision getPdfRevision()
-