Package com.thalesgroup.tmgsdk
Class TMGClientConfiguration
- java.lang.Object
-
- com.thalesgroup.tmgsdk.TMGClientConfiguration
-
public class TMGClientConfiguration extends Object
TMGClientConfigurationis used to configure the application context, server URL, server certificate, device authentication method, key identifier and certificate PINs.- Since:
- 1.0
- Version:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description TMGClientConfiguration(Context context, String tmgUrl, byte[] certificate, String keyId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidenableSecureLog(boolean isSecureLogEnabled)Enables or disables secure logging based on the provided flag.byte[]getCertificate()Gets the certificate used for public key generation during the communication with TMG server.ContextgetContext()Gets the application context.StringgetKeyId()Gets the Key identifier.StringgetTmgUrl()Gets the TMG server URL.booleanisSecureLogEnabled()voidsetSecureLogEnabled(boolean secureLogEnabled)Enables the state of secure log.
-
-
-
Constructor Detail
-
TMGClientConfiguration
public TMGClientConfiguration(Context context, String tmgUrl, byte[] certificate, String keyId)
- Parameters:
context- AndroidFragmentActivity. This is a mandatory input which will be used during the keyguard authentication.tmgUrl- The TMG server URL which is a mandatory input. The path should start withhttp://and should containthalescloud.io.certificate- Sets the certificate which is a mandatory input used for public key generation during the communication with TMG server. It should start with-----BEGIN CERTIFICATE-----and end with-----END CERTIFICATE-----.keyId- A 32-byte hexadecimal string key identifier which is a mandatory input.
-
-
Method Detail
-
enableSecureLog
public void enableSecureLog(boolean isSecureLogEnabled)
Enables or disables secure logging based on the provided flag.- Parameters:
isSecureLogEnabled-trueto enable secure logging,falseto disable it.
-
setSecureLogEnabled
public void setSecureLogEnabled(boolean secureLogEnabled)
Enables the state of secure log.- Parameters:
secureLogEnabled-trueto enable secure logging,falseto disable it.
-
isSecureLogEnabled
public boolean isSecureLogEnabled()
-
getKeyId
public String getKeyId()
Gets the Key identifier.
-
getContext
public Context getContext()
Gets the application context.
-
getTmgUrl
public String getTmgUrl()
Gets the TMG server URL.
-
getCertificate
public byte[] getCertificate()
Gets the certificate used for public key generation during the communication with TMG server.
-
-