|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.seraph.cookie.InsecureCookieEncoder
RememberMeService code
public class InsecureCookieEncoder
Insecure cooking encoder that uses an XOR mask with character offsets to "encode" the username and password
| Constructor Summary | |
|---|---|
InsecureCookieEncoder()
Deprecated. |
|
| Method Summary | |
|---|---|
java.lang.String[] |
decodePasswordCookie(java.lang.String cookieVal)
Deprecated. only here to support CookieUtils.decodePasswordCookie(String) |
java.lang.String[] |
decodePasswordCookie(java.lang.String cookieVal,
java.lang.String encoding)
Deprecated. Decodes a cookie string containing a username and password. |
java.lang.String |
encodePasswordCookie(java.lang.String username,
java.lang.String password)
Deprecated. only here to support CookieUtils.encodePasswordCookie(String, String) |
java.lang.String |
encodePasswordCookie(java.lang.String username,
java.lang.String password,
java.lang.String encoding)
Deprecated. Builds a cookie string containing a username and password, using offsets to customise the encoding. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InsecureCookieEncoder()
| Method Detail |
|---|
public java.lang.String encodePasswordCookie(java.lang.String username,
java.lang.String password,
java.lang.String encoding)
CookieEncoder
encodePasswordCookie in interface CookieEncoderusername - The username.password - The password.encoding - A String used to customise cookie encoding (only the first 3 characters are used)
null.
public java.lang.String[] decodePasswordCookie(java.lang.String cookieVal,
java.lang.String encoding)
CookieEncoder
decodePasswordCookie in interface CookieEncodercookieVal - The cookie value.encoding - A String used to customise cookie encoding (only the first 3 characters are used) - should be the same string you used to encode the
cookie!
{ null, null } if cookieVal equals
null or the empty string.
public java.lang.String encodePasswordCookie(java.lang.String username,
java.lang.String password)
CookieUtils.encodePasswordCookie(String, String)
Note: with open source this is not really secure, but it prevents users from snooping the cookie file of others and by changing the XOR mask and character offsets, you can easily tweak results.
username - The username.password - The password.
null.public java.lang.String[] decodePasswordCookie(java.lang.String cookieVal)
CookieUtils.decodePasswordCookie(String)
cookieVal - The cookie value.
{ null, null } if cookieVal equals
null or the empty string.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||