protected function validateKid(array $header)
    {
        if (!isset($header['kid'])) {
            return;
        }
        if (empty($this->keys[$header['kid']])) {
            throw new JWTException('Invalid token: Unknown key ID', static::ERROR_KID_UNKNOWN);
        }

        $this->key = $this->keys[$header['kid']];
    }
protected function validateKid(array $header)
    {
        if (!isset($header['kid'])) {
            return;
        }
        if (empty($this->keys[$header['kid']])) {
            throw new JWTException('Invalid token: Unknown key ID', static::ERROR_KID_UNKNOWN);
        }

        $this->key = $this->keys[$header['kid']];
    }
protected function validateKid ( array $ header ) { if ( ! isset ( $ header [ 'kid' ] ) ) { return ; } if ( empty ( $ this -> keys [ $ header [ 'kid' ] ] ) ) { throw new JWTException ( 'Invalid token: Unknown key ID' , static :: ERROR_KID_UNKNOWN ) ; } $ this -> key = $ this -> keys [ $ header [ 'kid' ] ] ; }
Throw up if kid exists and invalid.
Throw up if kid exists and invalid .