public interface

SignatureProvider

com.pspdfkit.signatures.provider.SignatureProvider
Known Indirect Subclasses

Class Overview

Interface for classes able to sign data of a PDF.

Summary

Public Methods
abstract EncryptionAlgorithm getEncryptionAlgorithm()
Returns the encryption algorithm used by this signature provider.
abstract byte[] signData(byte[] data, HashAlgorithm hashAlgorithm)
Returns a hash from signing the given data.

Public Methods

public abstract EncryptionAlgorithm getEncryptionAlgorithm ()

Returns the encryption algorithm used by this signature provider.

Returns

public abstract byte[] signData (byte[] data, HashAlgorithm hashAlgorithm)

Returns a hash from signing the given data.

Parameters
data Data that should be hashed and signed.
hashAlgorithm Hash algorithm that should be applied to data before signing it.
Returns
  • Signed hash.