Class RoleBasedAuthHandler

  • All Implemented Interfaces:
    LightHttpHandler, io.undertow.server.HttpHandler

    public abstract class RoleBasedAuthHandler
    extends Object
    implements LightHttpHandler
    Role-Based Authorization Handler is an abstract handler to define the structure of the fine-grained Authorization within business context. We don't provide the final implementation as we don't have the business knowledge to do so. Assume role will be passed in from JwT token as role with a list of role ids like scopes.
    Author:
    Steve Hu
    • Constructor Detail

      • RoleBasedAuthHandler

        public RoleBasedAuthHandler()
    • Method Detail

      • handleRequest

        public void handleRequest​(io.undertow.server.HttpServerExchange httpServerExchange)
                           throws Exception
        Specified by:
        handleRequest in interface io.undertow.server.HttpHandler
        Throws:
        Exception