1 40 package org.dspace.eperson; 41 42 import javax.servlet.ServletException ; 43 import javax.servlet.http.HttpServletRequest ; 44 import javax.servlet.http.HttpServletResponse ; 45 import javax.servlet.jsp.PageContext ; 46 import java.sql.SQLException ; 47 48 import org.apache.log4j.Logger; 49 import org.dspace.core.Context; 50 import org.dspace.eperson.EPerson; 51 52 53 74 public interface AuthenticationMethod { 75 76 79 80 81 public static final int SUCCESS = 1; 82 83 84 public static final int BAD_CREDENTIALS = 2; 85 86 87 public static final int CERT_REQUIRED = 3; 88 89 90 public static final int NO_SUCH_USER = 4; 91 92 93 public static final int BAD_ARGS = 5; 94 95 96 111 public boolean canSelfRegister(Context context, 112 HttpServletRequest request, 113 String username) 114 throws SQLException ; 115 116 129 public void initEPerson(Context context, 130 HttpServletRequest request, 131 EPerson eperson) 132 throws SQLException ; 133 134 148 public boolean allowSetPassword(Context context, 149 HttpServletRequest request, 150 String username) 151 throws SQLException ; 152 153 162 public boolean isImplicit(); 163 164 186 public int[] getSpecialGroups(Context context, HttpServletRequest request); 187 188 221 222 public int authenticate(Context context, 223 String username, 224 String password, 225 String realm, 226 HttpServletRequest request) 227 throws SQLException ; 228 229 246 public String loginPageURL(Context context, 247 HttpServletRequest request, 248 HttpServletResponse response); 249 250 262 public String loginPageTitle(Context context); 263 } 264 | Popular Tags |