public class ServletPrincipalProxy extends Object implements PrincipalProxy
Constructor and Description |
---|
ServletPrincipalProxy(javax.servlet.http.HttpServletRequest 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 ServletPrincipalProxy(javax.servlet.http.HttpServletRequest request)
request
- The underlying requestpublic boolean isUserInRole(String role)
isUserInRole
in interface PrincipalProxy
role
- The rolepublic Principal getUserPrincipal()
getUserPrincipal
in interface PrincipalProxy
public String getRemoteUser()
getRemoteUser
in interface PrincipalProxy
public boolean isRequestSecure()
isRequestSecure
in interface PrincipalProxy
Copyright © 2000–2020 Apache Software Foundation. All rights reserved.