CookieUtils
public class CookieUtils extends Object
Constructor and Description |
---|
CookieUtils()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static String |
checkDoubleQuote(String cookie)
Deprecated.
Check cookie value whether it has double quote or not.
|
static String |
getAmCookieName()
Deprecated.
Gets property value of "com.iplanet.am.cookie.name"
|
static String |
getAmPCookieName()
Deprecated.
Gets property value of "com.iplanet.am.pcookie.name"
|
static Set |
getCdssoCookiedomain()
Deprecated.
Gets property value of "com.iplanet.services.cdsso.cookiedomain"
|
static javax.servlet.http.Cookie[] |
getCookieArrayFromReq(javax.servlet.http.HttpServletRequest req)
Deprecated.
Gets Array of cookie in servlet request
|
static javax.servlet.http.Cookie |
getCookieFromReq(javax.servlet.http.HttpServletRequest req,
String name)
Deprecated.
Gets cookie object that has mached name in servlet request
|
static String |
getCookieValue(javax.servlet.http.Cookie cookie)
Deprecated.
Gets normalized value of cookie
|
static String |
getCookieValueFromReq(javax.servlet.http.HttpServletRequest req,
String name)
Deprecated.
Gets value of cookie that has mached name in servlet request
|
static String |
getFedCookieName()
Deprecated.
Gets property value of "com.sun.identity.federation.fedCookieName"
|
static boolean |
isCookieSecure()
Deprecated.
Gets property value of "com.iplanet.am.cookie.secure"
|
static javax.servlet.http.Cookie |
newCookie(String name,
String value)
Deprecated.
Constructs a cookie with a specified name and value.
|
static javax.servlet.http.Cookie |
newCookie(String name,
String value,
int maxAge)
Deprecated.
Constructs a cookie with a specified name and value and sets the maximum
age of the cookie in seconds.
|
static javax.servlet.http.Cookie |
newCookie(String name,
String value,
int maxAge,
String path,
String domain)
Deprecated.
Constructs a cookie with a specified name and value and sets the maximum
age of the cookie in seconds and sets a path for the cookie to which the
client should return the cookie and sets the domain within which this
cookie should be presented.
|
static javax.servlet.http.Cookie |
newCookie(String name,
String value,
String path)
Deprecated.
Constructs a cookie with a specified name and value and sets a path for
the cookie to which the client should return the cookie.
|
static javax.servlet.http.Cookie |
newCookie(String name,
String value,
String path,
String domain)
Deprecated.
Constructs a cookie with a specified name and value and sets a path for
the cookie to which the client should return the cookie and sets the
domain within which this cookie should be presented.
|
public static String getAmCookieName()
public static String getAmPCookieName()
public static Set getCdssoCookiedomain()
public static String getFedCookieName()
public static boolean isCookieSecure()
public static String getCookieValueFromReq(javax.servlet.http.HttpServletRequest req, String name)
req
- requestname
- name in servlet requestpublic static javax.servlet.http.Cookie getCookieFromReq(javax.servlet.http.HttpServletRequest req, String name)
req
- requestname
- name in servlet requestpublic static String getCookieValue(javax.servlet.http.Cookie cookie)
cookie
- cookie objectpublic static javax.servlet.http.Cookie[] getCookieArrayFromReq(javax.servlet.http.HttpServletRequest req)
req
- requestpublic static javax.servlet.http.Cookie newCookie(String name, String value)
name
- a String specifying the name of the cookievalue
- a String specifying the value of the cookiepublic static javax.servlet.http.Cookie newCookie(String name, String value, int maxAge)
name
- a String specifying the name of the cookievalue
- a String specifying the value of the cookiemaxAge
- an integer specifying the maximum age of the cookie in
seconds; if negative, means the cookie is not stored; if zero,
deletes the cookiepublic static javax.servlet.http.Cookie newCookie(String name, String value, String path)
name
- a String specifying the name of the cookievalue
- a String specifying the value of the cookiepath
- a String specifying a pathpublic static javax.servlet.http.Cookie newCookie(String name, String value, String path, String domain)
name
- a String specifying the name of the cookievalue
- a String specifying the value of the cookiepath
- a String specifying a pathdomain
- a String containing the domain name within which this cookie
is visible; form is according to RFC 2109
public static javax.servlet.http.Cookie newCookie(String name, String value, int maxAge, String path, String domain)
name
- a String specifying the name of the cookievalue
- a String specifying the value of the cookiemaxAge
- an integer specifying the maximum age of the cookie in
seconds; if negative, means the cookie is not stored; if zero,
deletes the cookiepath
- a String specifying a pathdomain
- a String containing the domain name within which this cookie
is visible; form is according to RFC 2109public static String checkDoubleQuote(String cookie)
cookie
- a String value of cookieCopyright © 2010–2025 Open Identity Platform Community. All rights reserved.