| |
|
| java.lang.Object org.apache.struts2.servlet.interceptor.ServletPrincipalProxy
ServletPrincipalProxy | public class ServletPrincipalProxy implements PrincipalProxy(Code) | | PrincipalProxy implementation for using HttpServletRequest Principal related methods.
|
ServletPrincipalProxy | public ServletPrincipalProxy(HttpServletRequest request)(Code) | | Constructs a proxy
Parameters: request - The underlying request |
getRemoteUser | public String getRemoteUser()(Code) | | Gets the user id
The user id |
getRequest | public HttpServletRequest getRequest()(Code) | | Gets the request.
The requestorg.apache.struts2.servlet.ServletRequestAware |
getUserPrincipal | public Principal getUserPrincipal()(Code) | | Gets the user principal
The principal |
isRequestSecure | public boolean isRequestSecure()(Code) | | Is the request using https?
True if using https |
isUserInRole | public boolean isUserInRole(String role)(Code) | | True if the user is in the given role
Parameters: role - The role True if the user is in that role |
|
|
|