Class TMGClientConfiguration


  • public class TMGClientConfiguration
    extends Object
    TMGClientConfiguration is 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 Detail

      • TMGClientConfiguration

        public TMGClientConfiguration​(Context context,
                                      String tmgUrl,
                                      byte[] certificate,
                                      String keyId)
        Parameters:
        context - Android FragmentActivity. 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 with http:// and should contain thalescloud.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 - true to enable secure logging, false to disable it.
      • setSecureLogEnabled

        public void setSecureLogEnabled​(boolean secureLogEnabled)
        Enables the state of secure log.
        Parameters:
        secureLogEnabled - true to enable secure logging, false to 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.