Alexander Klyubin wrote:
> This shouldn't help if I wish to work under different identities in the same
> thread SEQUENTIALLY though (e.g. test clients running security tests in the
> same thread, servlets, ...).
Then create different LoginContexts SEQUENTIALLY or just call
SecurityAssociation.setPrincipal and SecurityAssociation.setCredential
with different user names and passwords.

> Anyway, I checked some jBoss code, if I remember correctly, setServer()
> makes ClientLoginModule use TLS for storing principal.
If "TLS" means ThreadLocal, then you are right.

Oleg



Reply via email to