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
ConstructorsConstructorDescriptionDefault 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 parametersvoidsetXadesService(XAdESService xadesService) Sets the XAdES signature servicesignDocument(RemoteDocument trustedList, RemoteTrustedListSignatureParameters parameters, SignatureValueDTO signatureValue) Signs the XML Trusted List with the providedsignatureValueaccording 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:RemoteTrustedListSignatureServiceRetrieves 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:
getDataToSignin interfaceRemoteTrustedListSignatureService- Parameters:
trustedList-RemoteDocumentXML trusted list to be signed (the full XML file shall be provided)parameters-RemoteTrustedListSignatureParametersset 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:RemoteTrustedListSignatureServiceSigns the XML Trusted List with the providedsignatureValueaccording to a set of customizable parameters. This method produces a signed XML Trusted List with an enveloped signature.- Specified by:
signDocumentin interfaceRemoteTrustedListSignatureService- Parameters:
trustedList-RemoteDocumentXML trusted list to be signed (the full XML file shall be provided)parameters-RemoteTrustedListSignatureParametersset of the signing parameterssignatureValue-SignatureValueDTOthe signature value to incorporate- Returns:
- the signed XML Trusted List with an enveloped signature
- Throws:
DSSException- if an error occurred
-