Home » struts-2.1.8.1-src » org.apache » struts2 » interceptor » [javadoc | source]
org.apache.struts2.interceptor
public interface: PrincipalProxy [javadoc | source]

All Known Implementing Classes:
    PortletPrincipalProxy, ServletPrincipalProxy

Proxy interface used together with PrincipalAware interface. It allows indirect access to HttpServletRequest or PortletRequest Principal related methods.
Method from org.apache.struts2.interceptor.PrincipalProxy Summary:
getRemoteUser,   getRequest,   getUserPrincipal,   isRequestSecure,   isUserInRole
Method from org.apache.struts2.interceptor.PrincipalProxy Detail:
 public String getRemoteUser()
    Gets the user id
 public HttpServletRequest getRequest()Deprecated! To -  obtain the HttpServletRequest in your action, use
            org.apache.struts2.servlet.ServletRequestAware , since this method will be dropped in future.

    Gets the request.
 public Principal getUserPrincipal()
    Gets the user principal
 public boolean isRequestSecure()
    Is the request using https?
 public boolean isUserInRole(String role)
    True if the user is in the given role