Neos\Flow\Security\Cryptography\FileBasedSimpleKeyService::checkKeyName PHP Метод

checkKeyName() защищенный Метод

Checks if the given key name is valid amd returns it (unchanged) if yes. Otherwise it throws an exception.
protected checkKeyName ( string $name ) : string
$name string
Результат string
    protected function checkKeyName($name)
    {
        if (preg_match(self::PATTERN_KEYNAME, $name) !== 1) {
            throw new SecurityException('The key name "' . $name . '" is not valid.', 1334219077);
        }
        return $name;
    }