com.pspdfkit.signatures.storage.SignatureStorage |
![]() |
Handles storing signatures. A signature is usually an ink signature (hand-written signature) that
can be added to a PDF as an InkAnnotation
. Additionally, a signature can be associated
with a Signer
for digitally signing a PDF.
Implement this class when creating your own signature storage, which you can then pass to the
SignatureOptions.Builder
. Additionally, you can use our
default DatabaseSignatureStorage
with your own database name.
To set a default signature storage that will be used when the ElectronicSignatureFragment
is invoked by the framework, use setSignatureStorage(SignatureStorage)
.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract void |
addSignature(Signature signature)
Adds the given signature to the signature storage.
| ||||||||||
abstract void |
addSignatures(List<Signature> signatures)
Adds the given signatures to the signature storage.
| ||||||||||
abstract void |
clear()
Clears the storage by removing all the signatures from it.
| ||||||||||
abstract List<Signature> |
getSignatures()
Gets the currently stored signatures.
| ||||||||||
abstract void |
removeSignature(Signature signature)
Removes the given signature from the signature storage.
| ||||||||||
abstract void |
removeSignatures(List<Signature> signatures)
Removes the given signatures from the signature storage.
|
Adds the given signature to the signature storage.
signature | Signature to add. |
---|
Exception | being thrown if adding signature failed. |
---|
Adds the given signatures to the signature storage.
signatures | List of signatures to add. |
---|
Exception | being thrown if adding signatures failed. |
---|
Clears the storage by removing all the signatures from it.
Exception | being thrown if removing all signature from the storage failed. |
---|
Gets the currently stored signatures.
Exception | being thrown if retrieving signatures failed. |
---|
Removes the given signature from the signature storage.
signature | Signature to remove. |
---|
Exception | being thrown if removing signature failed. |
---|
Removes the given signatures from the signature storage.
signatures | List of signatures to remove. |
---|
Exception | being thrown if removing signatures failed. |
---|