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.PDSignatureGets the PDF signature object (that was validated).booleanPredicate that tells if the signature has the CMS algorithm protection signed attribute set.voidsetCmsAlgorithmProtection(boolean cmsAlgorithmProtection) Assigns the flag that tells if the signature has the CMS algorithm protection signed attribute set.voidsetPdfSignature(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, setStatusMessageMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
getPdfSignaturein 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:
isCmsAlgorithmProtectionin 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:
toStringin classDefaultSignatureValidationResult
-