Class SecurityFilter

  • All Implemented Interfaces:
    spark.Filter

    public class SecurityFilter
    extends Object
    implements spark.Filter

    This filter protects an url.

    Since:
    1.0.0
    Author:
    Jerome Leleu
    • Field Detail

      • logger

        protected org.slf4j.Logger logger
    • Constructor Detail

      • SecurityFilter

        public SecurityFilter​(org.pac4j.core.config.Config config,
                              String clients)
      • SecurityFilter

        public SecurityFilter​(org.pac4j.core.config.Config config,
                              String clients,
                              String authorizers)
      • SecurityFilter

        public SecurityFilter​(org.pac4j.core.config.Config config,
                              String clients,
                              String authorizers,
                              String matchers)
      • SecurityFilter

        public SecurityFilter​(org.pac4j.core.config.Config config,
                              String clients,
                              String authorizers,
                              String matchers,
                              Boolean multiProfile)
    • Method Detail

      • handle

        public void handle​(spark.Request request,
                           spark.Response response)
        Specified by:
        handle in interface spark.Filter
      • getSecurityLogic

        public org.pac4j.core.engine.SecurityLogic<Object,​SparkWebContext> getSecurityLogic()
      • setSecurityLogic

        public void setSecurityLogic​(org.pac4j.core.engine.SecurityLogic<Object,​SparkWebContext> securityLogic)
      • getAuthorizers

        public String getAuthorizers()
      • setAuthorizers

        public void setAuthorizers​(String authorizers)
      • getMatchers

        public String getMatchers()
      • setMatchers

        public void setMatchers​(String matchers)
      • getMultiProfile

        public Boolean getMultiProfile()
      • setMultiProfile

        public void setMultiProfile​(Boolean multiProfile)