Package org.gatein.pc.api.spi
Interface SecurityContext
-
public interface SecurityContext- Version:
- $Revision: 5448 $
- Author:
- Julien Viet
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetAuthType()StringgetRemoteUser()PrincipalgetUserPrincipal()booleanisAuthenticated()booleanisSecure()booleanisUserInRole(String roleName)
-
-
-
Method Detail
-
isSecure
boolean isSecure()
- Returns:
- true if is secured
-
isAuthenticated
boolean isAuthenticated()
- Returns:
- true if it is authenticated
-
getAuthType
String getAuthType()
- Returns:
- the auth type
-
getRemoteUser
String getRemoteUser()
- Returns:
- the remote user
-
getUserPrincipal
Principal getUserPrincipal()
- Returns:
- the user principal
-
isUserInRole
boolean isUserInRole(String roleName)
- Parameters:
roleName- the role name- Returns:
- true if the user is in role
-
-