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 CacheControlMatcher
protected static final CorsMatcher
protected static final CsrfTokenGeneratorMatcher
protected static final Matcher
protected static final Matcher
protected static final Matcher
protected static final Matcher
protected static final StrictTransportSecurityMatcher
protected static final XContentTypeOptionsMatcher
protected static final XFrameOptionsMatcher
protected static final XSSProtectionMatcher
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
computeDefaultMatcherNames
(CallContext ctx, List<Client> clients, Map<String, Matcher> matchersMap) computeMatchers
(CallContext ctx, String matchersValue, Map<String, Matcher> matchersMap, List<Client> clients) computeMatchersFromNames
(String matchersValue, Map<String, Matcher> matchersMap) boolean
matches
(CallContext ctx, String matchersValue, Map<String, Matcher> matchersMap, List<Client> clients) Check if the web context matches.protected boolean
matches
(CallContext ctx, 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(CallContext ctx, String matchersValue, Map<String, Matcher> matchersMap, List<Client> clients) Description copied from interface:MatchingChecker
Check if the web context matches.- Specified by:
matches
in interfaceMatchingChecker
- Parameters:
ctx
- the contextmatchersValue
- the matchersmatchersMap
- the map of matchersclients
- the clients- Returns:
- whether the web context matches
-
computeMatchers
-
computeDefaultMatcherNames
-
computeMatchersFromNames
-
retrieveMatchers
-
matches
-