Package org.pac4j.sparkjava
Class SecurityFilter
- java.lang.Object
-
- org.pac4j.sparkjava.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 Summary
Fields Modifier and Type Field Description protected org.slf4j.Logger
logger
-
Constructor Summary
Constructors Constructor Description SecurityFilter(org.pac4j.core.config.Config config, String clients)
SecurityFilter(org.pac4j.core.config.Config config, String clients, String authorizers)
SecurityFilter(org.pac4j.core.config.Config config, String clients, String authorizers, String matchers)
SecurityFilter(org.pac4j.core.config.Config config, String clients, String authorizers, String matchers, Boolean multiProfile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAuthorizers()
String
getMatchers()
Boolean
getMultiProfile()
org.pac4j.core.engine.SecurityLogic<Object,SparkWebContext>
getSecurityLogic()
void
handle(spark.Request request, spark.Response response)
void
setAuthorizers(String authorizers)
void
setMatchers(String matchers)
void
setMultiProfile(Boolean multiProfile)
void
setSecurityLogic(org.pac4j.core.engine.SecurityLogic<Object,SparkWebContext> securityLogic)
-
-
-
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)
-
-
Method Detail
-
handle
public void handle(spark.Request request, spark.Response response)
- Specified by:
handle
in interfacespark.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)
-
-