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