Package com.thalesgroup.tmgsdk
Class TMGClient
- java.lang.Object
-
- com.thalesgroup.tmgsdk.TMGClient
-
public class TMGClient extends Object
TheTMGClientis used to create instances ofVisaCTFHelperandMastercardTAFHelper. These instances are utilized to bind and authenticatevProvisionedTokenIdfor Visa ortokenIdfor Mastercard to the device.- Since:
- 1.0
- Version:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description TMGClient()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MastercardTAFHelpercreateMastercardTAFHelper(TMGClientConfiguration tmgClientConfiguration)Creates Mastercard Token Binding Client with the given configuration.VisaCTFHelpercreateVisaCTFHelper(TMGClientConfiguration tmgClientConfiguration)Creates a Visa Token Binding Client with the given configuration.static TMGClientgetInstance()To create an instance ofTMGClient.List<File>getSecureLogFiles()Retrieves the list of secure log files generated by the SecureLogClient.StringgetVersion()To get the version ofTMGSDK.voidreset()To reset theVisaCTFHelperinstance.
-
-
-
Method Detail
-
createVisaCTFHelper
public VisaCTFHelper createVisaCTFHelper(TMGClientConfiguration tmgClientConfiguration) throws TMGClientException
Creates a Visa Token Binding Client with the given configuration.- Parameters:
tmgClientConfiguration- A configuration object with mandatory parameters.- Returns:
null, if thetmgClientConfigurationobject isnull.- Throws:
TMGClientException- When the device environment is unsafe.
-
createMastercardTAFHelper
public MastercardTAFHelper createMastercardTAFHelper(TMGClientConfiguration tmgClientConfiguration) throws TMGClientException
Creates Mastercard Token Binding Client with the given configuration.- Parameters:
tmgClientConfiguration- A configuration object with mandatory parameters.- Returns:
null, iftmgClientConfigurationobject isnull.- Throws:
TMGClientException- When the device environment is unsafe.
-
getSecureLogFiles
public List<File> getSecureLogFiles()
Retrieves the list of secure log files generated by the SecureLogClient.- Returns:
- A list of
Fileobjects representing the secure log files, or null if the SecureLogClient instance is not initialised.
-
getVersion
public String getVersion()
To get the version ofTMGSDK.- Returns:
- The version of
TMGSDKof type string.
-
reset
public void reset()
To reset theVisaCTFHelperinstance.
-
-