Package eu.europa.esig.dss.spi.x509
Class SignatureIntegrityValidator
java.lang.Object
eu.europa.esig.dss.spi.x509.SignatureIntegrityValidator
- Direct Known Subclasses:
CAdESSignatureIntegrityValidator
,JAdESSignatureIntegrityValidator
,OCSPSignatureIntegrityValidator
,XAdESSignatureIntegrityValidator
Checks signature integrity among a provided list of signing certificate candidates
-
Constructor Summary
ModifierConstructorDescriptionprotected
Default constructor instantiating object with null list of erros -
Method Summary
Modifier and TypeMethodDescriptionReturns error messages after processing of validate(candidates) method if presentvalidate
(CandidatesForSigningCertificate candidates) Verifies validity of a signature across a provided signing certificate candidates list NOTE: in case of a failed validation, use getErrorMessages() method after processing this method for more detailsprotected abstract boolean
Verifies if the signature has been created with the given public key
-
Constructor Details
-
SignatureIntegrityValidator
protected SignatureIntegrityValidator()Default constructor instantiating object with null list of erros
-
-
Method Details
-
validate
Verifies validity of a signature across a provided signing certificate candidates list NOTE: in case of a failed validation, use getErrorMessages() method after processing this method for more details- Parameters:
candidates
-CandidatesForSigningCertificate
- Returns:
CertificateValidity
if a valid signing certificate found, NULL otherwise
-
verify
Verifies if the signature has been created with the given public key- Parameters:
publicKey
-PublicKey
to verify- Returns:
- TRUE if the validation succeeded, FALSE otherwise
- Throws:
DSSException
- in case if an exception occurred
-
getErrorMessages
Returns error messages after processing of validate(candidates) method if present- Returns:
- a list of error messages
-