1 19 20 package com.sslexplorer.security; 21 22 import java.util.Iterator ; 23 24 import javax.servlet.http.HttpServletRequest ; 25 import javax.servlet.http.HttpServletResponse ; 26 import javax.servlet.http.HttpSession ; 27 28 import com.sslexplorer.policyframework.Resource; 29 30 33 public interface AuthenticationScheme extends Resource { 34 35 39 public void init(HttpSession session) throws Exception ; 40 41 44 public int getCurrentModuleIndex(); 45 46 49 public int getModuleCount(); 50 51 57 public boolean hasModule(String name); 58 59 64 public void removeModule(String module); 65 66 71 public Iterator <String > modules(); 72 73 78 public void addModule(String module); 79 80 86 public void moveUp(String module); 87 88 94 public void moveDown(String module); 95 96 99 public void clearModules(); 100 101 104 public User getUser(); 105 106 109 public void setUser(User user); 110 111 114 public HttpSession getServletSession(); 115 116 119 public AuthenticationModule nextAuthenticationModule(); 120 121 124 public AuthenticationModule currentAuthenticationModule(); 125 126 131 public void authenticationComplete(HttpServletRequest request, HttpServletResponse response) throws Exception ; 132 133 136 public String getUsername(); 137 138 141 public String [] getModules(); 142 143 149 public String getModule(int index); 150 151 154 public String getSchemeName(); 155 156 159 public void addCredentials(Credentials credentials); 160 161 164 public Iterator credentials(); 165 166 169 public void setAccountLock(AccountLock lock); 170 171 174 public AccountLock getAccountLock(); 175 176 179 public boolean getSessionLocked(); 180 181 184 public boolean getEnabled(); 185 186 189 public int getPriorityInt(); 190 191 194 public String getPriority(); 195 196 199 public void setPriorityInt(int priority); 200 201 206 public void setEnabled(boolean enabled); 207 208 213 public boolean isSystemScheme(); 214 } 215 | Popular Tags |