Class VisiblePdfSignatureRequirement
java.lang.Object
se.idsec.signservice.integration.document.pdf.VisiblePdfSignatureUserInformation
se.idsec.signservice.integration.document.pdf.VisiblePdfSignatureRequirement
- All Implemented Interfaces:
Serializable
,Extensible
Class that represents the requirement for including a visible indication stating that a PDF document has been signed,
and by whom.
- Author:
- Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder forVisiblePdfSignatureRequirement
objects.Nested classes/interfaces inherited from class se.idsec.signservice.integration.document.pdf.VisiblePdfSignatureUserInformation
VisiblePdfSignatureUserInformation.SignerName, VisiblePdfSignatureUserInformation.VisiblePdfSignatureUserInformationBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Constant for an extension that denotes a "null" visible PDF signature requirement.Fields inherited from class se.idsec.signservice.integration.document.pdf.VisiblePdfSignatureUserInformation
extension
-
Constructor Summary
ConstructorsConstructorDescriptionVisiblePdfSignatureRequirement
(VisiblePdfSignatureUserInformation userInformation) Constructor that accepts aVisiblePdfSignatureUserInformation
object and initializes the properties from this object.VisiblePdfSignatureRequirement
(VisiblePdfSignatureUserInformation.SignerName signerName, Map<String, String> fieldValues, Extension extension, String templateImageRef, Integer xPosition, Integer yPosition, Integer scale, Integer page) -
Method Summary
Modifier and TypeMethodDescriptionCreates a "null" visible PDF signature requirement.getPage()
Gets the number of the page where the visible signature should appear.getScale()
Gets the scale of the final visible signature image expressed as zoom percentage.Gets the unique reference of the template image that should be by the SignService Integration Service when generating a PDF visible signature.Gets the X coordinate position (in pixels) of the PDF visible signature image in the PDF document.Gets the Y coordinate position (in pixels) of the PDF visible signature image in the PDF document.void
Assigns the number of the page where the visible signature should appear.void
Assigns the scale of the final visible signature image expressed as zoom percentage.void
setTemplateImageRef
(String templateImageRef) Assigns the unique reference of the template image that should be by the SignService Integration Service when generating a PDF visible signature.void
setXPosition
(Integer xPosition) Assigns the X coordinate position (in pixels) of the PDF visible signature image in the PDF document.void
setYPosition
(Integer yPosition) Assigns the Y coordinate position (in pixels) of the PDF visible signature image in the PDF document.Methods inherited from class se.idsec.signservice.integration.document.pdf.VisiblePdfSignatureUserInformation
getExtension, getFieldValues, getSignerName, setExtension, setFieldValues, setSignerName
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.integration.core.Extensible
addExtensionValue, getExtensionValue
-
Field Details
-
NULL_INDICATOR_EXTENSION
Constant for an extension that denotes a "null" visible PDF signature requirement.- See Also:
-
-
Constructor Details
-
VisiblePdfSignatureRequirement
-
VisiblePdfSignatureRequirement
Constructor that accepts aVisiblePdfSignatureUserInformation
object and initializes the properties from this object.- Parameters:
userInformation
- a VisiblePdfSignatureUserInformation object
-
-
Method Details
-
createNullVisiblePdfSignatureRequirement
Creates a "null" visible PDF signature requirement. This may be used in cases where the signature policy that is being used has a default visible PDF signature requirement (seeIntegrationServiceDefaultConfiguration.getDefaultVisiblePdfSignatureRequirement()
) but we, for some reason, don't want to apply this.- Returns:
- a VisiblePdfSignatureRequirement instance with the extension value "nullVisiblePdfSignatureRequirement" set to true
-
getTemplateImageRef
Gets the unique reference of the template image that should be by the SignService Integration Service when generating a PDF visible signature. SeePdfSignatureImageTemplate
.- Returns:
- the unique reference of the image template
-
setTemplateImageRef
Assigns the unique reference of the template image that should be by the SignService Integration Service when generating a PDF visible signature. SeePdfSignatureImageTemplate
.- Parameters:
templateImageRef
- the unique reference of the image template
-
getXPosition
Gets the X coordinate position (in pixels) of the PDF visible signature image in the PDF document.- Returns:
- the X coordinate position (in pixels)
-
setXPosition
Assigns the X coordinate position (in pixels) of the PDF visible signature image in the PDF document.- Parameters:
xPosition
- the X coordinate position (in pixels)
-
getYPosition
Gets the Y coordinate position (in pixels) of the PDF visible signature image in the PDF document.- Returns:
- the Y coordinate position (in pixels)
-
setYPosition
Assigns the Y coordinate position (in pixels) of the PDF visible signature image in the PDF document.- Parameters:
yPosition
- the Y coordinate position (in pixels)
-
getScale
Gets the scale of the final visible signature image expressed as zoom percentage. The value -100 represents a 0 sized image, the value 0 represents unaltered size, the value 100 double size and so on. Ifnull
, 0 is assumed.- Returns:
- the scale of the final visible signature image
-
setScale
Assigns the scale of the final visible signature image expressed as zoom percentage. The value -100 represents a 0 sized image, the value 0 represents unaltered size, the value 100 double size and so on. Ifnull
, 0 is assumed.- Parameters:
scale
- the scale of the final visible signature image
-
getPage
Gets the number of the page where the visible signature should appear. A value of 1 represents the first page and a value of 0 (ornull
) represents the last page.- Returns:
- the page where the visible signature should appear
-
setPage
Assigns the number of the page where the visible signature should appear. A value of 1 represents the first page and a value of 0 (ornull
) represents the last page.- Parameters:
page
- the page where the visible signature should appear
-