Class GbifUserPrincipal

    • Method Detail

      • hasRole

        public boolean hasRole​(String role)
        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.
        Specified by:
        hasRole in interface ExtendedPrincipal
        Parameters:
        role - case insensitive role
        Returns:
        true if the user has the requested role