public abstract class AsicSignatureBuilder extends SignatureBuilder
Constructor and Description |
---|
AsicSignatureBuilder() |
Modifier and Type | Method and Description |
---|---|
DataToSign |
buildDataToSign()
Creates data to be signed externally.
|
Configuration |
getConfiguration() |
Signature |
openAdESSignature(byte[] signatureDocument)
Open signature from an existing signature document (XAdES, PAdES, CAdES etc.)
|
aSignature, invokeSigning, removeCustomSignatureBuilders, setSignatureBuilderForContainerType, withCity, withCountry, withDataFileDigestAlgorithm, withEncryptionAlgorithm, withOwnSignaturePolicy, withPostalCode, withRoles, withSignatureDigestAlgorithm, withSignatureId, withSignatureProfile, withSignatureToken, withSigningCertificate, withStateOrProvince
public DataToSign buildDataToSign() throws SignerCertificateRequiredException, ContainerWithoutFilesException
SignatureBuilder
If the signing process involves signing the container externally (e.g. signing in the Web by a browser plugin),
then DataToSign
provides necessary data for creating a signature externally.
buildDataToSign
in class SignatureBuilder
SignerCertificateRequiredException
- signer certificate must be provided using SignatureBuilder.withSigningCertificate(X509Certificate)
ContainerWithoutFilesException
- container must have at least one data file to be signed. Signature cannot be given on an empty container.public Signature openAdESSignature(byte[] signatureDocument)
SignatureBuilder
The signature document must be complete, containing all the necessary data (e.g. Signer's certificate, OCSP responses, Timestamps, signature values etc). An example would be a signature document in XAdES format which is an XML document transformed into a byte array.
openAdESSignature
in class SignatureBuilder
signatureDocument
- complete signature document in bytes.public Configuration getConfiguration()
Copyright © 2024. All rights reserved.