Interface WebAuthorizer

    • Method Detail

      • isUserInRole

        boolean isUserInRole​(javax.servlet.http.HttpServletRequest request,
        Determines whether a user associated with an HTTP request possesses a particular role. This method simply delegates to HttpServletRequest.isUserInRole(String) by converting the Principal's name to a String.
        request - the HTTP request
        role - the role to check
        true if the user is considered to be in the role, false otherwise