51Degrees Pipeline for PHP

fiftyone\pipeline\core\LicenseKey Class Reference

Detailed Description

Masks license keys for log entries and error messages.

A license key is shown as its last 4 characters, and a key of 4 characters or fewer is replaced entirely.

Static Public Member Functions

static mask (string $key)
 The key with every character before the last 4 replaced.
static maskQuery (string $text)
 The text with the value of each license, licenseKey and licenseKeys query parameter masked, in either spelling, as the cloud service also reads licence.

Member Function Documentation

◆ maskQuery()

fiftyone\pipeline\core\LicenseKey::maskQuery ( string $text)
static

The text with the value of each license, licenseKey and licenseKeys query parameter masked, in either spelling, as the cloud service also reads licence.

A value may hold several keys separated by a vertical bar or a comma. The text can be a URL or a message that names one.