コード例 #1
0
 /// <param name="customHeaderScheme">The header scheme that will be used for generating headers</param>
 /// <param name="appId">The appid that will be used to generate headers</param>
 /// <param name="secretKey">The secret key that will be used to generate headers</param>
 /// <param name="signatureGenerator">The signature generator that will create the header</param>
 /// <param name="customHeaderName">The header name to use for the header</param>
 public HmacHeaderGenerator(string customHeaderScheme, string appId, string secretKey, string customHeaderName, HmacSignatureGenerator signatureGenerator = null)
     : this(customHeaderScheme, appId, secretKey, signatureGenerator, customHeaderName)
 {
 }
コード例 #2
0
 /// <param name="customHeaderScheme">The header scheme that will be used for generating headers</param>
 /// <param name="signatureGenerator">The signature generator that will create the header</param>
 /// <param name="customHeaderName">The header name to use for the header</param>
 public HmacHeaderGenerator(string customHeaderScheme, HmacSignatureGenerator signatureGenerator = null, string customHeaderName = null)
     : this(signatureGenerator)
 {
     CustomHeaderScheme = customHeaderScheme;
 }
コード例 #3
0
 /// <param name="customHeaderScheme">The header scheme that will be used for generating headers</param>
 /// <param name="appId">The appid that will be used to generate headers</param>
 /// <param name="secretKey">The secret key that will be used to generate headers</param>
 /// <param name="signatureGenerator">The signature generator that will create the header</param>
 /// <param name="customHeaderName">The header name to use for the header</param>
 public HmacHeaderGenerator(string customHeaderScheme, string appId, string secretKey, HmacSignatureGenerator signatureGenerator = null, string customHeaderName = null)
     : this(customHeaderScheme, signatureGenerator)
 {
     AppId     = appId;
     SecretKey = secretKey;
 }
コード例 #4
0
 /// <param name="signatureGenerator">The signature generator that will create the header</param>
 /// <param name="customHeaderName">The header name to use for the header</param>
 public HmacHeaderGenerator(HmacSignatureGenerator signatureGenerator = null, string customHeaderName = null)
 {
     SignatureGenerator = signatureGenerator ?? new HmacSignatureGenerator(CustomHeaderScheme);
     HeaderName         = customHeaderName ?? "Authorization";
 }