Emarref\Jwt\Algorithm\Hmac::ensureSupport PHP Метод

ensureSupport() приватный Метод

private ensureSupport ( )
    private function ensureSupport()
    {
        $supportedAlgorithms = $this->getSupportedAlgorithms();
        if (!in_array($this->getAlgorithm(), $supportedAlgorithms)) {
            throw new \RuntimeException(sprintf('Encryption algorithm "%s" is not supported on this system.', $this->getAlgorithm()));
        }
    }