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 . |
Modifier and Type | Method and Description |
---|---|
HttpServletRequest |
getRequest()
Get the Servlet request that this credentials applies to.
|
public ServletCredentials(HttpServletRequest request)
Credentials
using the supplied servlet information
.request
- the servlet requestpublic HttpServletRequest getRequest()
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.