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