Package org.gatein.pc.api.spi
Interface SecurityContext
public interface SecurityContext
- Version:
- $Revision: 5448 $
- Author:
- Julien Viet
-
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanisSecure()booleanisUserInRole(String roleName)
-
Method Details
-
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
- Parameters:
roleName- the role name- Returns:
- true if the user is in role
-