public function getCompact($key)
    {
        $headers   = self::base64Encode(Parser::encode($this->headers));
        $claim     = self::base64Encode($this->claim);
        $signature = $this->getEncodedSignature($key);

        return $headers . '.' . $claim . '.' . $signature;
    }
public function getCompact($key)
    {
        $headers   = self::base64Encode(Parser::encode($this->headers));
        $claim     = self::base64Encode($this->claim);
        $signature = $this->getEncodedSignature($key);

        return $headers . '.' . $claim . '.' . $signature;
    }
public function getCompact ( $ key ) { $ headers = self :: base64Encode ( Parser :: encode ( $ this -> headers ) ) ; $ claim = self :: base64Encode ( $ this -> claim ) ; $ signature = $ this -> getEncodedSignature ( $ key ) ; return $ headers . '.' . $ claim . '.' . $ signature ; }
Returns this signature in the JWS Compact Serialization format

@see http://tools.ietf.org/html/draft-ietf-jose-json-web-signature-39#section-3.1
@param string $key
@return string
Returns this signature in the JWS Compact Serialization format