|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.atlassian.security.cookie.HttpOnlyCookies
public final class HttpOnlyCookies
Constructs HttpOnly Cookies and adds them to HttpServletResponses.
The cookie encoding logic in ServerCookie is derived from Tomcat 6.0.29.
| Method Summary | |
|---|---|
static void |
addHttpOnlyCookie(javax.servlet.http.HttpServletResponse response,
javax.servlet.http.Cookie cookie)
Adds the specified Cookie to the specified HttpServletResponse with the HttpOnly flag. |
static void |
addHttpOnlyCookies(javax.servlet.http.HttpServletResponse response,
javax.servlet.http.Cookie[] cookies)
Adds the specified Cookies to the specified HttpServletResponse with the HttpOnly flag. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void addHttpOnlyCookies(javax.servlet.http.HttpServletResponse response,
javax.servlet.http.Cookie[] cookies)
Cookies to the specified HttpServletResponse with the HttpOnly flag.
Cookies marked as HTTP-only will not be available to JavaScript code executing in browsers that support
the flag; only the browser itself can access them.
response - the response to add tocookies - the cookies to add
public static void addHttpOnlyCookie(javax.servlet.http.HttpServletResponse response,
javax.servlet.http.Cookie cookie)
Cookie to the specified HttpServletResponse with the HttpOnly flag.
Cookies marked as HTTP-only will not be available to JavaScript code executing in browsers that support
the flag; only the browser itself can access them.
response - the response to add tocookie - the cookie to add
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||