Interface TrustedProxyManager
- All Known Implementing Classes:
TrustedProxyManagerImpl
public interface TrustedProxyManager
Manages the list of trusted proxies.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanaddAddress(String remoteAddress) Adds a remote address to the list of those trusted to act as proxies.Returns the addresses of all the trusted proxy servers, or an empty set if there are none.booleanReturnstrueif the address represents a configured trusted proxy.voidremoveAddress(String remoteAddress) Removes the address of the proxy from the list of trusted proxies.
-
Method Details
-
isTrusted
Returnstrueif the address represents a configured trusted proxy. False otherwise.- Parameters:
remoteAddress- address of the proxy server- Returns:
trueif the address is a trusted proxy
-
getAddresses
Returns the addresses of all the trusted proxy servers, or an empty set if there are none.- Returns:
- addresses of all the trusted proxy servers
-
addAddress
Adds a remote address to the list of those trusted to act as proxies.- Parameters:
remoteAddress- address of a trusted proxy- Returns:
trueif theremoteAddresswas added, false otherwise.
-
removeAddress
Removes the address of the proxy from the list of trusted proxies.- Parameters:
remoteAddress- address of the proxy
-