private async Task <JwsEncodedMessage> GetSignedMessageAsync(string url) { Nonce nonce = await GetNonceAsync(); var header = GetMessageHeader(url, nonce); return(Jws.Sign( integrityProtected: Base64Url.Encode(header), payload: string.Empty, privateKey: _privateKey )); }
private async Task <JwsEncodedMessage> GetSignedMessageAsync(string url, JsonObject payload) { Nonce nonce = await GetNonceAsync(); var header = GetMessageHeader(url, nonce); return(Jws.Sign( integrityProtectedHeader: header, payload: payload, privateKey: _privateKey )); }