Neos\Flow\Security\Cryptography\FileBasedSimpleKeyService::checkKeyName PHP Method

checkKeyName() protected method

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
return 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;
    }