|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.securityfilter.authenticator.BasicAuthenticator
BasicAuthenticator - authenticator implementation for the BASIC auth method.
| Field Summary | |
protected org.apache.commons.codec.binary.Base64 |
base64Helper
|
static String |
LOGIN_ATTEMPTS
|
static String |
LOGIN_FAILED_MESSAGE
|
static int |
MAX_ATTEMPTS
|
protected SecurityRealmInterface |
realm
|
protected String |
realmName
|
| Constructor Summary | |
BasicAuthenticator()
|
|
| Method Summary | |
boolean |
bypassSecurityForThisRequest(javax.servlet.http.HttpServletRequest request,
URLPatternMatcher patternMatcher)
All requests should be subject to security checking for BASIC authentication. |
String |
getAuthMethod()
Returns BASIC as the authentication method. |
void |
init(javax.servlet.FilterConfig filterConfig,
SecurityConfig securityConfig)
Initialize this Authenticator. |
boolean |
processLogin(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Process any login information that was included in the request, if any. |
void |
showLogin(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Show the login page. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String LOGIN_ATTEMPTS
public static final String LOGIN_FAILED_MESSAGE
public static final int MAX_ATTEMPTS
protected SecurityRealmInterface realm
protected String realmName
protected org.apache.commons.codec.binary.Base64 base64Helper
| Constructor Detail |
public BasicAuthenticator()
| Method Detail |
public void init(javax.servlet.FilterConfig filterConfig,
SecurityConfig securityConfig)
throws Exception
init in interface AuthenticatorfilterConfig - securityConfig -
Exceptionpublic String getAuthMethod()
getAuthMethod in interface Authenticator
public boolean processLogin(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
processLogin in interface Authenticatorrequest - response -
Exception
public boolean bypassSecurityForThisRequest(javax.servlet.http.HttpServletRequest request,
URLPatternMatcher patternMatcher)
bypassSecurityForThisRequest in interface Authenticatorrequest -
public void showLogin(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
showLogin in interface Authenticatorrequest - the current requestresponse - the current response
IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||