Example #1
0
 /// <summary>
 /// 设置JWT采用的算法
 /// </summary>
 /// <param name="algorithm">算法,参见JwtSecurityAlgorithms</param>
 /// <returns>返回当前构造器实例</returns>
 public JwtBuilder WithAlgorithm(JwtSecurityAlgorithms algorithm)
 {
     _algorithm = algorithm;
     return(this);
 }
Example #2
0
 /// <summary>
 /// 获得JwtSecurityAlgorithms当前枚举值
 /// </summary>
 public static string ToStr(this JwtSecurityAlgorithms value)
 {
     return(GetDescription(value));
 }