private function checkHasSharedProtectedHeaders() { Assertion::notEmpty($this->getSharedProtectedHeaders(), 'This JWE does not have shared protected headers and cannot be converted into Compact JSON.'); }