|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.crowd.manager.proxy.TrustedProxyManagerImpl
public class TrustedProxyManagerImpl
Handles the list of proxy servers whose X-Forwarded-For headers we trust. Deals with persisting and querying the list.
Field Summary | |
---|---|
protected static String |
REQUESTED_PROXIES_CACHE
|
Constructor Summary | |
---|---|
TrustedProxyManagerImpl(PropertyManager propertyManager,
CacheManager cacheManager)
|
Method Summary | |
---|---|
boolean |
addAddress(String remoteAddress)
Adds to the list of servers we trust. |
Set<String> |
getAddresses()
Returns the addresses of the trusted proxy servers, or an empty dry if there are none. |
boolean |
isTrusted(String remoteAddress)
Returns true if the proxy server is trusted, false otherwise. |
void |
removeAddress(String remoteAddress)
Removes from the list of trusted servers. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String REQUESTED_PROXIES_CACHE
Constructor Detail |
---|
public TrustedProxyManagerImpl(PropertyManager propertyManager, CacheManager cacheManager)
Method Detail |
---|
public boolean isTrusted(String remoteAddress)
isTrusted
in interface TrustedProxyManager
remoteAddress
- address of the proxy
public Set<String> getAddresses()
getAddresses
in interface TrustedProxyManager
public boolean addAddress(String remoteAddress)
addAddress
in interface TrustedProxyManager
remoteAddress
- host name or IP address
public void removeAddress(String remoteAddress)
removeAddress
in interface TrustedProxyManager
remoteAddress
- hostname or IP address
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |