Hi David,
thanks again for your time!
There is only one instance of your realm that is shared by all incoming
requests. That mean only local values inside methods are individual.
Every property that is stored at instance of class level is to be
accessed and stored in a ThreadSafe manner. It's
Hi,
my problem is a bit complicate and I hope someone has enough courage to find an
answer :-).
First I try to explain what I want to do:
I am running an JAAS-Realm with FORM authentication. As known this can only
passes username and credential. Now, I was trying to pass the current IP
Salut David,
thanks very much for your answer!
public SecurityConstraint[] findSecurityConstraints(Request request,
Context context) {
HttpServletRequest req = request;// catch Request
session = req.getSession(); // catch session
ipAddress =
There is only one instance of your realm that is shared by all incoming
requests. That mean only local values inside methods are individual.
Every property that is stored at instance of class level is to be
accessed and stored in a ThreadSafe manner. It's up to you code to be
Threadsafe by