コード例 #1
0
        public static string GetStringToSignForNephosSharedKeyLiteAuth(RequestContext requestContext, NephosUriComponents uriComponents)
        {
            Uri           requestUrl            = requestContext.RequestUrl;
            StringBuilder stringBuilder         = new StringBuilder(MessageCanonicalizer.GetNephosOrStandardDateString(requestContext.RequestHeaders));
            string        canonicalizedResource = MessageCanonicalizer.GetCanonicalizedResource(requestUrl, uriComponents, requestContext.RequestRawUrlString);

            TableAuthenticationHelper.AppendStringToCanonicalizedString(stringBuilder, canonicalizedResource);
            return(stringBuilder.ToString());
        }
コード例 #2
0
        public static string CanonicalizeTableHttpRequestForSharedKeyAuth(Uri address, NephosUriComponents uriComponents, string method, string contentType, NameValueCollection headers, string rawUrl)
        {
            StringBuilder stringBuilder = new StringBuilder(method);

            TableAuthenticationHelper.AppendStringToCanonicalizedString(stringBuilder, MessageCanonicalizer.GetContentMD5(headers));
            TableAuthenticationHelper.AppendStringToCanonicalizedString(stringBuilder, contentType);
            TableAuthenticationHelper.AppendStringToCanonicalizedString(stringBuilder, MessageCanonicalizer.GetNephosOrStandardDateString(headers));
            TableAuthenticationHelper.AppendStringToCanonicalizedString(stringBuilder, MessageCanonicalizer.GetCanonicalizedResource(address, uriComponents, rawUrl));
            return(stringBuilder.ToString());
        }
コード例 #3
0
 public static string GetStringToSignForNephosSharedKeyAuth(RequestContext requestContext, NephosUriComponents uriComponents)
 {
     return(TableAuthenticationHelper.CanonicalizeTableHttpRequestForSharedKeyAuth(requestContext.RequestUrl, uriComponents, requestContext.HttpMethod, requestContext.RequestContentType, requestContext.RequestHeaders, requestContext.RequestRawUrlString));
 }
コード例 #4
0
 public static string CanonicalizeTableHttpRequestForSharedKeyAuth(Uri address, NephosUriComponents uriComponents, string method, string contentType, NameValueCollection headers)
 {
     return(TableAuthenticationHelper.CanonicalizeTableHttpRequestForSharedKeyAuth(address, uriComponents, method, contentType, headers, null));
 }