API Documentation Integration MsecSdk
|
A singleton class that provides an interface to the Msec SDK for Unity. More...
Static Public Member Functions | |
static void | Init (IMsecSdkListener listener, MsecSdkConfig config) |
Initializes the Msec SDK with a listener and configuration. More... | |
static string | GetOTPCode (double timestamp) |
Retrieves an OTP (One-Time Password) code based on a timestamp. More... | |
static DomainCertificateVerificationResult | VerifyDomainCertificate (string domain, int port) |
Verifies the certificate of a specified domain and port. More... | |
Static Public Attributes | |
static MsecSdk | instance |
The static singleton instance of the MsecSdk class. | |
Properties | |
static MsecSdk | Instance [get] |
Gets the singleton instance of the MsecSdk class. More... | |
A singleton class that provides an interface to the Msec SDK for Unity.
This class manages the initialization and interaction with platform-specific implementations of the Msec SDK (e.g., Android, iOS, or a dummy client). It uses a singleton pattern to ensure a single instance is used throughout the application.
|
inlinestatic |
Retrieves an OTP (One-Time Password) code based on a timestamp.
Delegates the request to the platform-specific client.
timestamp | The timestamp used to generate the OTP code. |
|
inlinestatic |
Initializes the Msec SDK with a listener and configuration.
This method must be called before using other Msec SDK functionalities. It delegates the initialization to the platform-specific client.
listener | The listener to receive SDK callbacks (e.g., violations, initialization status). |
config | The configuration settings for the SDK. |
|
inlinestatic |
Verifies the certificate of a specified domain and port.
Delegates the verification to the platform-specific client.
domain | The domain name to verify (e.g., "google.com"). |
port | The port number to check (e.g., 443 for HTTPS). |
|
staticget |