public class PermittedUrlsChecker extends Object
| Modifier and Type | Field and Description |
|---|---|
protected UrlPatternMatcher |
allowlistMatcher |
protected UrlPatternMatcher |
denylistMatcher |
| Constructor and Description |
|---|
PermittedUrlsChecker() |
PermittedUrlsChecker(List<String> allowlist,
List<String> denylist) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isRestrictedIpRange(InetAddress ip) |
ResolvedUrl |
verify(String url) |
protected final UrlPatternMatcher allowlistMatcher
protected final UrlPatternMatcher denylistMatcher
public ResolvedUrl verify(String url) throws HostDeniedException
HostDeniedExceptionprotected boolean isRestrictedIpRange(InetAddress ip)
Copyright © 2024. All rights reserved.