public static final class SignApi.Behaviour.Builder extends Object
Modifier and Type | Method and Description |
---|---|
Optional<SignApi.Behaviour> |
build()
Builds the behaviour.
|
SignApi.Behaviour.Builder |
doDigestAction(SignApi.Behaviour.DigestCallback callback)
Whether to call a callback when the digest has been calculated.
|
SignApi.Behaviour.Builder |
doHardwareSign()
Whether to use hardware signing.
|
static SignApi.Behaviour.Builder |
getDefault()
The default behaviour.
|
SignApi.Behaviour.Builder |
setExternalSignatureImage(BufferedImage externalSignatureImage)
Image signing: Whether the "external signature image " feature shall be used.
|
SignApi.Behaviour.Builder |
signInDocument(SignApi.Behaviour.DocSign.Rectangle.Builder docSignRectangleBuilder)
Whether the "sign-in-document" feature shall be used.
|
SignApi.Behaviour.Builder |
signInDocument(SignApi.Behaviour.DocSign.Rectangle docSignRectangle)
Whether the "sign-in-document" feature shall be used.
|
SignApi.Behaviour.Builder |
signInDocument(SignApi.Behaviour.DocSign.Rectangle docSignRectangle,
boolean crop)
Whether the "sign-in-document" feature shall be used.
|
SignApi.Behaviour.Builder |
stamp(Color color,
SignApi.Behaviour.Stamp.Font font,
SignApi.Behaviour.Stamp.TextBuilder stampTextBuilder)
The stamp is visible text in the signature image.
|
SignApi.Behaviour.Builder |
useRectangle(SignApi.Behaviour.StdSign.Rectangle SignRectangle)
Whether the "sign-in-standard" feature shall be used.
|
SignApi.Behaviour.Builder |
useTsa(String address)
Whether a TSA-signed-timestamp shall be part of the signature.
|
public Optional<SignApi.Behaviour> build()
public static SignApi.Behaviour.Builder getDefault()
public SignApi.Behaviour.Builder useTsa(String address)
address
- The TSA's address.public SignApi.Behaviour.Builder doHardwareSign()
public SignApi.Behaviour.Builder useRectangle(SignApi.Behaviour.StdSign.Rectangle SignRectangle)
SignRectangle
- Where the signature rectangle shall appear on the device display.public SignApi.Behaviour.Builder setExternalSignatureImage(BufferedImage externalSignatureImage)
externalSignatureImage
- the signature image shall appear on the pdf acroform.public SignApi.Behaviour.Builder signInDocument(SignApi.Behaviour.DocSign.Rectangle docSignRectangle)
docSignRectangle
- Where the signature rectangle shall appear on the device display.public SignApi.Behaviour.Builder signInDocument(SignApi.Behaviour.DocSign.Rectangle.Builder docSignRectangleBuilder)
docSignRectangleBuilder
- Where the signature rectangle shall appear on the device display.public SignApi.Behaviour.Builder signInDocument(SignApi.Behaviour.DocSign.Rectangle docSignRectangle, boolean crop)
docSignRectangle
- Where the signature rectangle shall appear on the device display.crop
- Whether the rendered document section shall be cropped to the size of the display area.public SignApi.Behaviour.Builder doDigestAction(SignApi.Behaviour.DigestCallback callback)
callback
- The callback.public SignApi.Behaviour.Builder stamp(Color color, SignApi.Behaviour.Stamp.Font font, SignApi.Behaviour.Stamp.TextBuilder stampTextBuilder)
color
- The stamp text color.font
- A font. Pass null to use the default.stampTextBuilder
- A stamp text builder. Pass null to use the default;Copyright © 2024. All rights reserved.