Class RemoteTrustedListSignatureServiceImpl
java.lang.Object
eu.europa.esig.dss.ws.signature.common.AbstractRemoteSignatureServiceImpl
eu.europa.esig.dss.ws.signature.common.RemoteTrustedListSignatureServiceImpl
- All Implemented Interfaces:
RemoteTrustedListSignatureService
,Serializable
public class RemoteTrustedListSignatureServiceImpl
extends AbstractRemoteSignatureServiceImpl
implements RemoteTrustedListSignatureService
Implementation of a Trusted List signing service
- See Also:
-
Constructor Summary
ConstructorDescriptionDefault constructor instantiating object with null XAdESService -
Method Summary
Modifier and TypeMethodDescriptiongetDataToSign
(RemoteDocument trustedList, RemoteTrustedListSignatureParameters parameters) Retrieves the bytes of the data that need to be signed for a conformant XML Trusted List signing according to a set of customizable parametersvoid
setXadesService
(XAdESService xadesService) Sets the XAdES signature servicesignDocument
(RemoteDocument trustedList, RemoteTrustedListSignatureParameters parameters, SignatureValueDTO signatureValue) Signs the XML Trusted List with the providedsignatureValue
according to a set of customizable parameters.Methods inherited from class eu.europa.esig.dss.ws.signature.common.AbstractRemoteSignatureServiceImpl
createCounterSignatureParameters, createParameters, fillParameters, getASiCSignatureParameters, getJAdESSignatureParameters, getPAdESSignatureParameters, getXAdESSignatureParameters, toBLevelParameters, toCommitmentTypeList, toSignatureValue, toTimestampParameters, toTimestampParameters
-
Constructor Details
-
RemoteTrustedListSignatureServiceImpl
public RemoteTrustedListSignatureServiceImpl()Default constructor instantiating object with null XAdESService
-
-
Method Details
-
setXadesService
Sets the XAdES signature service- Parameters:
xadesService
-XAdESService
-
getDataToSign
public ToBeSignedDTO getDataToSign(RemoteDocument trustedList, RemoteTrustedListSignatureParameters parameters) throws DSSException Description copied from interface:RemoteTrustedListSignatureService
Retrieves the bytes of the data that need to be signed for a conformant XML Trusted List signing according to a set of customizable parameters- Specified by:
getDataToSign
in interfaceRemoteTrustedListSignatureService
- Parameters:
trustedList
-RemoteDocument
XML trusted list to be signed (the full XML file shall be provided)parameters
-RemoteTrustedListSignatureParameters
set of the signing parameters for Trusted List signature creation- Returns:
- the data to be signed
- Throws:
DSSException
- if an error occurred
-
signDocument
public RemoteDocument signDocument(RemoteDocument trustedList, RemoteTrustedListSignatureParameters parameters, SignatureValueDTO signatureValue) throws DSSException Description copied from interface:RemoteTrustedListSignatureService
Signs the XML Trusted List with the providedsignatureValue
according to a set of customizable parameters. This method produces a signed XML Trusted List with an enveloped signature.- Specified by:
signDocument
in interfaceRemoteTrustedListSignatureService
- Parameters:
trustedList
-RemoteDocument
XML trusted list to be signed (the full XML file shall be provided)parameters
-RemoteTrustedListSignatureParameters
set of the signing parameterssignatureValue
-SignatureValueDTO
the signature value to incorporate- Returns:
- the signed XML Trusted List with an enveloped signature
- Throws:
DSSException
- if an error occurred
-