|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PrincipalProxy
Proxy interface used together with PrincipalAware interface. It allows indirect access to HttpServletRequest or PortletRequest Principal related methods.
Method Summary | |
---|---|
String |
getRemoteUser()
Gets the user id |
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 |
Method Detail |
---|
boolean isUserInRole(String role)
role
- The role
Principal getUserPrincipal()
String getRemoteUser()
boolean isRequestSecure()
HttpServletRequest getRequest()
org.apache.struts2.servlet.ServletRequestAware
, since this method will be dropped in future.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |