|
||||||||||
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 | |
---|---|
java.lang.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. |
java.security.Principal |
getUserPrincipal()
Gets the user principal |
boolean |
isRequestSecure()
Is the request using https? |
boolean |
isUserInRole(java.lang.String role)
True if the user is in the given role |
Method Detail |
---|
boolean isUserInRole(java.lang.String role)
role
- The role
java.security.Principal getUserPrincipal()
java.lang.String getRemoteUser()
boolean isRequestSecure()
javax.servlet.http.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 |