Cipher cipher = initCipher(cookie, Cipher.DECRYPT_MODE);
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;
in.close();
cIn.close();
is.close();
return cookieObj;
} catch (SecurityException e) {