API Documentation Integration MsecSdk
|
Android-specific implementation of the Msec SDK client. More...
Public Member Functions | |
override void | Init (IMsecSdkListener listener, MsecSdkConfig config) |
Initializes the Msec SDK client for Android. More... | |
override DomainCertificateVerificationResult | VerifyDomainCertificate (string domain, int port) |
Verifies the SSL certificate of a domain on Android. More... | |
override string | GetOTPCode (double timestamp) |
Retrieves an OTP code using a timestamp on Android. More... | |
override void | RegisterCallbacks () |
Registers native callbacks for the Msec SDK on Android. More... | |
Properties | |
static MsecSdkClient | Instance [get] |
Gets the singleton instance of the MsecSdkClient. More... | |
Additional Inherited Members | |
![]() | |
void | LogDebug (object message) |
Logs a debug message if debug mode is enabled. More... | |
void | LogError (object message) |
Logs an error message if debug mode is enabled. More... | |
![]() | |
IMsecSdkListener | listener |
The listener for receiving SDK callbacks. More... | |
MsecSdkConfig | config |
The configuration settings for the SDK. More... | |
Android-specific implementation of the Msec SDK client.
This class extends BaseMsecSdkClient to provide Android-specific functionality for the Msec SDK, including JNI integration, native callback registration, and certificate verification. It uses a singleton pattern to ensure a single instance is used throughout the application.
|
inlinevirtual |
Retrieves an OTP code using a timestamp on Android.
Calls a native function via P/Invoke to get the OTP code from the msec library.
timestamp | The timestamp used to generate the OTP code. |
Implements MsecUnitySdk.BaseMsecSdkClient.
|
inlinevirtual |
Initializes the Msec SDK client for Android.
Extends the base Init method to perform Android-specific initialization, including JNI calls to the MSecSdk Java class and callback registration.
listener | The listener to receive SDK callbacks. |
config | The configuration settings for the SDK. |
Reimplemented from MsecUnitySdk.BaseMsecSdkClient.
|
inlinevirtual |
Registers native callbacks for the Msec SDK on Android.
Sets up the violation, performance, and initialization callbacks by registering them with the native msec library.
Implements MsecUnitySdk.BaseMsecSdkClient.
|
inlinevirtual |
Verifies the SSL certificate of a domain on Android.
Calls the Java method verifyDomainSSLCertificate via JNI to perform the verification.
domain | The domain name to verify (e.g., "google.com"). |
port | The port number to check (e.g., 443 for HTTPS). |
Implements MsecUnitySdk.BaseMsecSdkClient.
|
staticget |
Gets the singleton instance of the MsecSdkClient.