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
Modifier 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
Modifier 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
ConstructorDescriptionVisiblePdfSignatureRequirement
(String templateImageRef, Integer xPosition, Integer yPosition, Integer scale, Integer page) VisiblePdfSignatureRequirement
(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 TypeMethodDescriptionbuilder()
Creates a "null" visible PDF signature requirement.getPage()
The number of the page where the visible signature should appear.getScale()
The scale of the final visible signature image expressed as zoom percentage.A unique reference of the template image that should be by the SignService Integration Service when generating a PDF visible signature.The X coordinate position (in pixels) of the PDF visible signature image in the PDF document.The Y coordinate position (in pixels) of the PDF visible signature image in the PDF document.void
The number of the page where the visible signature should appear.void
The scale of the final visible signature image expressed as zoom percentage.void
setTemplateImageRef
(String templateImageRef) A unique reference of the template image that should be by the SignService Integration Service when generating a PDF visible signature.void
setXPosition
(Integer xPosition) The X coordinate position (in pixels) of the PDF visible signature image in the PDF document.void
setYPosition
(Integer yPosition) The Y coordinate position (in pixels) of the PDF visible signature image in the PDF document.toString()
Methods inherited from class se.idsec.signservice.integration.document.pdf.VisiblePdfSignatureUserInformation
getExtension, getFieldValues, getSignerName, setExtension, setFieldValues, setSignerName, toBuilder
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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
-
VisiblePdfSignatureRequirement
public VisiblePdfSignatureRequirement() -
VisiblePdfSignatureRequirement
-
-
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
-
builder
-
toString
- Overrides:
toString
in classVisiblePdfSignatureUserInformation
-
getTemplateImageRef
A 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
A 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
The X coordinate position (in pixels) of the PDF visible signature image in the PDF document.- Returns:
- the X coordinate position (in pixels)
-
setXPosition
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
The Y coordinate position (in pixels) of the PDF visible signature image in the PDF document.- Returns:
- the Y coordinate position (in pixels)
-
setYPosition
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
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
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
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
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
-