Interface SecurityManager

    • Method Detail

      • getAuthenticatedUserId

        java.lang.String getAuthenticatedUserId()
        Get currently authenticated user id from application security context
        Returns:
        currently authenticate user id or empty string if anonymous user
      • getAuthenticatedUserGroups

        java.util.List<java.lang.String> getAuthenticatedUserGroups()
                                                             throws java.lang.SecurityException
        Get group names for currently authenticated user from application security context
        Returns:
        list of group names the current user is member of
        Throws:
        java.lang.SecurityException - if principal security context is not valid
      • getAuthenticatedUserRoles

        java.util.List<java.lang.String> getAuthenticatedUserRoles()
                                                            throws java.lang.SecurityException
        Get list of role names for currently authenticated user from application security context
        Returns:
        list of roles names or empty collection
        Throws:
        java.lang.SecurityException - if principal security context is not valid