Package org.pac4j.springframework.web
Class SecurityInterceptor
- java.lang.Object
-
- org.pac4j.springframework.web.SecurityInterceptor
-
- All Implemented Interfaces:
org.springframework.web.servlet.HandlerInterceptor
public class SecurityInterceptor extends Object implements org.springframework.web.servlet.HandlerInterceptor
This interceptor protects an URL.
- Since:
- 1.0.0
- Author:
- Jerome Leleu
-
-
Constructor Summary
Constructors Constructor Description SecurityInterceptor(org.pac4j.core.config.Config config)
SecurityInterceptor(org.pac4j.core.config.Config config, String clients)
SecurityInterceptor(org.pac4j.core.config.Config config, String clients, String authorizers)
SecurityInterceptor(org.pac4j.core.config.Config config, String clients, String authorizers, String matchers)
SecurityInterceptor(org.pac4j.core.config.Config config, String clients, org.pac4j.core.authorization.authorizer.Authorizer[] authorizers)
SecurityInterceptor(org.pac4j.core.config.Config config, String clients, org.pac4j.core.authorization.authorizer.Authorizer[] authorizers, org.pac4j.core.matching.matcher.Matcher[] matchers)
SecurityInterceptor(org.pac4j.core.config.Config config, String clients, org.pac4j.core.http.adapter.HttpActionAdapter httpActionAdapter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAuthorizers()
String
getClients()
org.pac4j.core.config.Config
getConfig()
org.pac4j.core.http.adapter.HttpActionAdapter
getHttpActionAdapter()
String
getMatchers()
org.pac4j.core.engine.SecurityLogic
getSecurityLogic()
boolean
preHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object handler)
void
setAuthorizers(String authorizers)
void
setClients(String clients)
void
setConfig(org.pac4j.core.config.Config config)
void
setHttpActionAdapter(org.pac4j.core.http.adapter.HttpActionAdapter httpActionAdapter)
void
setMatchers(String matchers)
void
setSecurityLogic(org.pac4j.core.engine.SecurityLogic securityLogic)
-
-
-
Constructor Detail
-
SecurityInterceptor
public SecurityInterceptor(org.pac4j.core.config.Config config)
-
SecurityInterceptor
public SecurityInterceptor(org.pac4j.core.config.Config config, String clients)
-
SecurityInterceptor
public SecurityInterceptor(org.pac4j.core.config.Config config, String clients, org.pac4j.core.http.adapter.HttpActionAdapter httpActionAdapter)
-
SecurityInterceptor
public SecurityInterceptor(org.pac4j.core.config.Config config, String clients, String authorizers)
-
SecurityInterceptor
public SecurityInterceptor(org.pac4j.core.config.Config config, String clients, org.pac4j.core.authorization.authorizer.Authorizer[] authorizers)
-
SecurityInterceptor
public SecurityInterceptor(org.pac4j.core.config.Config config, String clients, String authorizers, String matchers)
-
SecurityInterceptor
public SecurityInterceptor(org.pac4j.core.config.Config config, String clients, org.pac4j.core.authorization.authorizer.Authorizer[] authorizers, org.pac4j.core.matching.matcher.Matcher[] matchers)
-
-
Method Detail
-
preHandle
public boolean preHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object handler)
- Specified by:
preHandle
in interfaceorg.springframework.web.servlet.HandlerInterceptor
-
getSecurityLogic
public org.pac4j.core.engine.SecurityLogic getSecurityLogic()
-
setSecurityLogic
public 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)
-
getConfig
public org.pac4j.core.config.Config getConfig()
-
setConfig
public void setConfig(org.pac4j.core.config.Config config)
-
getHttpActionAdapter
public org.pac4j.core.http.adapter.HttpActionAdapter getHttpActionAdapter()
-
setHttpActionAdapter
public void setHttpActionAdapter(org.pac4j.core.http.adapter.HttpActionAdapter httpActionAdapter)
-
-