com.clickntap.smart.Authenticator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of click_framework Show documentation
Show all versions of click_framework Show documentation
Java Framework based on Spring Framework, Freemarker and Simplicity
The newest version!
package com.clickntap.smart;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.clickntap.api.BO;
import com.clickntap.tool.bean.BeanManager;
public interface Authenticator {
public boolean isLoginRequest(HttpServletRequest request) throws Exception;
public boolean isLogoutRequest(HttpServletRequest request);
public AuthenticatedUser login(HttpServletRequest request, HttpServletResponse response, String email, String password) throws Exception;
public AuthenticatedUser login(String email) throws Exception;
public void logout(HttpServletRequest request, HttpServletResponse response, AuthenticatedUser user) throws Exception;
public String getUsername(HttpServletRequest request);
public String getPassword(HttpServletRequest request);
public AuthenticatedUser tryAutoLogin(HttpServletRequest request, HttpServletResponse response) throws Exception;
public BeanManager getBeanManager() throws Exception;
public String getClassName();
public boolean isAuthenticated(HttpServletRequest request, HttpServletResponse response) throws Exception;
public void authorize(HttpServletRequest request, HttpServletResponse response, AuthenticatedUser user) throws Exception;
public void deauthorize(HttpServletRequest request, HttpServletResponse response) throws Exception;
public void failedAttempts(HttpServletRequest request, HttpServletResponse response) throws Exception;
public BO getDeviceToken(HttpServletRequest request);
public Number getNumAttempts();
public Number getNumTryAgain();
}