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 booleangetAddTimestamp()Whether to add a trusted time-stamp to the signature (Getter)HashAlgorithmgetHashAlgorithm()The message digest algorithm (Getter)SignatureFormatgetSignatureFormat()The format (encoding) of the cryptographic signature (Getter)SignaturePaddingTypegetSignaturePaddingType()The padding type of the cryptographic signature (Getter)ValidationInformationgetValidationInformation()Whether to add validation information (LTV) (Getter)voidsetAddTimestamp(boolean value)Whether to add a trusted time-stamp to the signature (Setter)voidsetSignatureFormat(SignatureFormat value)The format (encoding) of the cryptographic signature (Setter)voidsetValidationInformation(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- ifvalueisnull
-
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- ifvalueisnull
-
-