public interface HttpServletSecurity
HTTP Security interface for the HttpServlet container.
As HttpServlet always requires depending on HTTP Security, this
interface is provided to differentiate the HttpServlet so that
authentication is not always required. This enables mixing
HttpServlet security with WebAutoWireApplication security
(i.e. not escalate HttpAuthenticationRequiredException and just
provide null instance).
| Modifier and Type | Method and Description |
|---|---|
String |
getAuthenticationScheme()
Obtains the authentication scheme used.
|
String |
getRemoteUser()
Name of the user.
|
Principal |
getUserPrincipal()
Obtains the
Principal for the user. |
boolean |
isUserInRole(String role)
Indicates if the user supports the role.
|
String getAuthenticationScheme()
Principal getUserPrincipal()
Principal for the user.Principal for the user.String getRemoteUser()
boolean isUserInRole(String role)
role - Role to check if user supports.true if the user supports the role.Copyright © 2005–2015. All rights reserved.