ByteArrayInputStream is = new ByteArrayInputStream(encData);
CipherInputStream cIn = new CipherInputStream(is, cipher);
Hessian2Input in = new Hessian2Input(cIn);
Object obj = in.readObject();
if (! (obj instanceof SelfEncryptedCookie))
throw new SecurityException(L.l("SelfEncryptedCookie[] is invalid because it does not correctly decrypt"));
SelfEncryptedCookie cookieObj = (SelfEncryptedCookie) obj;