public abstract class SignatureFinisher
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
protected java.lang.String | 
callbackArgument  | 
protected PKCertificate | 
certificateInfo  | 
protected RestPkiClient | 
client  | 
protected boolean | 
done  | 
protected java.lang.String | 
signature  | 
protected java.lang.String | 
token  | 
| Constructor and Description | 
|---|
SignatureFinisher(RestPkiClient client)  | 
| Modifier and Type | Method and Description | 
|---|---|
abstract byte[] | 
finish()
Performs the step (should only be called after calling setToken()). 
 | 
java.lang.String | 
getCallbackArgument()
Returns the callback argument, if one was passed during the first step (must only be called after
 calling the finish() method). 
 | 
PKCertificate | 
getCertificateInfo()
Returns information about the signer's certificate (can only be called after calling the
 finish() method). 
 | 
void | 
setSignature(java.lang.String signature)
Sets the signature performed using the user certificate's private key (should not be used if the signature was
 started with the method startWithWebPki). 
 | 
void | 
setToken(java.lang.String token)
Sets the token previously yielded by the first step. 
 | 
protected RestPkiClient client
protected java.lang.String token
protected java.lang.String signature
protected boolean done
protected java.lang.String callbackArgument
protected PKCertificate certificateInfo
public SignatureFinisher(RestPkiClient client)
public void setToken(java.lang.String token)
token - The token, a 43-character case-sensitive string containing only letters, numbers and the characters
 "-" and "_" (therefore URL and HTML safe).public void setSignature(java.lang.String signature)
signature - The signature operation output, encoded in Base64 (this is the format returned by the Web PKI component's signData and signHash methods).public abstract byte[] finish()
                       throws RestException
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 java.lang.String getCallbackArgument()
public PKCertificate getCertificateInfo()