Package org.apache.struts2.interceptor
Interface PrincipalProxy
- All Known Implementing Classes:
- ServletPrincipalProxy
public interface PrincipalProxy
Proxy interface used together with PrincipalAware interface. It allows indirect
 access to HttpServletRequest or PortletRequest Principal related methods.
- 
Method SummaryModifier and TypeMethodDescriptionGets the user idGets the user principalbooleanIs the request using https?booleanisUserInRole(String role) True if the user is in the given role
- 
Method Details- 
isUserInRoleTrue if the user is in the given role- Parameters:
- role- The role
- Returns:
- True if the user is in that role
 
- 
getUserPrincipalPrincipal getUserPrincipal()Gets the user principal- Returns:
- The principal
 
- 
getRemoteUserString getRemoteUser()Gets the user id- Returns:
- The user id
 
- 
isRequestSecureboolean isRequestSecure()Is the request using https?- Returns:
- True if using https
 
 
-