public class XadesSigningDssFacade extends Object
Constructor and Description |
---|
XadesSigningDssFacade()
Constructor
|
Modifier and Type | Method and Description |
---|---|
eu.europa.esig.dss.model.DSSDocument |
extendSignature(eu.europa.esig.dss.model.DSSDocument xadesSignature,
List<eu.europa.esig.dss.model.DSSDocument> detachedContents) |
byte[] |
getDataToSign(Collection<DataFile> dataFiles)
Method getDataToSign converts File into byte array
|
String |
getSignatureId() |
boolean |
isEn319132() |
void |
setAiaSource(eu.europa.esig.dss.spi.x509.aia.AIASource aiaSource) |
void |
setCertificateSource(eu.europa.esig.dss.spi.x509.CertificateSource certificateSource) |
void |
setCustomDataLoader(eu.europa.esig.dss.spi.client.http.DataLoader dataLoader)
Deprecated.
Use
setAiaSource(AIASource) instead. |
void |
setDataFileDigestAlgorithm(DigestAlgorithm digestAlgorithm) |
void |
setEn319132(boolean isSigningCertificateV2) |
void |
setEncryptionAlgorithm(eu.europa.esig.dss.enumerations.EncryptionAlgorithm encryptionAlgorithm) |
void |
setOcspSource(eu.europa.esig.dss.spi.x509.revocation.ocsp.OCSPSource ocspSource) |
void |
setSignatureDigestAlgorithm(DigestAlgorithm digestAlgorithm) |
void |
setSignatureId(String signatureId) |
void |
setSignatureLevel(eu.europa.esig.dss.enumerations.SignatureLevel signatureLevel) |
void |
setSignaturePolicy(eu.europa.esig.dss.model.Policy signaturePolicy) |
void |
setSignerLocation(eu.europa.esig.dss.model.SignerLocation signerLocation) |
void |
setSignerRoles(Collection<String> signerRoles) |
void |
setSigningCertificate(X509Certificate certificate) |
void |
setSigningDate(Date signingDate) |
void |
setTspSource(eu.europa.esig.dss.spi.x509.tsp.TSPSource tspSource) |
eu.europa.esig.dss.model.DSSDocument |
signDocument(byte[] signatureValue,
Collection<DataFile> dataFiles)
Method for signing and adding files into container.
|
public byte[] getDataToSign(Collection<DataFile> dataFiles)
dataFiles
- List of files to be signedpublic eu.europa.esig.dss.model.DSSDocument signDocument(byte[] signatureValue, Collection<DataFile> dataFiles)
signatureValue
- Signature value in byte arraydataFiles
- Collection of filespublic eu.europa.esig.dss.model.DSSDocument extendSignature(eu.europa.esig.dss.model.DSSDocument xadesSignature, List<eu.europa.esig.dss.model.DSSDocument> detachedContents)
public void setSigningCertificate(X509Certificate certificate)
public void setOcspSource(eu.europa.esig.dss.spi.x509.revocation.ocsp.OCSPSource ocspSource)
public void setCertificateSource(eu.europa.esig.dss.spi.x509.CertificateSource certificateSource)
public void setSignatureDigestAlgorithm(DigestAlgorithm digestAlgorithm)
public void setDataFileDigestAlgorithm(DigestAlgorithm digestAlgorithm)
public void setEncryptionAlgorithm(eu.europa.esig.dss.enumerations.EncryptionAlgorithm encryptionAlgorithm)
public void setSignerLocation(eu.europa.esig.dss.model.SignerLocation signerLocation)
public void setSignerRoles(Collection<String> signerRoles)
public void setSignaturePolicy(eu.europa.esig.dss.model.Policy signaturePolicy)
public void setSignatureLevel(eu.europa.esig.dss.enumerations.SignatureLevel signatureLevel)
public String getSignatureId()
public void setSignatureId(String signatureId)
public void setSigningDate(Date signingDate)
public void setEn319132(boolean isSigningCertificateV2)
public boolean isEn319132()
public void setTspSource(eu.europa.esig.dss.spi.x509.tsp.TSPSource tspSource)
public void setAiaSource(eu.europa.esig.dss.spi.x509.aia.AIASource aiaSource)
@Deprecated public void setCustomDataLoader(eu.europa.esig.dss.spi.client.http.DataLoader dataLoader)
setAiaSource(AIASource)
instead.DefaultAIASource
.dataLoader
- custom AIA data loaderCopyright © 2024. All rights reserved.