public abstract class SignedRequest extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,String> |
signatures |
protected String |
snapshot |
| Constructor and Description |
|---|
SignedRequest()
Create a new instance of
SignedRequest |
| Modifier and Type | Method and Description |
|---|---|
void |
appendSignature(String cardId,
String signature)
Appends the signature of request fingerprint.
|
String |
exportRequest()
Export request.
|
SignedRequestModel |
getRequestModel() |
Map<String,String> |
getSignatures() |
String |
getSnapshot()
Get request snapshot.
|
static <T extends SignedRequest> |
importRequest(String exportedRequest,
Class<T> clazz)
Import request.
|
protected abstract void |
restoreRequest(String snapshot,
Map<String,String> signatures)
Restores the request from snapshot.
|
protected abstract String |
takeSnapshot()
Takes the request snapshot.
|
protected abstract void restoreRequest(String snapshot, Map<String,String> signatures)
snapshot - the request snapshot.signatures - the request signatures.protected abstract String takeSnapshot()
public void appendSignature(String cardId, String signature)
cardId - the card identifier.signature - the signature.public SignedRequestModel getRequestModel()
public String exportRequest()
public static <T extends SignedRequest> T importRequest(String exportedRequest, Class<T> clazz)
exportedRequest - the request as Base64 encoded string.clazz - the request class.public String getSnapshot()
Copyright © 2016. All rights reserved.