Class DefaultPDFSignerResult
java.lang.Object
se.idsec.signservice.security.sign.impl.AbstractSignerResult<byte[]>
se.idsec.signservice.security.sign.pdf.impl.DefaultPDFSignerResult
- All Implemented Interfaces:
PDFSignerResult
,SignerResult<byte[]>
Default implementation of the signature result interface.
- Author:
- Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Gets the signed attributes bytes signed by the generated signature.byte[]
Gets the bytes of CMS Content Info holding the SignedData.void
setSignedAttributes
(byte[] signedAttributes) Assigns the signed attributes bytes.void
setSignedData
(byte[] signedData) Assigns the CMS signed data.Methods inherited from class se.idsec.signservice.security.sign.impl.AbstractSignerResult
getSignedDocument, getSignerCertificate, getSignerCertificateChain, getSigningTime, setSignedDocument, setSignerCertificate, setSignerCertificateChain, setSigningTime
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface se.idsec.signservice.security.sign.SignerResult
getSignedDocument, getSignerCertificate, getSignerCertificateChain, getSigningTime
-
Constructor Details
-
DefaultPDFSignerResult
public DefaultPDFSignerResult()Default constructor.
-
-
Method Details
-
getSignedAttributes
public byte[] getSignedAttributes()Gets the signed attributes bytes signed by the generated signature. These are the bytes sent to an external signature service as the to be signed bytes. These bytes may be manipulated from the signed bytes in the CMSSignedData after adapting the result to requirements by the signing service. One such example is if the signature is a PAdES signature, where the signing time attribute must be removed before being sent to the signing service.- Specified by:
getSignedAttributes
in interfacePDFSignerResult
- Returns:
- signed attributes bytes
-
setSignedAttributes
public void setSignedAttributes(byte[] signedAttributes) Assigns the signed attributes bytes.- Parameters:
signedAttributes
- CMS signed attributes
-
getSignedData
public byte[] getSignedData()Gets the bytes of CMS Content Info holding the SignedData.- Specified by:
getSignedData
in interfacePDFSignerResult
- Returns:
- the bytes of CMS Content Info holding the SignedData
-
setSignedData
public void setSignedData(byte[] signedData) Assigns the CMS signed data.- Parameters:
signedData
- the signed data bytes
-