Class SignatureConfiguration
- java.lang.Object
-
- com.pdftools.internal.NativeBase
-
- com.pdftools.internal.NativeObject
-
- com.pdftools.sign.SignatureConfiguration
-
- com.pdftools.crypto.providers.globalsigndss.SignatureConfiguration
-
public class SignatureConfiguration extends SignatureConfiguration
The signature configuration
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getAddTimestamp()
Whether to add a trusted time-stamp to the signature (Getter)HashAlgorithm
getHashAlgorithm()
The message digest algorithm (Getter)SignatureFormat
getSignatureFormat()
The format (encoding) of the cryptographic signature (Getter)SignaturePaddingType
getSignaturePaddingType()
The padding type of the cryptographic signature (Getter)ValidationInformation
getValidationInformation()
Whether to add validation information (LTV) (Getter)void
setAddTimestamp(boolean value)
Whether to add a trusted time-stamp to the signature (Setter)void
setSignatureFormat(SignatureFormat value)
The format (encoding) of the cryptographic signature (Setter)void
setValidationInformation(ValidationInformation value)
Whether to add validation information (LTV) (Setter)-
Methods inherited from class com.pdftools.sign.SignatureConfiguration
getAppearance, getContactInfo, getFieldName, getLocation, getName, getReason, setAppearance, setContactInfo, setFieldName, setLocation, setReason
-
Methods inherited from class com.pdftools.internal.NativeObject
equals, hashCode
-
-
-
-
Method Detail
-
getHashAlgorithm
public HashAlgorithm getHashAlgorithm()
The message digest algorithm (Getter)
The algorithm used to hash the document and from which the cryptographic signature is created.
-
getSignaturePaddingType
public SignaturePaddingType getSignaturePaddingType()
The padding type of the cryptographic signature (Getter)
Value:pdftools.crypto.SignaturePaddingType.RSA_RSA
-
getSignatureFormat
public SignatureFormat getSignatureFormat()
The format (encoding) of the cryptographic signature (Getter)
Default:pdftools.crypto.SignatureFormat.ETSI_CADES_DETACHED
-
setSignatureFormat
public void setSignatureFormat(SignatureFormat value)
The format (encoding) of the cryptographic signature (Setter)
Default:pdftools.crypto.SignatureFormat.ETSI_CADES_DETACHED
- Throws:
java.lang.IllegalArgumentException
- ifvalue
isnull
-
getAddTimestamp
public boolean getAddTimestamp()
Whether to add a trusted time-stamp to the signature (Getter)
Default:false
-
setAddTimestamp
public void setAddTimestamp(boolean value)
Whether to add a trusted time-stamp to the signature (Setter)
Default:false
-
getValidationInformation
public ValidationInformation getValidationInformation()
Whether to add validation information (LTV) (Getter)
Note: This has no effect for signing certificates that do not offer revocation information.
Default:
pdftools.crypto.ValidationInformation.EMBED_IN_DOCUMENT
-
setValidationInformation
public void setValidationInformation(ValidationInformation value)
Whether to add validation information (LTV) (Setter)
Note: This has no effect for signing certificates that do not offer revocation information.
Default:
pdftools.crypto.ValidationInformation.EMBED_IN_DOCUMENT
- Throws:
java.lang.IllegalArgumentException
- ifvalue
isnull
-
-