API Documentation Integration MsecSdk
|
Interface defining the contract for Msec SDK client implementations. More...
Public Member Functions | |
void | Init (IMsecSdkListener listener, MsecSdkConfig config) |
Initializes the Msec SDK client. More... | |
DomainCertificateVerificationResult | VerifyDomainCertificate (string domain, int port) |
Verifies the SSL certificate of a specified domain and port. More... | |
string | GetOTPCode (double timestamp) |
Retrieves an OTP (One-Time Password) code based on a timestamp. More... | |
Interface defining the contract for Msec SDK client implementations.
This interface specifies the core methods that all Msec SDK clients (e.g., Android, iOS) must implement to provide functionality such as initialization, certificate verification, and OTP code generation. It is used by the MsecSdk class to interact with platform-specific clients.
string MsecUnitySdk.IMsecSdkClient.GetOTPCode | ( | double | timestamp | ) |
Retrieves an OTP (One-Time Password) code based on a timestamp.
Implementations must generate or fetch an OTP code using the provided timestamp, typically by calling platform-specific native functions.
timestamp | The timestamp used to generate the OTP code. |
Implemented in MsecUnitySdk.iOS.MsecSdkClient, MsecUnitySdk.DummyMsecSdkClient, MsecUnitySdk.BaseMsecSdkClient, and MsecUnitySdk.Android.MsecSdkClient.
void MsecUnitySdk.IMsecSdkClient.Init | ( | IMsecSdkListener | listener, |
MsecSdkConfig | config | ||
) |
Initializes the Msec SDK client.
Implementations must set up the SDK with the provided listener and configuration, preparing it for subsequent operations like certificate verification or OTP generation.
listener | The listener to receive SDK callbacks (e.g., violations, initialization status). |
config | The configuration settings for the SDK, such as debug mode and app version. |
Implemented in MsecUnitySdk.iOS.MsecSdkClient, MsecUnitySdk.BaseMsecSdkClient, and MsecUnitySdk.Android.MsecSdkClient.
DomainCertificateVerificationResult MsecUnitySdk.IMsecSdkClient.VerifyDomainCertificate | ( | string | domain, |
int | port | ||
) |
Verifies the SSL certificate of a specified domain and port.
Implementations must check the certificate's validity and return the result, typically by interacting with platform-specific APIs or native libraries.
domain | The domain name to verify (e.g., "google.com"). |
port | The port number to check (e.g., 443 for HTTPS). |
Implemented in MsecUnitySdk.iOS.MsecSdkClient, MsecUnitySdk.DummyMsecSdkClient, MsecUnitySdk.BaseMsecSdkClient, and MsecUnitySdk.Android.MsecSdkClient.