com.caucho.security
Class SelfEncryptedCookie
java.lang.Object
com.caucho.security.SelfEncryptedCookie
- All Implemented Interfaces:
- java.io.Serializable
public class SelfEncryptedCookie
- extends java.lang.Object
- implements java.io.Serializable
Self-encrypted cookie for server to server authentication.
- Since:
- Resin 4.0.0
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SelfEncryptedCookie
public SelfEncryptedCookie(java.lang.String cookie,
long createTime)
getCookie
public java.lang.String getCookie()
getCreateTime
public long getCreateTime()
encrypt
public static byte[] encrypt(java.lang.String cookie,
long createTime)
decrypt
public static SelfEncryptedCookie decrypt(java.lang.String cookie,
byte[] encData)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object