Interface RestTrustedListSignatureService
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
RestTrustedListSignatureServiceImpl
@Path("/")
@Produces("application/json")
@Consumes("application/json")
public interface RestTrustedListSignatureService
extends Serializable
This REST interface provides operations for the XML Trusted List signing.
-
Method Summary
Modifier and TypeMethodDescriptiongetDataToSign
(DataToSignTrustedListDTO dataToSign) Retrieves the bytes of the data that need to be signed based on the given XML Trusted List and parameters.signDocument
(SignTrustedListDTO signTrustedList) Signs the XML Trusted List with the provided signatureValue.
-
Method Details
-
getDataToSign
Retrieves the bytes of the data that need to be signed based on the given XML Trusted List and parameters.- Parameters:
dataToSign
-DataToSignTrustedListDTO
a DTO with the needed information (trusted list and parameters) to compute the data to be signed- Returns:
ToBeSignedDTO
the data to be signed
-
signDocument
Signs the XML Trusted List with the provided signatureValue. NOTE: the same set of parameters shall be used for this method call, as it was forgetDataToSign(dataToSign)
method- Parameters:
signTrustedList
-SignTrustedListDTO
a DTO with the needed information (trusted list, parameter and signature value) to generate the signed XML Trusted List with an enveloped signature- Returns:
RemoteDocument
the signed document
-