protected function parseSignature(array $header, $data)
    {
        if ($data == '' || !isset($header['alg']) || $header['alg'] == 'none') {
            return null;
        }

        $hash = $this->deserializer->fromBase64URL($data);

        return new Signature($hash);
    }
protected function parseSignature(array $header, $data)
    {
        if ($data == '' || !isset($header['alg']) || $header['alg'] == 'none') {
            return null;
        }

        $hash = $this->deserializer->fromBase64URL($data);

        return new Signature($hash);
    }
protected function parseSignature ( array $ header , $ data ) { if ( $ data == '' || ! isset ( $ header [ 'alg' ] ) || $ header [ 'alg' ] == 'none' ) { return null ; } $ hash = $ this -> deserializer -> fromBase64URL ( $ data ) ; return new Signature ( $ hash ) ; }
Returns the signature from given data

@param array $header
@param string $data

@return Signature
Returns the signature from given data