Hi,
I tried to use the @Validate(encrypted=true) annotation, but it didn't seem
to do anything.
My understanding is that all I need to do is add this annotation above/next
to a variable and when it is sent to the ActionBean it is encrypted (and
then decrypted). I changed my form's method to GET so I could more easily
show the values and it's quite clear that they aren't being encrypted.
My ActionBean looks like this:
public class LoginActionBean extends OrderActionBean{
@Validate(encrypted=true)
String garbage;
Account account;
// ... getters & setters and class code here
}
The Account.java looks like
public class Account{
@Id ObjectId id;
String username;
String password;
boolean loggedIn;
// getters, setters and other methods here
}
When I look in Firebug I see this
__fpkgDCepNG-aU=_sourcePage ZtAJgTlif_wM4ldzc1Gq7FhGO6IERk99Rga0aY5xTto=
account.password1234 account.usernamemangiare garbagesome nonsense
loginRestaurant Login
and the query string of the next page looks like
http://localhost:8080/MindMySeat/login?garbage=some+nonsense&account.username=mangiare&account.password=1234&loginRestaurant=Login&_sourcePage=ZtAJgTlif_wM4ldzc1Gq7FhGO6IERk99Rga0aY5xTto%3D&__fp=kgDCepNG-aU%3D
So I am assuming that the encryption process is not taking place (unless
the browser is making it invisible to me???).
I can see three options:
1. I am wrong and encryption is taking place
2. I am doing something wrong - I can provide more code if it would help
3. There's a bug (I am using 1.5.6)
Tx,
Ankur
--
Ankur Sharda
E: ankurshard...@gmail.com
M: 0421 311 106
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users