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

com.clickntap.smart.Authenticator Maven / Gradle / Ivy

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();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy