Class SecurityHandler

java.lang.Object
org.pac4j.undertow.handler.SecurityHandler
All Implemented Interfaces:
io.undertow.server.HttpHandler

public class SecurityHandler extends Object implements io.undertow.server.HttpHandler

This filter protects an URL.

Since:
1.2.0
Author:
Jerome Leleu
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    SecurityHandler(io.undertow.server.HttpHandler toWrap, org.pac4j.core.config.Config config, String clients, String authorizers, String matchers)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static io.undertow.server.HttpHandler
    build(io.undertow.server.HttpHandler toWrap, org.pac4j.core.config.Config config)
     
    static io.undertow.server.HttpHandler
    build(io.undertow.server.HttpHandler toWrap, org.pac4j.core.config.Config config, String clients)
     
    static io.undertow.server.HttpHandler
    build(io.undertow.server.HttpHandler toWrap, org.pac4j.core.config.Config config, String clients, String authorizers)
     
    static io.undertow.server.HttpHandler
    build(io.undertow.server.HttpHandler toWrap, org.pac4j.core.config.Config config, String clients, String authorizers, String matchers)
     
    static io.undertow.server.HttpHandler
    build(io.undertow.server.HttpHandler toWrap, org.pac4j.core.config.Config config, String clients, String authorizers, String matchers, org.pac4j.core.engine.SecurityLogic securityLogic)
     
     
     
     
    protected org.pac4j.core.engine.SecurityLogic
     
    void
    handleRequest(io.undertow.server.HttpServerExchange exchange)
     
    void
    setAuthorizers(String authorizers)
     
    void
    setClients(String clients)
     
    void
    setMatchers(String matchers)
     
    protected void
    setSecurityLogic(org.pac4j.core.engine.SecurityLogic securityLogic)
     

    Methods inherited from class java.lang.Object

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

    • SecurityHandler

      protected SecurityHandler(io.undertow.server.HttpHandler toWrap, org.pac4j.core.config.Config config, String clients, String authorizers, String matchers)
  • Method Details

    • build

      public static io.undertow.server.HttpHandler build(io.undertow.server.HttpHandler toWrap, org.pac4j.core.config.Config config)
    • build

      public static io.undertow.server.HttpHandler build(io.undertow.server.HttpHandler toWrap, org.pac4j.core.config.Config config, String clients)
    • build

      public static io.undertow.server.HttpHandler build(io.undertow.server.HttpHandler toWrap, org.pac4j.core.config.Config config, String clients, String authorizers)
    • build

      public static io.undertow.server.HttpHandler build(io.undertow.server.HttpHandler toWrap, org.pac4j.core.config.Config config, String clients, String authorizers, String matchers)
    • build

      public static io.undertow.server.HttpHandler build(io.undertow.server.HttpHandler toWrap, org.pac4j.core.config.Config config, String clients, String authorizers, String matchers, org.pac4j.core.engine.SecurityLogic securityLogic)
    • handleRequest

      public void handleRequest(io.undertow.server.HttpServerExchange exchange) throws Exception
      Specified by:
      handleRequest in interface io.undertow.server.HttpHandler
      Throws:
      Exception
    • getSecurityLogic

      protected org.pac4j.core.engine.SecurityLogic getSecurityLogic()
    • setSecurityLogic

      protected void setSecurityLogic(org.pac4j.core.engine.SecurityLogic securityLogic)
    • getClients

      public String getClients()
    • setClients

      public void setClients(String clients)
    • getAuthorizers

      public String getAuthorizers()
    • setAuthorizers

      public void setAuthorizers(String authorizers)
    • getMatchers

      public String getMatchers()
    • setMatchers

      public void setMatchers(String matchers)