public class XmlElementSignatureStarter extends XmlSignatureStarter
Note on confidentiality: the XML for the signature is stored on the server between the first and second steps, but never unencrypted. The content is encrypted using AES-128 and the key is not stored on the server, it is instead mixed into the token that is returned and which is necessary on the second step. In other words, the server stores the XML but is unable to read it on its own, therefore the XML contents cannot be compromised, even in the event of a complete data leakage.
signatureElementId, signatureElementLocation, xml
callbackArgument, certificate, certificateInfo, client, done, securityContextId, signaturePolicyId
Constructor and Description |
---|
XmlElementSignatureStarter(RestPkiClient client)
Create a new instance using the given RestPkiClient.
|
Modifier and Type | Method and Description |
---|---|
void |
setElementToSIgnId(java.lang.String elementId)
Sets the Id of the XML element to be signed
|
void |
setIdResolutionTable(XmlIdResolutionTable idResolutionTable)
Sets a table to handle the attribute ID name to be used as ID locally or globally in the XML
|
ClientSideSignatureInstructions |
start()
Performs the first step, should be called after setting the necessary parameters.
|
java.lang.String |
startWithWebPki()
Performs the first step, should be called after setting the necessary parameters.
|
setSignatureElementId, setSignatureElementLocation, setXml, setXml, setXml, setXml
getCertificateInfo, setCallbackArgument, setSecurityContext, setSignaturePolicy, setSignerCertificate
public XmlElementSignatureStarter(RestPkiClient client)
client
- the RestPkiClient which shall be used.public void setElementToSIgnId(java.lang.String elementId)
elementId
- The element Idpublic void setIdResolutionTable(XmlIdResolutionTable idResolutionTable)
idResolutionTable
- The tablepublic ClientSideSignatureInstructions start() throws RestException
start
in class SignatureStarter
RestException
- if an error occurs when calling REST PKIpublic java.lang.String startWithWebPki() throws RestException
startWithWebPki
in class SignatureStarter
RestException
- if an error occurs when calling REST PKI