public final class PCRegularKeysProcessor extends java.lang.Object implements PCKeysProcessor
PCKeysProcessor. It is used in all the methods where an instance of keys
processor is expected. Normally, you do not call methods passing getInstance() but
should use overloaded methods which imply using PCRegularKeysProcessor.| Modifier and Type | Method and Description |
|---|---|
static PCRegularKeysProcessor |
getInstance()
Returns an instance of regular keys processor that can be passed to methods waiting for
PCKeysProcessor implementation. |
void |
getPublicKey(PCUser user,
PCGetPublicKeyCallback callback)
Asynchronously generates a key pair for the specified PCUser
|
void |
process(PCUser user,
java.util.List<PCTransaction> transactionsToConfirm,
java.util.List<PCTransaction> transactionsToDecline,
PCMultipleProcessingCallback callback)
Processes a series of transactions
|
void |
renew(PCUser user,
PCTransaction transaction,
java.lang.String externalAlias,
PCRenewRequestCallback callback)
Performs key renewal
|
public static PCRegularKeysProcessor getInstance()
PCKeysProcessor implementation.PCKeysProcessor implementationpublic void getPublicKey(PCUser user, PCGetPublicKeyCallback callback)
getPublicKey in interface PCKeysProcessoruser - Target PCUsercallback - Callback to handle resultspublic void process(PCUser user, java.util.List<PCTransaction> transactionsToConfirm, java.util.List<PCTransaction> transactionsToDecline, PCMultipleProcessingCallback callback)
process in interface PCKeysProcessoruser - Target usertransactionsToConfirm - List of transactions which should be confirmedtransactionsToDecline - List of transactions which should be declinedcallback - Callback to handle resultspublic void renew(PCUser user, PCTransaction transaction, java.lang.String externalAlias, PCRenewRequestCallback callback)
PCKeysProcessorrenew in interface PCKeysProcessoruser - 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