Пример #1
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="JinyinmaoAuthorizationHandler" /> class.
 /// </summary>
 /// <param name="bearerAuthKeys">The bearerAuthKeys.</param>
 /// <param name="governmentServerPublicKey">The government server public key.</param>
 public JinyinmaoAuthorizationHandler(string bearerAuthKeys, string governmentServerPublicKey)
 {
     this.accessTokenProtector      = new JYMAccessTokenProtector(bearerAuthKeys);
     this.GovernmentServerPublicKey = governmentServerPublicKey;
 }
Пример #2
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="JinyinmaoAuthorizationHandler" /> class.
 /// </summary>
 /// <param name="bearerAuthKeys">The bearerAuthKeys.</param>
 public JinyinmaoAuthorizationHandler(string bearerAuthKeys)
 {
     this.accessTokenProtector = new JYMAccessTokenProtector(bearerAuthKeys);
 }