public class XmlSignatureFinisher extends SignatureFinisher
callbackArgument, certificateInfo, client, done, signature, token| Constructor and Description | 
|---|
XmlSignatureFinisher(RestPkiClient client)  | 
| Modifier and Type | Method and Description | 
|---|---|
byte[] | 
finish()
Performs the step (should only be called after calling setToken()). 
 | 
byte[] | 
getSignedXml()
Returns the signed XML (must only be called after calling the finish() method). 
 | 
void | 
writeSignedXmlToFile(java.nio.file.Path path)
Writes the signed XML to a file (must only be called after calling the finish() method). 
 | 
void | 
writeSignedXmlToFile(java.lang.String path)
Writes the signed XML to a file (must only be called after calling the finish() method). 
 | 
getCallbackArgument, getCertificateInfo, setSignature, setTokenpublic XmlSignatureFinisher(RestPkiClient client)
public byte[] finish()
              throws RestException
SignatureFinisherfinish in class SignatureFinisherRestException - If an error occurs while calling the REST PKI API or if validation of the signature or of the user's certificate fails.public byte[] getSignedXml()
public void writeSignedXmlToFile(java.lang.String path)
                          throws java.io.IOException
path - The path to the file.java.io.IOExceptionpublic void writeSignedXmlToFile(java.nio.file.Path path)
                          throws java.io.IOException
path - The path to the file.java.io.IOException