/// <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) { }
/// <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; }
/// <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; }
/// <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"; }