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 Details

    • RemoteTrustedListSignatureServiceImpl

      public RemoteTrustedListSignatureServiceImpl()
      Default constructor instantiating object with null XAdESService
  • Method Details

    • setXadesService

      public void setXadesService(eu.europa.esig.dss.xades.signature.XAdESService xadesService)
      Sets the XAdES signature service
      Parameters:
      xadesService - XAdESService
    • getDataToSign

      public eu.europa.esig.dss.ws.dto.ToBeSignedDTO getDataToSign(eu.europa.esig.dss.ws.dto.RemoteDocument trustedList, eu.europa.esig.dss.ws.signature.dto.parameters.RemoteTrustedListSignatureParameters parameters) throws eu.europa.esig.dss.model.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 interface RemoteTrustedListSignatureService
      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:
      eu.europa.esig.dss.model.DSSException - if an error occurred
    • signDocument

      public eu.europa.esig.dss.ws.dto.RemoteDocument signDocument(eu.europa.esig.dss.ws.dto.RemoteDocument trustedList, eu.europa.esig.dss.ws.signature.dto.parameters.RemoteTrustedListSignatureParameters parameters, eu.europa.esig.dss.ws.dto.SignatureValueDTO signatureValue) throws eu.europa.esig.dss.model.DSSException
      Description copied from interface: RemoteTrustedListSignatureService
      Signs the XML Trusted List with the provided signatureValue according to a set of customizable parameters. This method produces a signed XML Trusted List with an enveloped signature.
      Specified by:
      signDocument in interface RemoteTrustedListSignatureService
      Parameters:
      trustedList - RemoteDocument XML trusted list to be signed (the full XML file shall be provided)
      parameters - RemoteTrustedListSignatureParameters set of the signing parameters
      signatureValue - SignatureValueDTO the signature value to incorporate
      Returns:
      the signed XML Trusted List with an enveloped signature
      Throws:
      eu.europa.esig.dss.model.DSSException - if an error occurred