com.caucho.security
Class SelfEncryptedCookie

java.lang.Object
  extended by 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

Constructor Summary
SelfEncryptedCookie(java.lang.String cookie, long createTime)
           
 
Method Summary
static SelfEncryptedCookie decrypt(java.lang.String cookie, byte[] encData)
           
static byte[] encrypt(java.lang.String cookie, long createTime)
           
 java.lang.String getCookie()
           
 long getCreateTime()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SelfEncryptedCookie

public SelfEncryptedCookie(java.lang.String cookie,
                           long createTime)
Method Detail

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