Jose\Algorithm\Signature\ECDSA::checkKey PHP Method

checkKey() private method

private checkKey ( Jose\Object\JWKInterface $key )
$key Jose\Object\JWKInterface
    private function checkKey(JWKInterface $key)
    {
        Assertion::eq($key->get('kty'), 'EC', 'Wrong key type.');
        Assertion::true($key->has('x'), 'The key parameter "x" is missing.');
        Assertion::true($key->has('y'), 'The key parameter "y" is missing.');
        Assertion::true($key->has('crv'), 'The key parameter "crv" is missing.');
    }