trait FullAuthKey

A trait for getting a serialized user key with both the ID and auth key

Methods

static FullAuthKey|null
TryLoadByFullKey(ObjectDatabase $database, string $code, Account|null $account = null)

Tries to load an AuthObject by the full serialized key - DOES NOT CheckFullKey()!

bool
CheckFullKey(string $code)

Checks the given full/serialized key for validity, returns result

string
GetFullKey()

Gets the full serialized key value for the user

Details

at line 130
static FullAuthKey|null TryLoadByFullKey(ObjectDatabase $database, string $code, Account|null $account = null)

Tries to load an AuthObject by the full serialized key - DOES NOT CheckFullKey()!

Parameters

ObjectDatabase $database

database reference

string $code

the full user/serialized code

Account|null $account

the owner of the authObject or null for any

Return Value

FullAuthKey|null

loaded object or null if not found

at line 144
bool CheckFullKey(string $code)

Checks the given full/serialized key for validity, returns result

Parameters

string $code

Return Value

bool

at line 157
string GetFullKey()

Gets the full serialized key value for the user

The serialized string contains both the key ID and key value

Return Value

string