|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.crowd.authentication.TrustedProxyManagerImpl
public class TrustedProxyManagerImpl
Handles the list of proxy servers whose X-Forwarded-For headers we trust. Deals with persisting and querying the list.
| Constructor Summary | |
|---|---|
TrustedProxyManagerImpl()
|
|
| Method Summary | |
|---|---|
boolean |
add(java.lang.String remoteAddress)
Adds to the list of servers we trust. |
java.util.List<java.lang.String> |
getList()
Returns the list of trusted proxy servers, or an empty List if there are none. |
protected java.util.List<java.lang.String> |
getListFromCache()
Loads the list from the cache. |
protected java.lang.String |
getProperty()
Loads the server property that contains the list of trusted proxies. |
boolean |
isTrusted(java.lang.String remoteAddress)
Returns true if the proxy server is trusted, false otherwise. |
void |
remove(java.lang.String remoteAddress)
Removes from the list of trusted servers. |
protected boolean |
saveList(java.util.List<java.lang.String> trustedProxies)
Saves the updated list and reloads it. |
void |
setCacheManager(CacheManager cacheManager)
|
protected boolean |
setProperty(java.lang.String value)
|
void |
setPropertyManager(PropertyManager propertyManager)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TrustedProxyManagerImpl()
| Method Detail |
|---|
public boolean isTrusted(java.lang.String remoteAddress)
isTrusted in interface TrustedProxyManagerremoteAddress -
public java.util.List<java.lang.String> getList()
getList in interface TrustedProxyManagerpublic boolean add(java.lang.String remoteAddress)
add in interface TrustedProxyManagerremoteAddress -
public void remove(java.lang.String remoteAddress)
remove in interface TrustedProxyManagerremoteAddress - protected java.lang.String getProperty()
protected boolean setProperty(java.lang.String value)
protected java.util.List<java.lang.String> getListFromCache()
protected boolean saveList(java.util.List<java.lang.String> trustedProxies)
trustedProxies - public void setPropertyManager(PropertyManager propertyManager)
public void setCacheManager(CacheManager cacheManager)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||