File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Switching security contexts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Switching security contexts" Watch "Switching security contexts" New topic
Author

Switching security contexts

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16473
    
  23

Does anyone know how to change the Principal on a Servlet's security context programmatically?
I'm creating a new signon for a user and I want to automatically sign him/her on when the account security has been setup up.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Switching security contexts