Package org.pac4j.core.matching.checker
Class DefaultMatchingChecker
java.lang.Object
org.pac4j.core.matching.checker.DefaultMatchingChecker
- All Implemented Interfaces:
MatchingChecker
Default way to check the matchers (with default matchers).
- Since:
- 4.0.0
- Author:
- Jerome Leleu
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final CacheControlMatcherprotected static final CorsMatcherprotected static final CsrfTokenGeneratorMatcherprotected static final Matcherprotected static final Matcherprotected static final Matcherprotected static final Matcherprotected static final StrictTransportSecurityMatcherprotected static final XContentTypeOptionsMatcherprotected static final XFrameOptionsMatcherprotected static final XSSProtectionMatcher -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringcomputeDefaultMatcherNames(WebContext context, SessionStore sessionStore, List<Client> clients, Map<String, Matcher> matchersMap) computeMatchers(WebContext context, SessionStore sessionStore, String matchersValue, Map<String, Matcher> matchersMap, List<Client> clients) computeMatchersFromNames(String matchersValue, Map<String, Matcher> matchersMap) booleanmatches(WebContext context, SessionStore sessionStore, String matchersValue, Map<String, Matcher> matchersMap, List<Client> clients) Check if the web context matches.protected booleanmatches(WebContext context, SessionStore sessionStore, List<Matcher> matchers) retrieveMatchers(String matcherName, Map<String, Matcher> matchersMap)
-
Field Details
-
GET_MATCHER
-
POST_MATCHER
-
PUT_MATCHER
-
DELETE_MATCHER
-
STRICT_TRANSPORT_MATCHER
-
X_CONTENT_TYPE_OPTIONS_MATCHER
-
X_FRAME_OPTIONS_MATCHER
-
XSS_PROTECTION_MATCHER
-
CACHE_CONTROL_MATCHER
-
CSRF_TOKEN_MATCHER
-
CORS_MATCHER
-
-
Constructor Details
-
DefaultMatchingChecker
public DefaultMatchingChecker()
-
-
Method Details
-
matches
public boolean matches(WebContext context, SessionStore sessionStore, String matchersValue, Map<String, Matcher> matchersMap, List<Client> clients) Description copied from interface:MatchingCheckerCheck if the web context matches.- Specified by:
matchesin interfaceMatchingChecker- Parameters:
context- the web contextsessionStore- the session storematchersValue- the matchersmatchersMap- the map of matchersclients- the clients- Returns:
- whether the web context matches
-
computeMatchers
protected List<Matcher> computeMatchers(WebContext context, SessionStore sessionStore, String matchersValue, Map<String, Matcher> matchersMap, List<Client> clients) -
computeDefaultMatcherNames
protected String computeDefaultMatcherNames(WebContext context, SessionStore sessionStore, List<Client> clients, Map<String, Matcher> matchersMap) -
computeMatchersFromNames
-
retrieveMatchers
-
matches
-