Interface SecurityManager
-
- All Known Implementing Classes:
AbstractSecurityManager
public interface SecurityManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<String>getAuthenticatedUserGroups()Get group names for currently authenticated user from application security contextStringgetAuthenticatedUserId()Get currently authenticated user id from application security contextList<String>getAuthenticatedUserRoles()Get list of role names for currently authenticated user from application security context
-
-
-
Method Detail
-
getAuthenticatedUserId
String getAuthenticatedUserId()
Get currently authenticated user id from application security context- Returns:
- currently authenticate user id or empty string if anonymous user
-
getAuthenticatedUserGroups
List<String> getAuthenticatedUserGroups() throws SecurityException
Get group names for currently authenticated user from application security context- Returns:
- list of group names the current user is member of
- Throws:
SecurityException- if principal security context is not valid
-
getAuthenticatedUserRoles
List<String> getAuthenticatedUserRoles() throws SecurityException
Get list of role names for currently authenticated user from application security context- Returns:
- list of roles names or empty collection
- Throws:
SecurityException- if principal security context is not valid
-
-