public abstract class SignatureFinisher2
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected RestPkiClient |
client |
protected java.lang.Boolean |
forceBlobResult |
protected byte[] |
signature |
protected java.lang.String |
token |
| Constructor and Description |
|---|
SignatureFinisher2(RestPkiClient client)
Create a new instance using the given RestPkiClient.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
checkCompatibility() |
SignatureResult |
finish()
Finalizes the signature process, returning the SignatureResult instance, that contains the
signature information, including the signer certificate and the signature file.
|
protected abstract java.lang.String |
getApiRoute() |
RestPkiClient |
getClient() |
java.lang.Boolean |
getForceBlobResult() |
byte[] |
getSignature() |
java.lang.String |
getToken() |
void |
setClient(RestPkiClient client) |
void |
setForceBlobResult(java.lang.Boolean forceBlobResult) |
void |
setSignature(byte[] 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 byte[] signature
protected java.lang.Boolean forceBlobResult
public SignatureFinisher2(RestPkiClient client)
client - the RestPkiClient which shall be used.public java.lang.String getToken()
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 byte[] getSignature()
public void setSignature(byte[] signature)
signature - The signature operation output.public java.lang.Boolean getForceBlobResult()
public void setForceBlobResult(java.lang.Boolean forceBlobResult)
forceBlobResult - public RestPkiClient getClient()
public void setClient(RestPkiClient client)
public SignatureResult finish() throws RestException
RestException - if an error occurs when calling REST PKI.protected abstract void checkCompatibility()
throws RestException
RestExceptionprotected abstract java.lang.String getApiRoute()