Class SignerOptions
-
- All Implemented Interfaces:
public final class SignerOptions
Contains all the data needed to perform a signing operation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
SignerOptions.Builder
A helper class used for building the SignerOptions.
Creates a new Builder for creating the SignerOptions object to pass to the SigningManager. This allows for a custom DataProvider for the output. For a simpler Uri API, use the other constructor.
-
Field Summary
Fields Modifier and Type Field Description private final SignatureFormField
signatureFormField
private final DataProvider
outputDataProvider
private final DigitalSignatureType
type
private final DigitalSignatureMetadata
metadata
private final KeyStore.PrivateKeyEntry
privateKeyEntry
private final PrivateKey
privateKey
private final List<X509Certificate>
certificates
private final Boolean
enableLtv
-
Method Summary
Modifier and Type Method Description final SignatureFormField
getSignatureFormField()
Signature form field to be signed. final DataProvider
getOutputDataProvider()
Destination where the signed document will be written. final DigitalSignatureType
getType()
type can be either BASIC or CADES (default). final DigitalSignatureMetadata
getMetadata()
DigitalSignatureMetadata that contains additional metadata to add to the signature. final KeyStore.PrivateKeyEntry
getPrivateKeyEntry()
Private key entry containing certificates (usually created by p12 file) used by java.security.Signature to sign documents final PrivateKey
getPrivateKey()
Alternatively a private key used by java.security.Signature to sign documents final List<X509Certificate>
getCertificates()
A chain of certificates from the signer certificate to the trusted root. final Boolean
getEnableLtv()
Whether or not to enable PAdES-B-LT which includes Long Term Validation information in the signature. -
-
Method Detail
-
getSignatureFormField
final SignatureFormField getSignatureFormField()
Signature form field to be signed.
-
getOutputDataProvider
final DataProvider getOutputDataProvider()
Destination where the signed document will be written.
-
getType
final DigitalSignatureType getType()
type can be either BASIC or CADES (default).
-
getMetadata
final DigitalSignatureMetadata getMetadata()
DigitalSignatureMetadata that contains additional metadata to add to the signature.
-
getPrivateKeyEntry
final KeyStore.PrivateKeyEntry getPrivateKeyEntry()
Private key entry containing certificates (usually created by p12 file) used by java.security.Signature to sign documents
-
getPrivateKey
final PrivateKey getPrivateKey()
Alternatively a private key used by java.security.Signature to sign documents
-
getCertificates
final List<X509Certificate> getCertificates()
A chain of certificates from the signer certificate to the trusted root. Can just contain one if the certificate is self-signed
-
getEnableLtv
final Boolean getEnableLtv()
Whether or not to enable PAdES-B-LT which includes Long Term Validation information in the signature. Enabled by default.
-
-
-
-