Cuberite
A lightweight, fast and extensible game server for Minecraft
Classes | Namespaces | Functions | Variables
MojangAPI.cpp File Reference
#include "Globals.h"
#include "MojangAPI.h"
#include "HTTP/UrlClient.h"
#include "IniFile.h"
#include "JsonUtils.h"
#include "json/json.h"
#include "mbedTLS++/BlockingSslClientSocket.h"
#include "mbedTLS++/SslConfig.h"
#include "OSSupport/IsThread.h"
#include "RankManager.h"
#include "Root.h"
#include "SQLiteCpp/Database.h"
#include "SQLiteCpp/Statement.h"
Include dependency graph for MojangAPI.cpp:

Go to the source code of this file.

Classes

class  cMojangAPI::cUpdateThread
 

Namespaces

 MojangTrustedRootCAs
 

Functions

static const AStringMapMojangTrustedRootCAs::UrlClientOptions ()
 Returns the Options that should be used for cUrlClient queries to the Mojang APIs. More...
 

Variables

constexpr char DEFAULT_NAME_TO_UUID_ADDRESS [] = "/profiles/minecraft"
 
constexpr char DEFAULT_NAME_TO_UUID_SERVER [] = "api.mojang.com"
 
constexpr char DEFAULT_UUID_TO_PROFILE_ADDRESS [] = "/session/minecraft/profile/%UUID%?unsigned=false"
 
constexpr char DEFAULT_UUID_TO_PROFILE_SERVER [] = "sessionserver.mojang.com"
 
const Int64 MAX_AGE = 7 * 24 * 60 * 60
 The maximum age for items to be kept in the cache. More...
 
const int MAX_PER_QUERY = 100
 The maximum number of names to send in a single query. More...
 

Variable Documentation

◆ DEFAULT_NAME_TO_UUID_ADDRESS

constexpr char DEFAULT_NAME_TO_UUID_ADDRESS[] = "/profiles/minecraft"
constexpr

Definition at line 35 of file MojangAPI.cpp.

◆ DEFAULT_NAME_TO_UUID_SERVER

constexpr char DEFAULT_NAME_TO_UUID_SERVER[] = "api.mojang.com"
constexpr

Definition at line 34 of file MojangAPI.cpp.

◆ DEFAULT_UUID_TO_PROFILE_ADDRESS

constexpr char DEFAULT_UUID_TO_PROFILE_ADDRESS[] = "/session/minecraft/profile/%UUID%?unsigned=false"
constexpr

Definition at line 37 of file MojangAPI.cpp.

◆ DEFAULT_UUID_TO_PROFILE_SERVER

constexpr char DEFAULT_UUID_TO_PROFILE_SERVER[] = "sessionserver.mojang.com"
constexpr

Definition at line 36 of file MojangAPI.cpp.

◆ MAX_AGE

const Int64 MAX_AGE = 7 * 24 * 60 * 60

The maximum age for items to be kept in the cache.

Any item older than this will be removed.

Definition at line 25 of file MojangAPI.cpp.

◆ MAX_PER_QUERY

const int MAX_PER_QUERY = 100

The maximum number of names to send in a single query.

Definition at line 28 of file MojangAPI.cpp.