Interface RemoteTrustedListSignatureService
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
RemoteTrustedListSignatureServiceImpl
Service to be used for a simplified straight-forward signing of a Trusted List
-
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 parameterssignDocument
(RemoteDocument trustedList, RemoteTrustedListSignatureParameters parameters, SignatureValueDTO signatureValue) Signs the XML Trusted List with the providedsignatureValue
according to a set of customizable parameters.
-
Method Details
-
getDataToSign
ToBeSignedDTO getDataToSign(RemoteDocument trustedList, RemoteTrustedListSignatureParameters parameters) throws DSSException 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- 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
RemoteDocument signDocument(RemoteDocument trustedList, RemoteTrustedListSignatureParameters parameters, SignatureValueDTO signatureValue) throws DSSException 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.- 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
-