Class URLPatternMatcher
- java.lang.Object
-
- com.sun.identity.shared.whitelist.URLPatternMatcher
-
public class URLPatternMatcher extends Object
The class provides pattern matching for notenforced URIs/URLs.
-
-
Constructor Summary
Constructors Constructor Description URLPatternMatcher()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanmatch(String requestedURL, Collection<String> patterns, boolean wildcard)Matches the URL against the provided URL patterns.
-
-
-
Method Detail
-
match
public boolean match(String requestedURL, Collection<String> patterns, boolean wildcard) throws MalformedURLException
Matches the URL against the provided URL patterns.- Parameters:
requestedURL- The URL to be matched.patterns- The patterns to match the URL against.wildcard- Flag for wildcard comparison- Returns:
trueif matched,falseotherwise.- Throws:
MalformedURLException- If the URL or one of the patterns is invalid.
-
-