Interface SecurityManager
- All Known Implementing Classes:
AbstractSecurityManager
public interface SecurityManager
-
Method Summary
Modifier and TypeMethodDescriptionGet group names for currently authenticated user from application security contextGet currently authenticated user id from application security contextGet list of role names for currently authenticated user from application security context
-
Method Details
-
getAuthenticatedUserId
String getAuthenticatedUserId()Get currently authenticated user id from application security context- Returns:
- currently authenticate user id or empty string if anonymous user
-
getAuthenticatedUserGroups
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
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
-