All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.eshore.tfa.ITFAAbility Maven / Gradle / Ivy

There is a newer version: 2.0.3
Show newest version
package com.eshore.tfa;

import javax.servlet.http.HttpServletRequest;

import com.eshore.uas.server.api.User;

/**
 * 双因子认证能力
 * @author eshore
 *
 */
public interface ITFAAbility {
	/**
	 * 
	 * @param u 用户
	 * @return 双因子令牌
	 */
	String tfaToken(User u,HttpServletRequest req);
	
	/**
	 * 
	 * @param token 双因子令牌
	 * @param code 验证因子
	 * @return 返回用户信息
	 * 
	 */
	User tfalogin(String token,String code,HttpServletRequest req);
	
	String reflash(String token,HttpServletRequest req);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy