public class PortletPrincipalProxy extends Object implements PrincipalProxy
| Constructor and Description |
|---|
PortletPrincipalProxy(javax.portlet.PortletRequest request)
Constructs a proxy
|
| Modifier and Type | Method and Description |
|---|---|
String |
getRemoteUser()
Gets the user id
|
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
|
public PortletPrincipalProxy(javax.portlet.PortletRequest request)
request - The underlying requestpublic boolean isUserInRole(String role)
isUserInRole in interface PrincipalProxyrole - The rolepublic Principal getUserPrincipal()
getUserPrincipal in interface PrincipalProxypublic String getRemoteUser()
getRemoteUser in interface PrincipalProxypublic boolean isRequestSecure()
isRequestSecure in interface PrincipalProxyCopyright © 2000–2021 Apache Software Foundation. All rights reserved.