public string GetResponseToSign() { return(String.Format(CultureInfo.InvariantCulture, "{0}.{1}", Base64UrlEncoder.Encode(JsonHelper.EncodeToJson(header).ToByteArray()), Base64UrlEncoder.Encode(JsonHelper.EncodeToJson(payload).ToByteArray()))); }
private static string UrlEncodeSegment(byte[] segment) { return(Base64UrlEncoder.Encode(segment)); }
internal static String GetBase64UrlBrokerKey() { return(Base64UrlEncoder.Encode(GetRawBrokerKey())); }