You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
727 B
25 lines
727 B
namespace Sanhe.Abp.Identity.Security |
|
{ |
|
/// <summary> |
|
/// totp算法服务 |
|
/// </summary> |
|
public interface ITotpService |
|
{ |
|
/// <summary> |
|
/// 生成 |
|
/// </summary> |
|
/// <param name="securityToken"></param> |
|
/// <param name="modifier"></param> |
|
/// <returns></returns> |
|
int GenerateCode(byte[] securityToken, string modifier = null); |
|
|
|
/// <summary> |
|
/// 验证 |
|
/// </summary> |
|
/// <param name="securityToken"></param> |
|
/// <param name="code"></param> |
|
/// <param name="modifier"></param> |
|
/// <returns></returns> |
|
bool ValidateCode(byte[] securityToken, int code, string modifier = null); |
|
} |
|
}
|
|
|