public class PadesSignatureFinisher extends SignatureFinisher
callbackArgument, certificateInfo, client, done, signature, token
Constructor and Description |
---|
PadesSignatureFinisher(RestPkiClient client) |
Modifier and Type | Method and Description |
---|---|
byte[] |
finish()
Performs the step (should only be called after calling setToken()).
|
byte[] |
getSignedPdf()
Returns the signed PDF (must only be called after calling the finish() method).
|
void |
writeSignedPdfToFile(java.nio.file.Path path)
Writes the signed PDF to a file (must only be called after calling the finish() method).
|
void |
writeSignedPdfToFile(java.lang.String path)
Writes the signed PDF to a file (must only be called after calling the finish() method).
|
getCallbackArgument, getCertificateInfo, setSignature, setToken
public PadesSignatureFinisher(RestPkiClient client)
public byte[] finish() throws RestException
SignatureFinisher
finish
in class SignatureFinisher
RestException
- 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[] getSignedPdf()
public void writeSignedPdfToFile(java.lang.String path) throws java.io.IOException
path
- The path to the file.java.io.IOException
public void writeSignedPdfToFile(java.nio.file.Path path) throws java.io.IOException
path
- The path to the file.java.io.IOException