Class UserPrincipal

    • Method Detail

      • hasRole

        public boolean hasRole​(String role)
        Deprecated.
        Checks if the user has the given string based role. We use strings here and not the enum to facilitate the use of the method with the standard SecurityContext which uses Strings for roles.
        Parameters:
        role - case insensitive role
        Returns:
        true if the user has the requested role