My Project
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Properties | List of all members
PlayFab.Internal.PlayFabWebRequest Class Reference
Inheritance diagram for PlayFab.Internal.PlayFabWebRequest:
PlayFab.ITransportPlugin PlayFab.IPlayFabPlugin

Public Member Functions

void Initialize ()
 
void OnDestroy ()
 
void SimpleGetCall (string fullUrl, Action< byte[]> successCallback, Action< string > errorCallback)
 
void SimplePutCall (string fullUrl, byte[] payload, Action< byte[]> successCallback, Action< string > errorCallback)
 
void SimplePostCall (string fullUrl, byte[] payload, Action< byte[]> successCallback, Action< string > errorCallback)
 
void MakeApiCall (object reqContainerObj)
 
void Update ()
 
int GetPendingMessages ()
 
void Initialize ()
 
void Update ()
 
void OnDestroy ()
 
void SimpleGetCall (string fullUrl, Action< byte[]> successCallback, Action< string > errorCallback)
 
void SimplePutCall (string fullUrl, byte[] payload, Action< byte[]> successCallback, Action< string > errorCallback)
 
void SimplePostCall (string fullUrl, byte[] payload, Action< byte[]> successCallback, Action< string > errorCallback)
 
void MakeApiCall (object reqContainer)
 
int GetPendingMessages ()
 

Static Public Member Functions

static void SkipCertificateValidation ()
 Disable encryption certificate validation within PlayFabWebRequest using this request. This is not generally recommended. As of early 2018: None of the built-in Unity mechanisms validate the certificate, using .Net 3.5 equivalent runtime It is also not currently feasible to provide a single cross platform solution that will correctly validate a certificate. The Risk: All Unity HTTPS mechanisms are vulnerable to Man-In-The-Middle attacks. The only more-secure option is to define a custom CustomCertValidationHook, specifically tailored to the platforms you support, which validate the cert based on a list of trusted certificate providers. This list of providers must be able to update itself, as the base certificates for those providers will also expire and need updating on a regular basis.
 

Properties

static System.Net.Security.RemoteCertificateValidationCallback CustomCertValidationHook [set]
 Provide PlayFabWebRequest with a custom ServerCertificateValidationCallback which can be used to validate the PlayFab encryption certificate. Please do not:
 
bool IsInitialized [get]
 
- Properties inherited from PlayFab.ITransportPlugin
bool IsInitialized [get]
 

Member Function Documentation

◆ GetPendingMessages()

int PlayFab.Internal.PlayFabWebRequest.GetPendingMessages ( )
inline

◆ Initialize()

void PlayFab.Internal.PlayFabWebRequest.Initialize ( )
inline

◆ MakeApiCall()

void PlayFab.Internal.PlayFabWebRequest.MakeApiCall ( object  reqContainerObj)
inline

◆ OnDestroy()

void PlayFab.Internal.PlayFabWebRequest.OnDestroy ( )
inline

◆ SimpleGetCall()

void PlayFab.Internal.PlayFabWebRequest.SimpleGetCall ( string  fullUrl,
Action< byte[]>  successCallback,
Action< string >  errorCallback 
)
inline

◆ SimplePostCall()

void PlayFab.Internal.PlayFabWebRequest.SimplePostCall ( string  fullUrl,
byte[]  payload,
Action< byte[]>  successCallback,
Action< string >  errorCallback 
)
inline

◆ SimplePutCall()

void PlayFab.Internal.PlayFabWebRequest.SimplePutCall ( string  fullUrl,
byte[]  payload,
Action< byte[]>  successCallback,
Action< string >  errorCallback 
)
inline

◆ Update()

void PlayFab.Internal.PlayFabWebRequest.Update ( )
inline

Property Documentation

◆ CustomCertValidationHook

System.Net.Security.RemoteCertificateValidationCallback PlayFab.Internal.PlayFabWebRequest.CustomCertValidationHook
staticset

Provide PlayFabWebRequest with a custom ServerCertificateValidationCallback which can be used to validate the PlayFab encryption certificate. Please do not:

  • Hard code the current PlayFab certificate information - The PlayFab certificate updates itself on a regular schedule, and your game will fail and require a republish to fix
  • Hard code a list of static certificate authorities - Any single exported list of certificate authorities will become out of date, and have the same problem when the CA cert expires Real solution:
  • A mechanism where a valid certificate authority list can be securely downloaded and updated without republishing the client when existing certificates expire.

◆ IsInitialized

bool PlayFab.Internal.PlayFabWebRequest.IsInitialized
get

The documentation for this class was generated from the following file: