|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.jguard.authentication.callbacks.HttpCallbackHandler
public class HttpCallbackHandler
| Constructor Summary | |
|---|---|
HttpCallbackHandler()
constructor required by javadoc of the CallbackHandler interface. |
|
HttpCallbackHandler(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String authScheme)
constructor. |
|
| Method Summary | |
|---|---|
static java.lang.String |
buildBasicAuthHeader(java.lang.String login,
java.lang.String password,
java.lang.String encoding)
construct a header value to simulate a Basic authentication with the provided credentials. |
static void |
buildBasicChallenge(javax.servlet.http.HttpServletResponse response,
java.lang.String realmName)
send to the client the BASIC challenge into the response, according to the RFC 2617. |
void |
buildDigestChallenge(javax.servlet.http.HttpServletResponse response,
java.lang.String token)
send to the client the DIGEST challenge into the response, according to the RFC 2617. |
javax.servlet.http.HttpServletRequest |
getHttpRequest()
|
javax.servlet.http.HttpServletResponse |
getHttpResponse()
|
static java.lang.String |
getLoginField()
gets the HttpRequest login field |
static java.lang.String |
getPasswordField()
gets the HttpRequest password field |
void |
handle(javax.security.auth.callback.Callback[] callbacks)
extract from the HttpServletRequest client's credentials. |
boolean |
isAfterRegistration()
|
void |
setAfterRegistration(boolean afterRegistration)
|
void |
setHttpRequest(javax.servlet.http.HttpServletRequest httpRequest)
|
void |
setHttpResponse(javax.servlet.http.HttpServletResponse httpResponse)
|
static void |
setLoginField(java.lang.String loginField)
|
static void |
setPasswordField(java.lang.String passwordField)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpCallbackHandler()
public HttpCallbackHandler(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String authScheme)
request - | Method Detail |
|---|
public void handle(javax.security.auth.callback.Callback[] callbacks)
throws java.io.IOException,
javax.security.auth.callback.UnsupportedCallbackException
handle in interface javax.security.auth.callback.CallbackHandlerjava.io.IOException
javax.security.auth.callback.UnsupportedCallbackExceptionpublic javax.servlet.http.HttpServletRequest getHttpRequest()
public void setHttpRequest(javax.servlet.http.HttpServletRequest httpRequest)
public javax.servlet.http.HttpServletResponse getHttpResponse()
public void setHttpResponse(javax.servlet.http.HttpServletResponse httpResponse)
public static java.lang.String buildBasicAuthHeader(java.lang.String login,
java.lang.String password,
java.lang.String encoding)
login - password - encoding -
public static void buildBasicChallenge(javax.servlet.http.HttpServletResponse response,
java.lang.String realmName)
response - reponse send to the ClientrealmName - realm owned by the server => specify what kind of credential the user should provide
public void buildDigestChallenge(javax.servlet.http.HttpServletResponse response,
java.lang.String token)
response - reponse send to the ClientrealmName - realm owned by the server => specify what kind of credential the user should providepublic static java.lang.String getPasswordField()
public static void setPasswordField(java.lang.String passwordField)
public static java.lang.String getLoginField()
public static void setLoginField(java.lang.String loginField)
public void setAfterRegistration(boolean afterRegistration)
public boolean isAfterRegistration()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||