Class DefaultPDFSignatureValidationResult
java.lang.Object
se.idsec.signservice.security.sign.impl.DefaultSignatureValidationResult
se.idsec.signservice.security.sign.pdf.impl.DefaultPDFSignatureValidationResult
- All Implemented Interfaces:
PDFSignatureValidationResult
,SignatureValidationResult
public class DefaultPDFSignatureValidationResult
extends DefaultSignatureValidationResult
implements PDFSignatureValidationResult
Implementation of the
PDFSignatureValidationResult
interface.- Author:
- Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
-
Nested Class Summary
Nested classes/interfaces inherited from interface se.idsec.signservice.security.sign.SignatureValidationResult
SignatureValidationResult.Status
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.pdfbox.pdmodel.interactive.digitalsignature.PDSignature
Gets the PDF signature object (that was validated).boolean
Predicate that tells if the signature has the CMS algorithm protection signed attribute set.void
setCmsAlgorithmProtection
(boolean cmsAlgorithmProtection) Assigns the flag that tells if the signature has the CMS algorithm protection signed attribute set.void
setPdfSignature
(org.apache.pdfbox.pdmodel.interactive.digitalsignature.PDSignature pdfSignature) Assigns the PDF signature object (that was validated).toString()
Methods inherited from class se.idsec.signservice.security.sign.impl.DefaultSignatureValidationResult
getAdditionalCertificates, getCertificateValidationResult, getClaimedSigningTime, getException, getSignatureAlgorithm, getSignerCertificate, getStatus, getStatusMessage, isEtsiAdes, isSuccess, setAdditionalCertificates, setCertificateValidationResult, setClaimedSigningTime, setError, setError, setError, setEtsiAdes, setException, setSignatureAlgorithm, setSignerCertificate, setStatus, setStatusMessage
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface se.idsec.signservice.security.sign.SignatureValidationResult
getCertificateValidationResult, getClaimedSigningTime, getException, getSignatureAlgorithm, getSignerCertificate, getStatus, getStatusMessage, isEtsiAdes, isSuccess
-
Constructor Details
-
DefaultPDFSignatureValidationResult
public DefaultPDFSignatureValidationResult()Constructor.
-
-
Method Details
-
getPdfSignature
public org.apache.pdfbox.pdmodel.interactive.digitalsignature.PDSignature getPdfSignature()Gets the PDF signature object (that was validated).- Specified by:
getPdfSignature
in interfacePDFSignatureValidationResult
- Returns:
- the PDF signature object
-
setPdfSignature
public void setPdfSignature(org.apache.pdfbox.pdmodel.interactive.digitalsignature.PDSignature pdfSignature) Assigns the PDF signature object (that was validated).- Parameters:
pdfSignature
- the PDF signature object
-
isCmsAlgorithmProtection
public boolean isCmsAlgorithmProtection()Predicate that tells if the signature has the CMS algorithm protection signed attribute set.- Specified by:
isCmsAlgorithmProtection
in interfacePDFSignatureValidationResult
- Returns:
- true if the CMS algorithm protection signed attribute is set and false otherwise
-
setCmsAlgorithmProtection
public void setCmsAlgorithmProtection(boolean cmsAlgorithmProtection) Assigns the flag that tells if the signature has the CMS algorithm protection signed attribute set. The default isfalse
.- Parameters:
cmsAlgorithmProtection
- flag telling if the signature has the CMS algorithm protection signed attribute set
-
toString
- Overrides:
toString
in classDefaultSignatureValidationResult
-