Package com.thalesgroup.tmgsdk.visa
Interface VisaCTFHelper
-
public interface VisaCTFHelperTheVisaCTFHelperAPI is used to bind thevProvisionedTokenIdto the device and authenticate transactions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidauthenticateTransaction(String vProvisionedTokenId, TransactionListener transactionListener)Authenticates the transaction for tokenID.voidcreateBinding(String vProvisionedTokenId, String correlationId, TokenBindingListener tokenBindingListener)Binds the Visa token to the device.BindingStategetBindingState(String vProvisionedTokenId)Gets the binding status of a Visa provisioned token ID.voidremoveBinding(String correlationId, String vProvisionedTokenId, RemoveBindingListener removeBindingListener)Removes the specified Visa provisioned token ID from the device.IDVSessionresumeBinding(String vProvisionedTokenId, TokenBindingListener tokenBindingListener)Gets the token which is pending for activation.voidsyncBindingState(String correlationId, String vProvisionedTokenId, SyncBindingStateListener syncBindingStateListener)Synchronises the binding state between the client and server.
-
-
-
Method Detail
-
createBinding
void createBinding(String vProvisionedTokenId, String correlationId, TokenBindingListener tokenBindingListener)
Binds the Visa token to the device. When this API is used, the whole binding process will restart from scratch. If used on an already bound token, the token will be bound again with a potential new end user authentication.- Parameters:
vProvisionedTokenId- The Visa provisioned token ID. This is a mandatory input which is retrieved during the tokenization process.correlationId- A mandatory which is generated by the app. This is a technical identifier used for troubleshooting.tokenBindingListener- The callback for app to take action and to provide the final status of the token binding status. This is a mandatory input.
-
authenticateTransaction
void authenticateTransaction(String vProvisionedTokenId, TransactionListener transactionListener)
Authenticates the transaction for tokenID.- Parameters:
vProvisionedTokenId- The Visa provisioned token ID which is a mandatory input.transactionListener- The callback for app to take action and to provide the final status of the token binding status. This is a mandatory input.
-
getBindingState
BindingState getBindingState(String vProvisionedTokenId) throws TMGClientException
Gets the binding status of a Visa provisioned token ID.- Parameters:
vProvisionedTokenId- The Visa provisioned token ID which is a mandatory input.- Returns:
- The current
BindingStateof the vProvisionedTokenId. - Throws:
TMGClientException- In cases where there are any security and parsing related errors.
-
resumeBinding
IDVSession resumeBinding(String vProvisionedTokenId, TokenBindingListener tokenBindingListener)
Gets the token which is pending for activation. Use this method when resuming an ongoing binding session.- Parameters:
vProvisionedTokenId- The Visa provisioned token ID which is a mandatory input.tokenBindingListener- The callback for app to provide the final status of Resume Binding process. This is a mandatory input.- Returns:
- An
IDVSessionfor the vProvisionedTokenId.
-
removeBinding
void removeBinding(String correlationId, String vProvisionedTokenId, RemoveBindingListener removeBindingListener)
Removes the specified Visa provisioned token ID from the device.- Parameters:
correlationId- A mandatory which is generated by the app. This is a technical identifier used for troubleshooting.vProvisionedTokenId- The Visa provisioned token ID which is a mandatory input.removeBindingListener- The callback for app to provide the final status of Resume Binding process. This is a mandatory input.
-
syncBindingState
void syncBindingState(String correlationId, String vProvisionedTokenId, SyncBindingStateListener syncBindingStateListener)
Synchronises the binding state between the client and server.- Parameters:
correlationId- A mandatory which is generated by the app. This is a technical identifier used for troubleshooting.vProvisionedTokenId- The Visa provisioned token ID which is a mandatory input.syncBindingStateListener- The callback for app to provide the final status of Sync Binding process. This is a mandatory input.
-
-