Emarref\Jwt\Algorithm\Hmac::ensureSupport PHP Method

ensureSupport() private method

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()));
        }
    }