|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.adamcin.httpsig.http.servlet.ServletUtil
public final class ServletUtil
Helper methods for use in a Servlet context.
| Method Summary | |
|---|---|
static Authorization |
getAuthorization(javax.servlet.http.HttpServletRequest request)
Parse an HttpServletRequest to create an Authorization |
static RequestContent |
getRequestContent(javax.servlet.http.HttpServletRequest request)
Parse an HttpServletRequest to build the RequestContent |
static RequestContent |
getRequestContent(javax.servlet.http.HttpServletRequest request,
Collection<String> ignoreHeaders)
Parse an HttpServletRequest to build the RequestContent |
static boolean |
sendChallenge(javax.servlet.http.HttpServletResponse resp,
Challenge challenge)
Handle an HttpServletResponse which has failed authentication by sending a
Challenge header |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Authorization getAuthorization(javax.servlet.http.HttpServletRequest request)
HttpServletRequest to create an Authorization
request - the HTTP Request
Authorizationpublic static RequestContent getRequestContent(javax.servlet.http.HttpServletRequest request)
HttpServletRequest to build the RequestContent
request - the HTTP Request
RequestContent
public static RequestContent getRequestContent(javax.servlet.http.HttpServletRequest request,
Collection<String> ignoreHeaders)
HttpServletRequest to build the RequestContent
request - the HTTP RequestignoreHeaders - a collection of header names to ignore, in case they have been added by proxies
public static boolean sendChallenge(javax.servlet.http.HttpServletResponse resp,
Challenge challenge)
throws IOException
HttpServletResponse which has failed authentication by sending a
Challenge header
resp - the HTTP Responsechallenge - the Server challenge parameters
IOException - if anything went wrong
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||