|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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 java.lang.String |
REQUESTED_PROXIES_CACHE
|
| Constructor Summary | |
|---|---|
TrustedProxyManagerImpl(PropertyManager propertyManager,
CacheManager cacheManager)
|
|
| Method Summary | |
|---|---|
boolean |
addAddress(java.lang.String remoteAddress)
Adds to the list of servers we trust. |
java.util.Set<java.lang.String> |
getAddresses()
Returns the addresses of the trusted proxy servers, or an empty dry if there are none. |
boolean |
isTrusted(java.lang.String remoteAddress)
Returns true if the proxy server is trusted, false otherwise. |
void |
removeAddress(java.lang.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 java.lang.String REQUESTED_PROXIES_CACHE
| Constructor Detail |
|---|
public TrustedProxyManagerImpl(PropertyManager propertyManager,
CacheManager cacheManager)
| Method Detail |
|---|
public boolean isTrusted(java.lang.String remoteAddress)
isTrusted in interface TrustedProxyManagerremoteAddress - address of the proxy
public java.util.Set<java.lang.String> getAddresses()
getAddresses in interface TrustedProxyManagerpublic boolean addAddress(java.lang.String remoteAddress)
addAddress in interface TrustedProxyManagerremoteAddress - host name or IP address
public void removeAddress(java.lang.String remoteAddress)
removeAddress in interface TrustedProxyManagerremoteAddress - hostname or IP address
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||