Package 

Interface AccessManager

  • All Implemented Interfaces:

    
    public interface AccessManager
    
                        

    The access manager is a way of implementing per-endpoint security management. It's only enabled for endpoints if a list of roles is provided. Ex: get("/secured", SecuredController::get, roles(LOGGED_IN));

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Unit manage(Handler handler, Context ctx, Set<RouteRole> routeRoles)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • manage

         abstract Unit manage(Handler handler, Context ctx, Set<RouteRole> routeRoles)
        Parameters:
        handler - http handler to call as follows handler.handle(ctx) if request is authenticated
        ctx - current context
        routeRoles - configured roles for this route