Package eu.europa.esig.dss.validation
Class DefaultAdvancedSignature
java.lang.Object
eu.europa.esig.dss.validation.DefaultAdvancedSignature
- All Implemented Interfaces:
AdvancedSignature,Serializable
- Direct Known Subclasses:
CAdESSignature,XAdESSignature
public abstract class DefaultAdvancedSignature extends Object implements AdvancedSignature
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDefaultAdvancedSignature.ValidationDataForInclusion -
Field Summary
Fields Modifier and Type Field Description protected CandidatesForSigningCertificatecandidatesForSigningCertificateThe reference to the object containing all candidates to the signing certificate.protected CertificatePoolcertPoolThis is the reference to the global (external) pool of certificates.protected List<DSSDocument>detachedContentsIn case of a detached signature this is the signed document.protected List<ManifestFile>manifestFilesIn case of a ASiC-E signature this is the list of found manifest files.protected SignatureCertificateSourceofflineCertificateSourceprotected CertificateTokenprovidedSigningCertificateTokenIn the case of a non AdES signature the signing certificate is not mandatory within the signature and can be provided by the driving application.protected List<ReferenceValidation>referenceValidationsThis variable contains a list of reference validations (reference tag for XAdES or message-digest for CAdES)protected SignatureCRLSourcesignatureCRLSourceprotected SignatureCryptographicVerificationsignatureCryptographicVerificationThis variable contains the result of the signature mathematical validation.protected SignatureIdentifiersignatureIdentifierprotected SignatureOCSPSourcesignatureOCSPSourceprotected SignaturePolicysignaturePolicyprotected SignatureTimestampSourcesignatureTimestampSourceprotected StringstructureValidation -
Constructor Summary
Constructors Modifier Constructor Description protectedDefaultAdvancedSignature(CertificatePool certPool) -
Method Summary
Modifier and Type Method Description protected voidaddEncapsulatedCertificatesFromTimestamp(List<TimestampedReference> references, TimestampToken timestampedTimestamp)voidaddExternalTimestamp(TimestampToken timestamp)This method allows to add an external timestamp.protected voidaddReference(List<TimestampedReference> referenceList, TimestampedReference referenceToAdd)AddsreferenceToAddtoreferenceListwithout duplicatesprotected voidaddReferences(List<TimestampedReference> referenceList, List<TimestampedReference> referencesToAdd)AddsreferencesToAddtoreferenceListwithout duplicatesprotected voidaddReferencesForCertificates(List<TimestampedReference> references)protected voidaddReferencesForPreviousTimestamps(List<TimestampedReference> references, List<TimestampToken> timestampedTimestamps)protected voidaddReferencesFromRevocationData(List<TimestampedReference> references)This method adds references to retrieved revocation data.booleanareAllSelfSignedCertificates()Checks if all certificate chains present in the signature are self-signedprotected abstract SignatureIdentifierbuildSignatureIdentifier()Build and definessignatureIdentifiervaluebooleanequals(Object obj)List<RevocationRef>findRefsForRevocationIdentifier(EncapsulatedRevocationTokenIdentifier revocationIdentifier)Retrieves a list of foundRevocationRefs for the givenrevocationIdentifierList<RevocationRef>findRefsForRevocationToken(RevocationToken revocationToken)Retrieves a list of foundRevocationRefs for the givenrevocationTokenvoidfindSignatureScope(SignatureScopeFinder signatureScopeFinder)List<EncapsulatedRevocationTokenIdentifier>getAllFoundRevocationIdentifiers()Returns a list of allEncapsulatedRevocationTokenIdentifiers found in CRL and OCSP sourcesSet<RevocationToken>getAllRevocationTokens()Retrieves the set of allRevocationTokens 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 allCRLRefs present in 'AttributeRevocationRefs' element NOTE: Applicable only for XAdES and CAdES revocation sourcesList<OCSPRef>getAttributeRevocationOCSPReferences()Retrieves a list of allOCSPRefs present in 'AttributeRevocationRefs' element NOTE: Applicable only for XAdES and CAdES revocation sourcesList<RevocationToken>getAttributeRevocationTokens()Retrieves the list of allRevocationTokens present in 'AttributeRevocationRefs' element NOTE: Applicable only for XAdES and CAdES revocation sourcesList<RevocationToken>getAttributeRevocationValuesTokens()Retrieves the list of allRevocationTokens present in 'AttributeRevocationValues' element NOTE: Applicable only for XAdES revocation sourceList<CertificateToken>getCertificateListWithinSignatureAndTimestamps()Returns a list of all certificates found into signature and timestampsMap<String,List<CertificateToken>>getCertificateMapWithinSignatureAndTimestamps(boolean skipLastArchiveTimestamp)Returns a map between found certificate chains in signature and timestampsList<CertificateToken>getCertificates()Returns an unmodifiable list of all certificate tokens encapsulated in the signatureList<RevocationToken>getCMSSignedDataRevocationTokens()Retrieves the list of allRevocationTokens present in the CMS SignedData NOTE: Applicable only for CAdES revocation sourcesListCRLSourcegetCompleteCRLSource()Gets a ListCRLSource representing a merged source fromsignatureCRLSourseand all included to the signature timestamp objectsListOCSPSourcegetCompleteOCSPSource()Gets a ListOCSPSource representing a merged source fromsignatureOCSPSourseand all included to the signature timestamp objectsList<CRLRef>getCompleteRevocationCRLReferences()Retrieves a list of allCRLRefs present in 'CompleteRevocationRefs' element NOTE: Applicable only for XAdES and CAdES revocation sourcesList<OCSPRef>getCompleteRevocationOCSPReferences()Retrieves a list of allOCSPRefs present in 'CompleteRevocationRefs' element NOTE: Applicable only for XAdES and CAdES revocation sourcesList<RevocationToken>getCompleteRevocationTokens()Retrieves the list of allRevocationTokens present in 'CompleteRevocationRefs' element NOTE: Applicable only for XAdES and CAdES revocation sourcesList<DSSDocument>getContainerContents()protected List<TimestampedReference>getContentTimestampReferences()List<TimestampToken>getContentTimestamps()Returns the content timestampsSignatureLevelgetDataFoundUpToLevel()List<DSSDocument>getDetachedContents()List<TimestampToken>getDocumentTimestamps()Returns a list of timestamps defined with the 'DocTimeStamp' type NOTE: applicable only for PAdESList<RevocationToken>getDSSDictionaryRevocationTokens()Retrieves the list of allRevocationTokens present in 'DSS' dictionary NOTE: Applicable only for PAdES revocation sourceSignatureIdentifiergetDSSId()This method returns theSignatureIdentifier.StringgetId()This method returns the DSS unique signature id.List<DSSDocument>getManifestedDocuments()AdvancedSignaturegetMasterSignature()byte[]getMessageDigestValue()List<CertificateRef>getOrphanCertificateRefs()Returns a list of orphan certificate refs, that are not associated to anyCertificateTokenList<RevocationRef>getOrphanRevocationRefs()Returns a list of all orphanRevocationRefs found into the signaturePdfRevisiongetPdfRevision()SignaturePolicygetPolicyId()Returns the Signature Policy OID from the signature.CertificateTokengetProvidedSigningCertificateToken()List<RevocationToken>getRevocationValuesTokens()Retrieves the list of allRevocationTokens present in 'RevocationValues' element NOTE: Applicable only for CAdES and XAdES revocation sourcesSignatureCryptographicVerificationgetSignatureCryptographicVerification()StringgetSignatureFilename()This method returns the signature filename (useful for ASiC and multiple signature files)List<SignatureScope>getSignatureScopes()protected List<TimestampedReference>getSignatureTimestampReferences()List<TimestampToken>getSignatureTimestamps()Returns the signature timestampsValidationContextgetSignatureValidationContext(CertificateVerifier certificateVerifier)This method validates the signing certificate and all timestamps.List<SignerRole>getSignerRoles()Returns the list of roles of the signer.protected List<TimestampedReference>getSigningCertificateTimestampReferences()CertificateTokengetSigningCertificateToken()This method returns the signing certificate token or null if there is no valid signing certificate.StringgetStructureValidationResult()protected List<TimestampedReference>getTimestampedReferencesFromCertificates(List<CertificateToken> certificateTokens)Creates a list ofTimestampedReferences for the providedcertificateTokensList<CRLRef>getTimestampRevocationCRLReferences()Retrieves a list of allCRLRefs present in a timestamp element NOTE: Applicable only for CAdES revocation sourceList<OCSPRef>getTimestampRevocationOCSPReferences()Retrieves a list of allOCSPRefs present in a timestamp element NOTE: Applicable only for CAdES revocation sourceList<RevocationToken>getTimestampSignedDataRevocationTokens()Retrieves the list of allRevocationTokens present in the Timestamp token SignedData NOTE: Applicable only for CAdES revocation sourcesList<CertificateToken>getTimestampSourceCertificates()Returns a list ofCertificateTokens found in theSignatureTimestampSourceList<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 allRevocationTokens present in 'TimestampValidationData/RevocationValues' element NOTE: Applicable only for XAdES revocation sourceDefaultAdvancedSignature.ValidationDataForInclusiongetValidationDataForInclusion(ValidationContext validationContext)This method returns all validation data to be included into the signatureList<RevocationToken>getVRIDictionaryRevocationTokens()Retrieves the list of allRevocationTokens present in 'VRI' dictionary NOTE: Applicable only for PAdES revocation sourceinthashCode()booleanhasLTAProfile()booleanhasLTProfile()booleanhasTProfile()booleanisDocHashOnlyValidation()Returns true if the validation of the signature has been performed only on Signer's Document Representation (SDR).booleanisHashOnlyValidation()Returns true if the validation of the signature has been performed only on Data To Be Signed Representation (DTBSR).voidprepareTimestamps(ValidationContext validationContext)This method adds to theValidationContextall timestamps to be validated.voidsetContainerContents(List<DSSDocument> containerContents)This method allows to set the container contents in the case of ASiC signature.voidsetDetachedContents(List<DSSDocument> detachedContents)This method allows to set the signed contents in the case of the detached signature.voidsetManifestFiles(List<ManifestFile> manifestFiles)This method allows to set the manifest files in the case of ASiC-E signature.voidsetMasterSignature(AdvancedSignature masterSignature)This setter allows to indicate the master signature.voidsetProvidedSigningCertificateToken(CertificateToken certificateToken)This method allows to provide a signing certificate to be used in the validation process.voidsetSignatureFilename(String signatureFilename)This method allows to set the signature filename (useful in case of ASiC)voidvalidateStructure()This method allows the structure validation of the signature.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface eu.europa.esig.dss.validation.AdvancedSignature
checkSignatureIntegrity, checkSignaturePolicy, checkSigningCertificate, getCandidatesForSigningCertificate, getCertificateRefs, getCertificateSource, getCertifiedSignerRoles, getClaimedSignerRoles, getCommitmentTypeIndication, getContentHints, getContentIdentifier, getContentType, getCounterSignatures, getCRLSource, getDAIdentifier, getDigestAlgorithm, getEncryptionAlgorithm, getMaskGenerationFunction, getMimeType, getOCSPSource, getReferenceValidations, getSignatureAlgorithm, getSignatureDigestReference, getSignatureForm, getSignatureLevels, getSignatureProductionPlace, getSignatureValue, getSigningTime, getTimestampSource, isDataForSignatureLevelPresent
-
Field Details
-
certPool
This is the reference to the global (external) pool of certificates. All encapsulated certificates in the signature are added to this pool. SeeCertificatePool -
providedSigningCertificateToken
In the case of a non AdES signature the signing certificate is not mandatory within the signature and can be provided by the driving application. -
detachedContents
In case of a detached signature this is the signed document. -
manifestFiles
In case of a ASiC-E signature this is the list of found manifest files. -
referenceValidations
This variable contains a list of reference validations (reference tag for XAdES or message-digest for CAdES) -
signatureCryptographicVerification
This variable contains the result of the signature mathematical validation. It is initialised when the methodcheckSignatureIntegrityis called. -
structureValidation
-
candidatesForSigningCertificate
The reference to the object containing all candidates to the signing certificate. -
offlineCertificateSource
-
signatureCRLSource
-
signatureOCSPSource
-
signatureTimestampSource
-
signaturePolicy
-
signatureIdentifier
-
-
Constructor Details
-
DefaultAdvancedSignature
- Parameters:
certPool- can be null
-
-
Method Details
-
buildSignatureIdentifier
Build and definessignatureIdentifiervalue -
getSignatureFilename
Description copied from interface:AdvancedSignatureThis method returns the signature filename (useful for ASiC and multiple signature files)- Specified by:
getSignatureFilenamein interfaceAdvancedSignature- Returns:
- the signature filename
-
setSignatureFilename
Description copied from interface:AdvancedSignatureThis method allows to set the signature filename (useful in case of ASiC)- Specified by:
setSignatureFilenamein interfaceAdvancedSignature
-
getDetachedContents
- Specified by:
getDetachedContentsin interfaceAdvancedSignature- Returns:
- in the case of the detached signature this is the
Listof signed contents.
-
setDetachedContents
Description copied from interface:AdvancedSignatureThis method allows to set the signed contents in the case of the detached signature.- Specified by:
setDetachedContentsin interfaceAdvancedSignature- Parameters:
detachedContents-ListofDSSDocumentrepresenting the signed detached contents.
-
getContainerContents
- Specified by:
getContainerContentsin interfaceAdvancedSignature- Returns:
- in case of ASiC signature returns a list of container documents
-
setContainerContents
Description copied from interface:AdvancedSignatureThis method allows to set the container contents in the case of ASiC signature.- Specified by:
setContainerContentsin interfaceAdvancedSignature- Parameters:
containerContents-ListofDSSDocumentrepresenting the container contents.
-
setManifestFiles
Description copied from interface:AdvancedSignatureThis method allows to set the manifest files in the case of ASiC-E signature.- Specified by:
setManifestFilesin interfaceAdvancedSignature- Parameters:
manifestFiles-ListofManifestFiles
-
getOrphanCertificateRefs
Description copied from interface:AdvancedSignatureReturns a list of orphan certificate refs, that are not associated to anyCertificateToken- Specified by:
getOrphanCertificateRefsin interfaceAdvancedSignature- Returns:
- list of found
CertificateRefs
-
getDSSId
Description copied from interface:AdvancedSignatureThis method returns theSignatureIdentifier.- Specified by:
getDSSIdin interfaceAdvancedSignature- Returns:
- unique
SignatureIdentifier
-
getId
Description copied from interface:AdvancedSignatureThis method returns the DSS unique signature id. It allows to unambiguously identify each signature.- Specified by:
getIdin interfaceAdvancedSignature- Returns:
- The signature unique Id
-
getManifestedDocuments
- Specified by:
getManifestedDocumentsin interfaceAdvancedSignature- Returns:
- in case of ASiC-E signature returns a list of
DSSDocuments contained in the related signature manifest
-
getDataFoundUpToLevel
- Specified by:
getDataFoundUpToLevelin interfaceAdvancedSignature- Returns:
- the upper level for which data have been found. Doesn't mean any validity of the data found. Null if unknown.
-
getCompleteCRLSource
Description copied from interface:AdvancedSignatureGets a ListCRLSource representing a merged source fromsignatureCRLSourseand all included to the signature timestamp objects- Specified by:
getCompleteCRLSourcein interfaceAdvancedSignature- Returns:
ListCRLSource
-
getCompleteOCSPSource
Description copied from interface:AdvancedSignatureGets a ListOCSPSource representing a merged source fromsignatureOCSPSourseand all included to the signature timestamp objects- Specified by:
getCompleteOCSPSourcein interfaceAdvancedSignature- Returns:
ListOCSPSource
-
getSignatureValidationContext
This method validates the signing certificate and all timestamps.- Returns:
- signature validation context containing all certificates and revocation data used during the validation process.
-
getCertificates
Returns an unmodifiable list of all certificate tokens encapsulated in the signature- Specified by:
getCertificatesin interfaceAdvancedSignature- Returns:
- a list of certificate contained within the signature
- See Also:
AdvancedSignature.getCertificates()
-
getTimestampSourceCertificates
Returns a list ofCertificateTokens found in theSignatureTimestampSource- Returns:
- list of
CertificateTokens
-
getValidationDataForInclusion
public DefaultAdvancedSignature.ValidationDataForInclusion getValidationDataForInclusion(ValidationContext validationContext)This method returns all validation data to be included into the signature- Parameters:
validationContext-ValidationContextcontained all extracted data during the validation- Returns:
DefaultAdvancedSignature.ValidationDataForInclusionall validation data to be included to the signature excluding duplicates and cross-certificates
-
getCertificateListWithinSignatureAndTimestamps
Description copied from interface:AdvancedSignatureReturns a list of all certificates found into signature and timestamps- Specified by:
getCertificateListWithinSignatureAndTimestampsin interfaceAdvancedSignature- Returns:
- list of
CertificateTokens
-
getCertificateMapWithinSignatureAndTimestamps
public Map<String,List<CertificateToken>> getCertificateMapWithinSignatureAndTimestamps(boolean skipLastArchiveTimestamp)Returns a map between found certificate chains in signature and timestamps- Parameters:
skipLastArchiveTimestamp- - if chain for the last archive timestamp must not be included to the final map- Returns:
- map between signature/timestamp instances and their certificate chains
-
setMasterSignature
Description copied from interface:AdvancedSignatureThis setter allows to indicate the master signature. It means that this is a countersignature.- Specified by:
setMasterSignaturein interfaceAdvancedSignature- Parameters:
masterSignature-AdvancedSignature
-
getMasterSignature
- Specified by:
getMasterSignaturein interfaceAdvancedSignature- Returns:
AdvancedSignature
-
getSignatureCryptographicVerification
- Specified by:
getSignatureCryptographicVerificationin interfaceAdvancedSignature- Returns:
- SignatureCryptographicVerification with all the information collected during the validation process.
-
getSignerRoles
Description copied from interface:AdvancedSignatureReturns the list of roles of the signer.- Specified by:
getSignerRolesin interfaceAdvancedSignature- Returns:
- list of the
SignerRoles
-
getProvidedSigningCertificateToken
- Specified by:
getProvidedSigningCertificateTokenin interfaceAdvancedSignature- Returns:
- This method returns the provided signing certificate or
null
-
setProvidedSigningCertificateToken
Description copied from interface:AdvancedSignatureThis 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.- Specified by:
setProvidedSigningCertificateTokenin interfaceAdvancedSignature- Parameters:
certificateToken-CertificateTokenrepresenting the signing certificate token.
-
getSigningCertificateToken
Description copied from interface:AdvancedSignatureThis 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 methodcheckSignatureIntegritymust be called.- Specified by:
getSigningCertificateTokenin interfaceAdvancedSignature- Returns:
-
prepareTimestamps
This method adds to theValidationContextall timestamps to be validated.- Specified by:
prepareTimestampsin interfaceAdvancedSignature- Parameters:
validationContext-ValidationContextto which the timestamps must be added
-
validateStructure
public void validateStructure()Description copied from interface:AdvancedSignatureThis method allows the structure validation of the signature.- Specified by:
validateStructurein interfaceAdvancedSignature
-
getStructureValidationResult
- Specified by:
getStructureValidationResultin interfaceAdvancedSignature
-
getContentTimestampReferences
-
getSignatureTimestampReferences
-
getSigningCertificateTimestampReferences
-
addReferencesForPreviousTimestamps
protected void addReferencesForPreviousTimestamps(List<TimestampedReference> references, List<TimestampToken> timestampedTimestamps) -
addEncapsulatedCertificatesFromTimestamp
protected void addEncapsulatedCertificatesFromTimestamp(List<TimestampedReference> references, TimestampToken timestampedTimestamp) -
addReferencesForCertificates
-
getTimestampedReferencesFromCertificates
protected List<TimestampedReference> getTimestampedReferencesFromCertificates(List<CertificateToken> certificateTokens)Creates a list ofTimestampedReferences for the providedcertificateTokens- Parameters:
certificateTokens- list ofCertificateTokens to create timestamped references for- Returns:
- list of
TimestampedReferences
-
addReferencesFromRevocationData
This method adds references to retrieved revocation data.- Parameters:
references-
-
addReference
protected void addReference(List<TimestampedReference> referenceList, TimestampedReference referenceToAdd)AddsreferenceToAddtoreferenceListwithout duplicates- Parameters:
referenceList- - list ofTimestampedReferences to be extendedreferenceToAdd- -TimestampedReferenceto be added
-
addReferences
protected void addReferences(List<TimestampedReference> referenceList, List<TimestampedReference> referencesToAdd)AddsreferencesToAddtoreferenceListwithout duplicates- Parameters:
referenceList- - list ofTimestampedReferences to be extendedreferencesToAdd- -TimestampedReferences to be added
-
getPolicyId
Description copied from interface:AdvancedSignatureReturns the Signature Policy OID from the signature.- Specified by:
getPolicyIdin interfaceAdvancedSignature- Returns:
SignaturePolicy
-
findSignatureScope
- Specified by:
findSignatureScopein interfaceAdvancedSignature
-
getSignatureScopes
- Specified by:
getSignatureScopesin interfaceAdvancedSignature
-
getContentTimestamps
Description copied from interface:AdvancedSignatureReturns the content timestamps- Specified by:
getContentTimestampsin interfaceAdvancedSignature- Returns:
ListofTimestampToken
-
getSignatureTimestamps
Description copied from interface:AdvancedSignatureReturns the signature timestamps- Specified by:
getSignatureTimestampsin interfaceAdvancedSignature- Returns:
ListofTimestampToken
-
getTimestampsX1
Description copied from interface:AdvancedSignatureReturns 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.- Specified by:
getTimestampsX1in interfaceAdvancedSignature- Returns:
ListofTimestampToken
-
getTimestampsX2
Description copied from interface:AdvancedSignatureReturns the time-stamp which is computed over the concatenation of CompleteCertificateRefs and CompleteRevocationRefs elements (XAdES example).- Specified by:
getTimestampsX2in interfaceAdvancedSignature- Returns:
ListofTimestampToken
-
getArchiveTimestamps
Description copied from interface:AdvancedSignatureReturns the archive Timestamps- Specified by:
getArchiveTimestampsin interfaceAdvancedSignature- Returns:
ListofTimestampTokens
-
getDocumentTimestamps
Description copied from interface:AdvancedSignatureReturns a list of timestamps defined with the 'DocTimeStamp' type NOTE: applicable only for PAdES- Specified by:
getDocumentTimestampsin interfaceAdvancedSignature- Returns:
ListofTimestampTokens
-
getAllTimestamps
Description copied from interface:AdvancedSignatureReturns a list of all timestamps found in the signature- Specified by:
getAllTimestampsin interfaceAdvancedSignature- Returns:
ListofTimestampTokens
-
addExternalTimestamp
Description copied from interface:AdvancedSignatureThis method allows to add an external timestamp. The given timestamp must be processed before.- Specified by:
addExternalTimestampin interfaceAdvancedSignature- Parameters:
timestamp- the timestamp token
-
hasTProfile
public boolean hasTProfile() -
hasLTProfile
public boolean hasLTProfile() -
areAllSelfSignedCertificates
public boolean areAllSelfSignedCertificates()Description copied from interface:AdvancedSignatureChecks if all certificate chains present in the signature are self-signed- Specified by:
areAllSelfSignedCertificatesin interfaceAdvancedSignature- Returns:
- TRUE if all certificates are self-signed, false otherwise
-
hasLTAProfile
public boolean hasLTAProfile() -
getAllRevocationTokens
Description copied from interface:AdvancedSignatureRetrieves the set of allRevocationTokens in the signature- Specified by:
getAllRevocationTokensin interfaceAdvancedSignature- Returns:
- list of
RevocationTokens
-
getCMSSignedDataRevocationTokens
Description copied from interface:AdvancedSignatureRetrieves the list of allRevocationTokens present in the CMS SignedData NOTE: Applicable only for CAdES revocation sources- Specified by:
getCMSSignedDataRevocationTokensin interfaceAdvancedSignature- Returns:
- list of
RevocationTokens
-
getTimestampSignedDataRevocationTokens
Description copied from interface:AdvancedSignatureRetrieves the list of allRevocationTokens present in the Timestamp token SignedData NOTE: Applicable only for CAdES revocation sources- Specified by:
getTimestampSignedDataRevocationTokensin interfaceAdvancedSignature- Returns:
- list of
RevocationTokens
-
getRevocationValuesTokens
Description copied from interface:AdvancedSignatureRetrieves the list of allRevocationTokens present in 'RevocationValues' element NOTE: Applicable only for CAdES and XAdES revocation sources- Specified by:
getRevocationValuesTokensin interfaceAdvancedSignature- Returns:
- list of
RevocationTokens
-
getAttributeRevocationValuesTokens
Description copied from interface:AdvancedSignatureRetrieves the list of allRevocationTokens present in 'AttributeRevocationValues' element NOTE: Applicable only for XAdES revocation source- Specified by:
getAttributeRevocationValuesTokensin interfaceAdvancedSignature- Returns:
- list of
RevocationTokens
-
getTimestampValidationDataTokens
Description copied from interface:AdvancedSignatureRetrieves the list of allRevocationTokens present in 'TimestampValidationData/RevocationValues' element NOTE: Applicable only for XAdES revocation source- Specified by:
getTimestampValidationDataTokensin interfaceAdvancedSignature- Returns:
- list of
RevocationTokens
-
getDSSDictionaryRevocationTokens
Description copied from interface:AdvancedSignatureRetrieves the list of allRevocationTokens present in 'DSS' dictionary NOTE: Applicable only for PAdES revocation source- Specified by:
getDSSDictionaryRevocationTokensin interfaceAdvancedSignature- Returns:
- list of
RevocationTokens
-
getVRIDictionaryRevocationTokens
Description copied from interface:AdvancedSignatureRetrieves the list of allRevocationTokens present in 'VRI' dictionary NOTE: Applicable only for PAdES revocation source- Specified by:
getVRIDictionaryRevocationTokensin interfaceAdvancedSignature- Returns:
- list of
RevocationTokens
-
getCompleteRevocationCRLReferences
Description copied from interface:AdvancedSignatureRetrieves a list of allCRLRefs present in 'CompleteRevocationRefs' element NOTE: Applicable only for XAdES and CAdES revocation sources- Specified by:
getCompleteRevocationCRLReferencesin interfaceAdvancedSignature- Returns:
- list of
CRLRefs
-
getAttributeRevocationCRLReferences
Description copied from interface:AdvancedSignatureRetrieves a list of allCRLRefs present in 'AttributeRevocationRefs' element NOTE: Applicable only for XAdES and CAdES revocation sources- Specified by:
getAttributeRevocationCRLReferencesin interfaceAdvancedSignature- Returns:
- list of
CRLRefs
-
getTimestampRevocationCRLReferences
Description copied from interface:AdvancedSignatureRetrieves a list of allCRLRefs present in a timestamp element NOTE: Applicable only for CAdES revocation source- Specified by:
getTimestampRevocationCRLReferencesin interfaceAdvancedSignature- Returns:
- list of
CRLRefs
-
getCompleteRevocationOCSPReferences
Description copied from interface:AdvancedSignatureRetrieves a list of allOCSPRefs present in 'CompleteRevocationRefs' element NOTE: Applicable only for XAdES and CAdES revocation sources- Specified by:
getCompleteRevocationOCSPReferencesin interfaceAdvancedSignature- Returns:
- list of
OCSPRefs
-
getAttributeRevocationOCSPReferences
Description copied from interface:AdvancedSignatureRetrieves a list of allOCSPRefs present in 'AttributeRevocationRefs' element NOTE: Applicable only for XAdES and CAdES revocation sources- Specified by:
getAttributeRevocationOCSPReferencesin interfaceAdvancedSignature- Returns:
- list of
OCSPRefs
-
getTimestampRevocationOCSPReferences
Description copied from interface:AdvancedSignatureRetrieves a list of allOCSPRefs present in a timestamp element NOTE: Applicable only for CAdES revocation source- Specified by:
getTimestampRevocationOCSPReferencesin interfaceAdvancedSignature- Returns:
- list of
OCSPRefs
-
getOrphanRevocationRefs
Description copied from interface:AdvancedSignatureReturns a list of all orphanRevocationRefs found into the signature- Specified by:
getOrphanRevocationRefsin interfaceAdvancedSignature- Returns:
- list of
RevocationRefs
-
getCompleteRevocationTokens
Description copied from interface:AdvancedSignatureRetrieves the list of allRevocationTokens present in 'CompleteRevocationRefs' element NOTE: Applicable only for XAdES and CAdES revocation sources- Specified by:
getCompleteRevocationTokensin interfaceAdvancedSignature- Returns:
- list of
RevocationTokens
-
getAttributeRevocationTokens
Description copied from interface:AdvancedSignatureRetrieves the list of allRevocationTokens present in 'AttributeRevocationRefs' element NOTE: Applicable only for XAdES and CAdES revocation sources- Specified by:
getAttributeRevocationTokensin interfaceAdvancedSignature- Returns:
- list of
RevocationTokens
-
findRefsForRevocationToken
Description copied from interface:AdvancedSignatureRetrieves a list of foundRevocationRefs for the givenrevocationToken- Specified by:
findRefsForRevocationTokenin interfaceAdvancedSignature- Parameters:
revocationToken-RevocationTokento get references for- Returns:
- list of
RevocationRefs
-
findRefsForRevocationIdentifier
public List<RevocationRef> findRefsForRevocationIdentifier(EncapsulatedRevocationTokenIdentifier revocationIdentifier)Description copied from interface:AdvancedSignatureRetrieves a list of foundRevocationRefs for the givenrevocationIdentifier- Specified by:
findRefsForRevocationIdentifierin interfaceAdvancedSignature- Parameters:
revocationIdentifier-EncapsulatedRevocationTokenIdentifierto get references for- Returns:
- list of
RevocationRefs
-
getAllFoundRevocationIdentifiers
Description copied from interface:AdvancedSignatureReturns a list of allEncapsulatedRevocationTokenIdentifiers found in CRL and OCSP sources- Specified by:
getAllFoundRevocationIdentifiersin interfaceAdvancedSignature- Returns:
- list of all
EncapsulatedRevocationTokenIdentifiers
-
isDocHashOnlyValidation
public boolean isDocHashOnlyValidation()Description copied from interface:AdvancedSignatureReturns 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)- Specified by:
isDocHashOnlyValidationin interfaceAdvancedSignature- Returns:
- true of it is DocHashOnly validation, false otherwise
-
isHashOnlyValidation
public boolean isHashOnlyValidation()Description copied from interface:AdvancedSignatureReturns 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.- Specified by:
isHashOnlyValidationin interfaceAdvancedSignature- Returns:
- true of it is HashOnly validation, false otherwise
-
getMessageDigestValue
public byte[] getMessageDigestValue()- Specified by:
getMessageDigestValuein interfaceAdvancedSignature
-
getPdfRevision
- Specified by:
getPdfRevisionin interfaceAdvancedSignature
-
equals
-
hashCode
public int hashCode()
-