|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.seraph.cookie.EncryptedCookieEncoder
RememberMeService
code
public class EncryptedCookieEncoder
Encrypts the username and password using password-based-encryption (MD5 and DES).
Constructor Summary | |
---|---|
|
EncryptedCookieEncoder()
Deprecated. |
protected |
EncryptedCookieEncoder(String password)
Deprecated. |
Method Summary | |
---|---|
String[] |
decodePasswordCookie(String cookieVal,
String encoding)
Deprecated. Decodes a cookie string containing a username and password. |
String |
encodePasswordCookie(String username,
String password,
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 EncryptedCookieEncoder()
protected EncryptedCookieEncoder(String password)
Method Detail |
---|
public String encodePasswordCookie(String username, String password, String encoding)
CookieEncoder
encodePasswordCookie
in interface CookieEncoder
username
- The username.password
- The password.encoding
- A String used to customise cookie encoding (only the first 3 characters are used)
null
.public String[] decodePasswordCookie(String cookieVal, String encoding)
CookieEncoder
decodePasswordCookie
in interface CookieEncoder
cookieVal
- 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |