Suggestions

close search

Add Messaging, Voice, and Authentication to your apps with Vonage Communications APIs

Visit the Vonage API Developer Portal

OpenTokSDK.Util.OpenTokUtils

Static Public Member Functions

static string [] SplitString (string toBeSplitted, char separator, int numberOfFields)
static string Decode64 (string encodedString)
static string EncodeHMAC (string input, string key)
static string Convert64 (string input)
static double GetUnixTimeStampForDate (DateTime date)
static double GetCurrentUnixTimeStamp ()
static DateTime UnixTimeStampToDateTime (double unixTimeStamp)
static int GetRandomNumber ()
static bool TestIpAddress (string location)
static bool ValidateSession (string sessionId)
static string convertToCamelCase (string text)
static int GetPartnerIdFromSessionId (string sessionId)
static void ValidateTlsVersion (WebException e)
 Used if a WebException is caught to check that the TLS version makes sense If the TLS version is less than 1.2 and not the System Default (0) this method throws an exception More...

Member Function Documentation

◆ ValidateTlsVersion()

static void OpenTokSDK.Util.OpenTokUtils.ValidateTlsVersion ( WebException  e)

Used if a WebException is caught to check that the TLS version makes sense If the TLS version is less than 1.2 and not the System Default (0) this method throws an exception

Parameters
e