public interface PCKeysProcessor
PCRegularKeysProcessor
, generates key pair in Android KeyStore
and uses it to process transactions.Modifier and Type | Method and Description |
---|---|
void |
getPublicKey(PCUser user,
PCGetPublicKeyCallback callback)
Generates a key pair (or reuses an existing one if this is applicable to a particular case) and returns a public
key via the callback.
|
void |
process(PCUser user,
java.util.List<PCTransaction> transactionsToConfirm,
java.util.List<PCTransaction> transactionsToDecline,
PCMultipleProcessingCallback callback)
Processes a set of transactions.
|
void |
renew(PCUser user,
PCTransaction transaction,
java.lang.String externalAlias,
PCRenewRequestCallback callback)
Performs key renewal
|
void getPublicKey(PCUser user, PCGetPublicKeyCallback callback)
user
- Target PCUser
callback
- Callback to handle resultsvoid process(PCUser user, java.util.List<PCTransaction> transactionsToConfirm, java.util.List<PCTransaction> transactionsToDecline, PCMultipleProcessingCallback callback)
user
- Target usertransactionsToConfirm
- List of transactions which should be confirmedtransactionsToDecline
- List of transactions which should be declinedcallback
- Callback to handle resultsvoid renew(PCUser user, PCTransaction transaction, java.lang.String externalAlias, PCRenewRequestCallback callback)
user
- Target user whose keys are to be renewedtransaction
- Pseudo-transaction for which HMAC and signature will be calculated with existing keysexternalAlias
- External alias generated in advance. New key pair must be accessible by this aliascallback
- Callback for handling results