public function getSharedProtectedHeaderParameter(string $key)
    {
        if ($this->hasSharedProtectedHeaderParameter($key)) {
            return $this->sharedProtectedHeader[$key];
        }

        throw new \InvalidArgumentException(\sprintf('The shared protected header "%s" does not exist.', $key));
    }
public function getSharedProtectedHeaderParameter(string $key)
    {
        if ($this->hasSharedProtectedHeaderParameter($key)) {
            return $this->sharedProtectedHeader[$key];
        }

        throw new \InvalidArgumentException(\sprintf('The shared protected header "%s" does not exist.', $key));
    }
public function getSharedProtectedHeaderParameter ( string $ key ) { if ( $ this -> hasSharedProtectedHeaderParameter ( $ key ) ) { return $ this -> sharedProtectedHeader [ $ key ] ; } throw new \ InvalidArgumentException ( \ sprintf ( 'The shared protected header "%s" does not exist.' , $ key ) ) ; }
Returns the shared protected header parameter identified by the given key.
Throws an exception is the the parameter is not available.

@param string $key The key

@return mixed|null
Returns the shared protected header parameter identified by the given key . Throws an exception is the the parameter is not available .