public static function createFromUnsignedJwt(UnsignedJwt $unsignedJwt, string $signature) : SignedJwt
    {
        return new self($unsignedJwt->getHeader(), $unsignedJwt->getPayload(), $signature);
    }
public static function createFromUnsignedJwt(UnsignedJwt $unsignedJwt, string $signature) : SignedJwt
    {
        return new self($unsignedJwt->getHeader(), $unsignedJwt->getPayload(), $signature);
    }
public static function createFromUnsignedJwt ( UnsignedJwt $ unsignedJwt , string $ signature ) : SignedJwt { return new self ( $ unsignedJwt -> getHeader ( ) , $ unsignedJwt -> getPayload ( ) , $ signature ) ; }
Creates a signed JWT from an unsigned JWT and signature

@param UnsignedJwt $unsignedJwt The unsigned token to create the signed token from
@param string $signature The signature
@return SignedJwt The signed JSON web token
Creates a signed JWT from an unsigned JWT and signature