|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectelectric.servlet.authenticators.basic.BasicAuthenticator
HTTP Basic authentication, see rfc2617 for details
| Field Summary |
| Fields inherited from interface electric.glue.IGLUELoggingConstants |
CLUSTER_DEBUG_EVENT, CLUSTER_EVENT, CONSOLE_DEBUG_EVENT, DEPLOY_EVENT, DETECTORS_EVENT, HTTP_EVENT, JMS_EVENT, REBINDING_EVENT, SECURITY_DEBUG_EVENT, SECURITY_DETAIL_EVENT, SERVLET_EVENT, SOAP_EVENT |
| Fields inherited from interface electric.xml.IEXMLLoggingConstants |
MAPPING_EVENT, SCHEMA_EVENT |
| Fields inherited from interface electric.util.log.ILoggingConstants |
CLASSLOADER_EVENT, COMMAND_EVENT, COMMENT_EVENT, CONFIG_EVENT, DEBUG_EVENT, ELECTRIC_LOGGING_PROPERTY, ERROR_EVENT, EXCEPTION_EVENT, FILE_EVENT, LICENSE_EVENT, RESOURCES_EVENT, SECURITY_EVENT, SHUTDOWN_EVENT, SOURCE_EVENT, SQL_EVENT, STARTUP_EVENT, WARNING_EVENT |
| Constructor Summary | |
BasicAuthenticator()
|
|
| Method Summary | |
boolean |
authenticate(InboundHTTPRequest request,
OutboundHTTPResponse response,
java.lang.String relativePath,
electric.servlet.security.WebResourceCollection webResourceCollection)
Authenticate a request. |
ICredentials[] |
getAuthenticatedCredentials(javax.servlet.http.HttpServletRequest request,
IRealm realm)
Given an incoming HTTP request, find any HTTP Basic Authorize: headers, extract the credentials, and authenticate them. |
java.lang.String |
getAuthMethod()
|
ICredentials[] |
getDeclaredCredentials(javax.servlet.http.HttpServletRequest servletRequest)
Extract all the HTTP Basic authentication credentials from the given request. |
boolean |
sendNoAuthenticationResponse(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
IRealm realm)
Add the appropriate WWW-Authenticate request to the response, based on the incoming request and the realm. |
void |
setContext(HTTPContext context)
Authenticators are per-servlet-context. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BasicAuthenticator()
| Method Detail |
public void setContext(HTTPContext context)
IHTTPAuthenticator
setContext in interface IHTTPAuthenticatorcontext -
public boolean authenticate(InboundHTTPRequest request,
OutboundHTTPResponse response,
java.lang.String relativePath,
electric.servlet.security.WebResourceCollection webResourceCollection)
throws java.io.IOException
IHTTPAuthenticator
authenticate in interface IHTTPAuthenticatorrequest - response - relativePath -
java.io.IOExceptionpublic java.lang.String getAuthMethod()
getAuthMethod in interface IHTTPAuthenticator
public ICredentials[] getAuthenticatedCredentials(javax.servlet.http.HttpServletRequest request,
IRealm realm)
request - realm - public ICredentials[] getDeclaredCredentials(javax.servlet.http.HttpServletRequest servletRequest)
public boolean sendNoAuthenticationResponse(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
IRealm realm)
throws java.io.IOException
sendNoAuthenticationResponse in interface IHTTPAuthenticatorrequest - response - realm -
java.io.IOExceptionGuardAuthorizer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||