API Documentation Integration MsecSdk
|
iOS-specific implementation of the Msec SDK client. More...
Public Member Functions | |
override void | Init (IMsecSdkListener listener, MsecSdkConfig config) |
Initializes the Msec SDK client for iOS. More... | |
override DomainCertificateVerificationResult | VerifyDomainCertificate (string domain, int port) |
Verifies the SSL certificate of a domain on iOS. More... | |
override string | GetOTPCode (double timestamp) |
Retrieves an OTP code using a timestamp on iOS. More... | |
override void | RegisterCallbacks () |
Registers native callbacks for the Msec SDK on iOS. More... | |
Properties | |
static MsecSdkClient | Instance [get] |
Gets the singleton instance of the MsecSdkClient for iOS. 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... | |
iOS-specific implementation of the Msec SDK client.
This class extends BaseMsecSdkClient to provide iOS-specific functionality for the Msec SDK, including native callback registration, certificate verification, and OTP generation via P/Invoke calls to the iOS native library. It uses a singleton pattern to ensure a single instance is used throughout the application.
|
inlinevirtual |
Retrieves an OTP code using a timestamp on iOS.
Calls the native msec_get_otp_code function via P/Invoke to get the OTP code from the iOS library.
timestamp | The timestamp used to generate the OTP code. |
Implements MsecUnitySdk.BaseMsecSdkClient.
|
inlinevirtual |
Initializes the Msec SDK client for iOS.
Extends the base Init method to perform iOS-specific initialization by calling the native msec_init function and registering callbacks.
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 iOS.
Sets up the violation, performance, and initialization callbacks by registering them with the native iOS library.
Implements MsecUnitySdk.BaseMsecSdkClient.
|
inlinevirtual |
Verifies the SSL certificate of a domain on iOS.
Calls the native msec_verify_domain_ssl_certificate function via P/Invoke 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 for iOS.