Package com.networknt.security.inbound
Class RoleBasedAuthHandler
- java.lang.Object
-
- com.networknt.security.inbound.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
-
-
Field Summary
-
Fields inherited from interface com.networknt.handler.LightHttpHandler
AUDIT_ON_ERROR, AUDIT_STACK_TRACE, auditOnError, auditStackTrace, config, CONFIG_NAME, ERROR_NOT_DEFINED, logger
-
-
Constructor Summary
Constructors Constructor Description RoleBasedAuthHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleRequest(io.undertow.server.HttpServerExchange httpServerExchange)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.networknt.handler.LightHttpHandler
setExchangeStatus, setExchangeStatus
-
-