public function withSharedProtectedHeader(array $sharedProtectedHeader): self
    {
        $this->checkDuplicatedHeaderParameters($sharedProtectedHeader, $this->sharedHeader);
        foreach ($this->recipients as $recipient) {
            $this->checkDuplicatedHeaderParameters($sharedProtectedHeader, $recipient->getHeader());
        }
        $clone = clone $this;
        $clone->sharedProtectedHeader = $sharedProtectedHeader;

        return $clone;
    }
public function withSharedProtectedHeader(array $sharedProtectedHeader): self
    {
        $this->checkDuplicatedHeaderParameters($sharedProtectedHeader, $this->sharedHeader);
        foreach ($this->recipients as $recipient) {
            $this->checkDuplicatedHeaderParameters($sharedProtectedHeader, $recipient->getHeader());
        }
        $clone = clone $this;
        $clone->sharedProtectedHeader = $sharedProtectedHeader;

        return $clone;
    }
public function withSharedProtectedHeader ( array $ sharedProtectedHeader ) : self { $ this -> checkDuplicatedHeaderParameters ( $ sharedProtectedHeader , $ this -> sharedHeader ) ; foreach ( $ this -> recipients as $ recipient ) { $ this -> checkDuplicatedHeaderParameters ( $ sharedProtectedHeader , $ recipient -> getHeader ( ) ) ; } $ clone = clone $ this ; $ clone -> sharedProtectedHeader = $ sharedProtectedHeader ; return $ clone ; }
Set the shared protected header of the JWE to build.

@return JWEBuilder
Set the shared protected header of the JWE to build .