public class ServletCredentials extends Object implements Credentials
Credentials implementation that assumes servlet-based authentication and provides authorization through the
servlet role-checking mechanism.
These credentials are really only valid for the life of the servlet request, and thus should be used
to obtain a Session for each request.
Note that this class can only be used if the HttpServletRequest class is on the classpath.
| Constructor and Description |
|---|
ServletCredentials(HttpServletRequest request)
Create a
Credentials using the supplied servlet information. |
public ServletCredentials(HttpServletRequest request)
Credentials using the supplied servlet information.request - the servlet requestpublic HttpServletRequest getRequest()
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.