public interface PrincipalProxy
Modifier and Type | Method and Description |
---|---|
String |
getRemoteUser()
Gets the user id
|
javax.servlet.http.HttpServletRequest |
getRequest()
Deprecated.
To obtain the HttpServletRequest in your action, use
org.apache.struts2.servlet.ServletRequestAware , since this method will be dropped in future. |
Principal |
getUserPrincipal()
Gets the user principal
|
boolean |
isRequestSecure()
Is the request using https?
|
boolean |
isUserInRole(String role)
True if the user is in the given role
|
boolean isUserInRole(String role)
role
- The rolePrincipal getUserPrincipal()
String getRemoteUser()
boolean isRequestSecure()
javax.servlet.http.HttpServletRequest getRequest()
org.apache.struts2.servlet.ServletRequestAware
, since this method will be dropped in future.Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.