Interface SecurityManager

    • 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