java.lang.Object
eu.europa.esig.dss.validation.DefaultAdvancedSignature
- All Implemented Interfaces:
eu.europa.esig.dss.model.identifier.IdentifierBasedObject,AdvancedSignature,Serializable
A common implementation of
AdvancedSignature- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<AdvancedSignature> Cached list of embedded counter signaturesprotected List<eu.europa.esig.dss.model.DSSDocument> In case of a detached signature this is the signed document.protected eu.europa.esig.dss.model.ManifestFileIn case of a ASiC-E signature this is the found related manifest file.protected eu.europa.esig.dss.spi.SignatureCertificateSourceCached offline signature certificate sourceprotected CertificateVerifierThe offline copy of a CertificateVerifierprotected List<eu.europa.esig.dss.model.ReferenceValidation> This variable contains a list of reference validations (reference tag for XAdES or message-digest for CAdES)protected eu.europa.esig.dss.spi.x509.revocation.crl.OfflineCRLSourceCached offline signature CRL sourceprotected SignatureCryptographicVerificationThis variable contains the result of the signature mathematical validation.protected SignatureIdentifierUnique signature identifierprotected eu.europa.esig.dss.spi.x509.revocation.ocsp.OfflineOCSPSourceCached offline signature OCSP sourceprotected SignaturePolicyThe SignaturePolicy identifierprotected TimestampSourceCached offline signature timestamp sourceprotected eu.europa.esig.dss.spi.x509.CertificateSourceThe certificate source of a signing certificateA list of error messages occurred during a structure validation -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor instantiating object with null values -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExternalEvidenceRecord(EvidenceRecord evidenceRecord) Adds an evidence record covering the signature filebooleanChecks if all certificate chains present in the signature are self-signedprotected abstract SignaturePolicyThis method extracts a signature policy from a signature and builds the objectprotected abstract BaselineRequirementsCheckerInstantiates aBaselineRequirementsCheckeraccording to the signature formatbooleanvoidfindSignatureScope(SignatureScopeFinder<?> signatureScopeFinder) Deprecated.protected abstract List<eu.europa.esig.dss.model.scope.SignatureScope> Finds signature scopesReturns a list of all evidence recordsList<eu.europa.esig.dss.spi.x509.tsp.TimestampToken> Returns a list of all timestamps found in the signatureList<eu.europa.esig.dss.spi.x509.tsp.TimestampToken> Returns the archive Timestampsprotected BaselineRequirementsCheckerReturns a cached instance of theBaselineRequirementsCheckereu.europa.esig.dss.spi.x509.CandidatesForSigningCertificateETSI TS 101 733 V2.2.1 (2013-04) 5.6.3 Signature Verification Process ...the public key from the first certificate identified in the sequence of certificate identifiers from SigningCertificate shall be the key used to verify the digital signature.List<eu.europa.esig.dss.model.x509.CertificateToken> Returns an unmodifiable list of all certificate tokens encapsulated in the signatureeu.europa.esig.dss.spi.x509.ListCertificateSourceGets a ListCertificateSource representing a merged source fromsignatureCertificateSourceand all included to the signature timestamp objectseu.europa.esig.dss.spi.x509.revocation.ListRevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL> Gets a ListRevocationSource representing a merged source fromsignatureCRLSourseand all included to the signature timestamp objectseu.europa.esig.dss.spi.x509.revocation.ListRevocationSource<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> Gets a ListRevocationSource representing a merged source fromsignatureOCSPSourseand all included to the signature timestamp objectsList<eu.europa.esig.dss.model.DSSDocument> Returns container's contentList<eu.europa.esig.dss.spi.x509.tsp.TimestampToken> Returns the content timestampsprotected eu.europa.esig.dss.spi.x509.ListCertificateSourceReturns a merged certificate source for values incorporated within counter signaturesprotected eu.europa.esig.dss.spi.x509.revocation.ListRevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL> Returns a merged CRL source for values incorporated within counter signaturesprotected eu.europa.esig.dss.spi.x509.revocation.ListRevocationSource<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> Returns a merged OCSP source for values incorporated within counter signaturesList<eu.europa.esig.dss.model.DSSDocument> Returns detached contentsReturns a list of detached evidence recordsList<eu.europa.esig.dss.spi.x509.tsp.TimestampToken> Returns a list of detached timestamps NOTE: used for ASiC with CAdES onlyList<eu.europa.esig.dss.spi.x509.tsp.TimestampToken> Returns a list of timestamps defined with the 'DocTimeStamp' type NOTE: applicable only for PAdESgetDSSId()This method returns theSignatureIdentifier.Returns a list of embedded evidence recordsgetId()This method returns the DSS unique signature id.eu.europa.esig.dss.model.ManifestFileThis method returns a relatedManifestFilein the case of ASiC-E signature.Gets master signatureGets signature's cryptographic validation resultThis method returns the signature filename (useful for ASiC and multiple signature files)protected abstract SignatureIdentifierBuilderReturns a builder to define and build a signature IdReturns the Signature Policy OID from the signature.List<eu.europa.esig.dss.model.scope.SignatureScope> Returns a list of found SignatureScopesList<eu.europa.esig.dss.spi.x509.tsp.TimestampToken> Returns the signature timestampsReturns the list of roles of the signer.eu.europa.esig.dss.model.x509.CertificateTokenThis method returns the signing certificate token or null if there is no valid signing certificate.Returns a message if the structure validation failsList<eu.europa.esig.dss.spi.x509.tsp.TimestampToken> 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<eu.europa.esig.dss.spi.x509.tsp.TimestampToken> Returns the time-stamp which is computed over the concatenation of CompleteCertificateRefs and CompleteRevocationRefs elements (XAdES example).booleanChecks if the signature is conformant to AdES-BASELINE-B levelinthashCode()booleanChecks if the LTA-level is present in the signaturebooleanChecks if the LT-level is present in the signaturebooleanChecks if the T-level is present in the signaturebooleanChecks if the current signature is a counter signature (i.e.booleanReturns true if the validation of the signature has been performed only on Signer's Document Representation (SDR).booleanReturns true if the validation of the signature has been performed only on Data To Be Signed Representation (DTBSR).voidprepareOfflineCertificateVerifier(CertificateVerifier certificateVerifier) This method prepares an offline CertificateVerifier.voidThis method resets the source of certificates.voidThis method resets the sources of the revocation data.voidThis method resets the timestamp source.voidsetContainerContents(List<eu.europa.esig.dss.model.DSSDocument> containerContents) This method allows to set the archive container contents in the case of ASiC-S signature.voidsetDetachedContents(List<eu.europa.esig.dss.model.DSSDocument> detachedContents) This method allows to set the signed contents in the case of the detached signature.voidsetManifestFile(eu.europa.esig.dss.model.ManifestFile manifestFile) This method allows to set a manifest file in the case of ASiC-E signature.voidsetMasterSignature(AdvancedSignature masterSignature) This setter allows to indicate the master signature.voidsetSignatureFilename(String signatureFilename) This method allows to set the signature filename (useful in case of ASiC)voidsetSigningCertificateSource(eu.europa.esig.dss.spi.x509.CertificateSource signingCertificateSource) Set a certificate source which allows to find the signing certificate by kid or certificate's digesttoString()This method processes the structure validation of the signature.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface eu.europa.esig.dss.validation.AdvancedSignature
addExternalTimestamp, checkSignatureIntegrity, getCertificateSource, getCertifiedSignerRoles, getClaimedSignerRoles, getCommitmentTypeIndications, getContentType, getCounterSignatures, getCRLSource, getDAIdentifier, getDataFoundUpToLevel, getDataToBeSignedRepresentation, getDigestAlgorithm, getEncryptionAlgorithm, getMaskGenerationFunction, getMimeType, getOCSPSource, getReferenceValidations, getSignatureAlgorithm, getSignatureDigestReference, getSignatureForm, getSignaturePolicyStore, getSignatureProductionPlace, getSignatureValue, getSignedAssertions, getSigningTime, getTimestampSource
-
Field Details
-
detachedContents
In case of a detached signature this is the signed document. -
manifestFile
protected eu.europa.esig.dss.model.ManifestFile manifestFileIn case of a ASiC-E signature this is the found related manifest file. -
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. -
structureValidationMessages
A list of error messages occurred during a structure validation -
offlineCertificateVerifier
The offline copy of a CertificateVerifier -
signingCertificateSource
protected eu.europa.esig.dss.spi.x509.CertificateSource signingCertificateSourceThe certificate source of a signing certificate -
offlineCertificateSource
protected eu.europa.esig.dss.spi.SignatureCertificateSource offlineCertificateSourceCached offline signature certificate source -
signatureCRLSource
protected eu.europa.esig.dss.spi.x509.revocation.crl.OfflineCRLSource signatureCRLSourceCached offline signature CRL source -
signatureOCSPSource
protected eu.europa.esig.dss.spi.x509.revocation.ocsp.OfflineOCSPSource signatureOCSPSourceCached offline signature OCSP source -
signatureTimestampSource
Cached offline signature timestamp source -
counterSignatures
Cached list of embedded counter signatures -
signaturePolicy
The SignaturePolicy identifier -
signatureIdentifier
Unique signature identifier
-
-
Constructor Details
-
DefaultAdvancedSignature
protected DefaultAdvancedSignature()Default constructor instantiating object with null values
-
-
Method Details
-
getSignatureIdentifierBuilder
Returns a builder to define and build a signature Id- Returns:
SignatureIdentifierBuilder
-
setSigningCertificateSource
public void setSigningCertificateSource(eu.europa.esig.dss.spi.x509.CertificateSource signingCertificateSource) Description copied from interface:AdvancedSignatureSet a certificate source which allows to find the signing certificate by kid or certificate's digest- Specified by:
setSigningCertificateSourcein interfaceAdvancedSignature- Parameters:
signingCertificateSource- the certificate source to resolve missing signing certificate
-
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- Parameters:
signatureFilename-String
-
getDetachedContents
Description copied from interface:AdvancedSignatureReturns detached contents- 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
Description copied from interface:AdvancedSignatureReturns container's content- Specified by:
getContainerContentsin interfaceAdvancedSignature- Returns:
- in case of ASiC-S signature returns a list of an archive container documents
-
setContainerContents
Description copied from interface:AdvancedSignatureThis method allows to set the archive container contents in the case of ASiC-S signature.- Specified by:
setContainerContentsin interfaceAdvancedSignature- Parameters:
containerContents-ListofDSSDocumentrepresenting the archive container contents.
-
getManifestFile
public eu.europa.esig.dss.model.ManifestFile getManifestFile()Description copied from interface:AdvancedSignatureThis method returns a relatedManifestFilein the case of ASiC-E signature.- Specified by:
getManifestFilein interfaceAdvancedSignature- Returns:
- manifestFile
ManifestFile
-
setManifestFile
public void setManifestFile(eu.europa.esig.dss.model.ManifestFile manifestFile) Description copied from interface:AdvancedSignatureThis method allows to set a manifest file in the case of ASiC-E signature.- Specified by:
setManifestFilein interfaceAdvancedSignature- Parameters:
manifestFile-ManifestFile
-
getDSSId
Description copied from interface:AdvancedSignatureThis method returns theSignatureIdentifier.- Specified by:
getDSSIdin interfaceAdvancedSignature- Specified by:
getDSSIdin interfaceeu.europa.esig.dss.model.identifier.IdentifierBasedObject- 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
-
getCompleteCertificateSource
public eu.europa.esig.dss.spi.x509.ListCertificateSource getCompleteCertificateSource()Description copied from interface:AdvancedSignatureGets a ListCertificateSource representing a merged source fromsignatureCertificateSourceand all included to the signature timestamp objects- Specified by:
getCompleteCertificateSourcein interfaceAdvancedSignature- Returns:
ListCertificateSource
-
getCompleteCRLSource
public eu.europa.esig.dss.spi.x509.revocation.ListRevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL> getCompleteCRLSource()Description copied from interface:AdvancedSignatureGets a ListRevocationSource representing a merged source fromsignatureCRLSourseand all included to the signature timestamp objects- Specified by:
getCompleteCRLSourcein interfaceAdvancedSignature- Returns:
ListRevocationSource
-
getCompleteOCSPSource
public eu.europa.esig.dss.spi.x509.revocation.ListRevocationSource<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> getCompleteOCSPSource()Description copied from interface:AdvancedSignatureGets a ListRevocationSource representing a merged source fromsignatureOCSPSourseand all included to the signature timestamp objects- Specified by:
getCompleteOCSPSourcein interfaceAdvancedSignature- Returns:
ListRevocationSource
-
getCounterSignaturesCertificateSource
protected eu.europa.esig.dss.spi.x509.ListCertificateSource getCounterSignaturesCertificateSource()Returns a merged certificate source for values incorporated within counter signatures- Returns:
ListCertificateSource
-
getCounterSignaturesCRLSource
protected eu.europa.esig.dss.spi.x509.revocation.ListRevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL> getCounterSignaturesCRLSource()Returns a merged CRL source for values incorporated within counter signatures- Returns:
- CRL
ListRevocationSource
-
getCounterSignaturesOCSPSource
protected eu.europa.esig.dss.spi.x509.revocation.ListRevocationSource<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> getCounterSignaturesOCSPSource()Returns a merged OCSP source for values incorporated within counter signatures- Returns:
- OCSP
ListRevocationSource
-
resetCertificateSource
public void resetCertificateSource()This method resets the source of certificates. It must be called when any certificate is added to the KeyInfo or CertificateValues (XAdES), or 'xVals' (JAdES). NOTE: used in XAdES and JAdES -
resetRevocationSources
public void resetRevocationSources()This method resets the sources of the revocation data. It must be called when -LT level is created. NOTE: used in XAdES and JAdES -
resetTimestampSource
public void resetTimestampSource()This method resets the timestamp source. It must be called when -LT level is created. NOTE: used in XAdES and JAdES -
getCandidatesForSigningCertificate
public eu.europa.esig.dss.spi.x509.CandidatesForSigningCertificate getCandidatesForSigningCertificate()ETSI TS 101 733 V2.2.1 (2013-04) 5.6.3 Signature Verification Process ...the public key from the first certificate identified in the sequence of certificate identifiers from SigningCertificate shall be the key used to verify the digital signature.- Specified by:
getCandidatesForSigningCertificatein interfaceAdvancedSignature- Returns:
CandidatesForSigningCertificate
-
prepareOfflineCertificateVerifier
Description copied from interface:AdvancedSignatureThis method prepares an offline CertificateVerifier. The instance is used to know if all required revocation data are present- Specified by:
prepareOfflineCertificateVerifierin interfaceAdvancedSignature- Parameters:
certificateVerifier- the configured CertificateVerifier with all external sources
-
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:
-
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
Description copied from interface:AdvancedSignatureGets master signature- Specified by:
getMasterSignaturein interfaceAdvancedSignature- Returns:
AdvancedSignature
-
isCounterSignature
public boolean isCounterSignature()Description copied from interface:AdvancedSignatureChecks if the current signature is a counter signature (i.e. has a Master signature)- Specified by:
isCounterSignaturein interfaceAdvancedSignature- Returns:
- TRUE if it is a counter signature, FALSE otherwise
-
getSignatureCryptographicVerification
Description copied from interface:AdvancedSignatureGets signature's cryptographic validation result- 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
-
getSigningCertificateToken
public eu.europa.esig.dss.model.x509.CertificateToken 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:
CertificateToken
-
getStructureValidationResult
Description copied from interface:AdvancedSignatureReturns a message if the structure validation fails- Specified by:
getStructureValidationResultin interfaceAdvancedSignature- Returns:
- a list of
Stringerror messages if validation fails, an empty list if structural validation succeeds
-
validateStructure
This method processes the structure validation of the signature.- Returns:
- list of
Stringerrors
-
findSignatureScope
Deprecated.Description copied from interface:AdvancedSignatureRuns SignatureScopeFinder- Specified by:
findSignatureScopein interfaceAdvancedSignature- Parameters:
signatureScopeFinder-SignatureScopeFinderto use
-
getSignatureScopes
Description copied from interface:AdvancedSignatureReturns a list of found SignatureScopes- Specified by:
getSignatureScopesin interfaceAdvancedSignature- Returns:
- a list of
SignatureScopes
-
findSignatureScopes
Finds signature scopes- Returns:
- a list of
SignatureScopes
-
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
-
getDetachedTimestamps
Description copied from interface:AdvancedSignatureReturns a list of detached timestamps NOTE: used for ASiC with CAdES only- Specified by:
getDetachedTimestampsin interfaceAdvancedSignature- Returns:
- a list of
TimestampTokens
-
getAllTimestamps
Description copied from interface:AdvancedSignatureReturns a list of all timestamps found in the signature- Specified by:
getAllTimestampsin interfaceAdvancedSignature- Returns:
ListofTimestampTokens
-
getEmbeddedEvidenceRecords
Description copied from interface:AdvancedSignatureReturns a list of embedded evidence records- Specified by:
getEmbeddedEvidenceRecordsin interfaceAdvancedSignature- Returns:
- a list of
EvidenceRecords
-
addExternalEvidenceRecord
Description copied from interface:AdvancedSignatureAdds an evidence record covering the signature file- Specified by:
addExternalEvidenceRecordin interfaceAdvancedSignature- Parameters:
evidenceRecord-EvidenceRecord
-
getDetachedEvidenceRecords
Description copied from interface:AdvancedSignatureReturns a list of detached evidence records- Specified by:
getDetachedEvidenceRecordsin interfaceAdvancedSignature- Returns:
- a list of
EvidenceRecords
-
getAllEvidenceRecords
Description copied from interface:AdvancedSignatureReturns a list of all evidence records- Specified by:
getAllEvidenceRecordsin interfaceAdvancedSignature- Returns:
- a list of
EvidenceRecords
-
getSignaturePolicy
Description copied from interface:AdvancedSignatureReturns the Signature Policy OID from the signature.- Specified by:
getSignaturePolicyin interfaceAdvancedSignature- Returns:
SignaturePolicy
-
buildSignaturePolicy
This method extracts a signature policy from a signature and builds the object- Returns:
SignaturePolicy
-
getBaselineRequirementsChecker
Returns a cached instance of theBaselineRequirementsChecker- Returns:
BaselineRequirementsChecker
-
createBaselineRequirementsChecker
Instantiates aBaselineRequirementsCheckeraccording to the signature format- Returns:
BaselineRequirementsChecker
-
hasBProfile
public boolean hasBProfile()Checks if the signature is conformant to AdES-BASELINE-B level- Returns:
- TRUE if the B-level is present, FALSE otherwise
-
hasTProfile
public boolean hasTProfile()Checks if the T-level is present in the signature- Returns:
- TRUE if the T-level is present, FALSE otherwise
-
hasLTProfile
public boolean hasLTProfile()Checks if the LT-level is present in the signature- Returns:
- TRUE if the LT-level is present, FALSE otherwise
-
hasLTAProfile
public boolean hasLTAProfile()Checks if the LTA-level is present in the signature- Returns:
- TRUE if the LTA-level is present, FALSE otherwise
-
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
-
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
-
equals
-
hashCode
public int hashCode() -
toString
-