Files
UnrealEngineUWP/Engine/Source/Runtime/Online/SSL/Public/SslModule.h
Ben Marsh 20bf0eb6a1 Updating copyright notices to 2017 (copying from //Tasks/UE4/Dev-Copyright-2017).
#rb none
#lockdown Nick.Penwarden

[CL 3226823 by Ben Marsh in Main branch]
2016-12-08 08:52:44 -05:00

75 lines
1.7 KiB
C++

// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "ModuleManager.h"
class ISslCertificateManager;
/**
* Module for SSL/TLS certificate management
*/
class FSslModule :
public IModuleInterface, public FSelfRegisteringExec
{
public:
// FSelfRegisteringExec
/**
* Handle exec commands starting with "SSL"
*
* @param InWorld the world context
* @param Cmd the exec command being executed
* @param Ar the archive to log results to
*
* @return true if the handler consumed the input, false to continue searching handlers
*/
virtual bool Exec(UWorld* InWorld, const TCHAR* Cmd, FOutputDevice& Ar) override;
// FSslModule
/**
* Singleton-like access to this module's interface. This is just for convenience!
* Beware of calling this during the shutdown phase, though. Your module might have been unloaded already.
*
* @return Returns singleton instance, loading the module on demand if needed
*/
SSL_API static FSslModule& Get();
/**
* Accessor for the SSL certificate container
*
* @return Http request manager used by the module
*/
inline ISslCertificateManager& GetCertificateManager()
{
check(CertificateManagerPtr != nullptr);
return *CertificateManagerPtr;
}
private:
// IModuleInterface
/**
* Called when Http module is loaded
* Initialize platform specific parts of Http handling
*/
virtual void StartupModule() override;
/**
* Called when Http module is unloaded
* Shutdown platform specific parts of Http handling
*/
virtual void ShutdownModule() override;
///** Keeps track of SSL certificates */
ISslCertificateManager* CertificateManagerPtr;
/** singleton for the module while loaded and available */
static FSslModule* Singleton;
};