Package io.swagger.v3.parser.urlresolver
Class PermittedUrlsChecker
- java.lang.Object
-
- io.swagger.v3.parser.urlresolver.PermittedUrlsChecker
-
public class PermittedUrlsChecker extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected UrlPatternMatcherallowlistMatcherprotected UrlPatternMatcherdenylistMatcher
-
Constructor Summary
Constructors Constructor Description PermittedUrlsChecker()PermittedUrlsChecker(List<String> allowlist, List<String> denylist)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanisRestrictedIpRange(InetAddress ip)ResolvedUrlverify(String url)
-
-
-
Field Detail
-
allowlistMatcher
protected final UrlPatternMatcher allowlistMatcher
-
denylistMatcher
protected final UrlPatternMatcher denylistMatcher
-
-
Method Detail
-
verify
public ResolvedUrl verify(String url) throws HostDeniedException
- Throws:
HostDeniedException
-
isRestrictedIpRange
protected boolean isRestrictedIpRange(InetAddress ip)
-
-