public class InetAddressCacheUtil extends Object
|Constructor and Description|
|Modifier and Type||Method and Description|
Clears the entire cache storing the address permissions.
Gets from cache whether the
Sets in the cache that
public static final String INET_ADDRESS_CACHE_NAME
public InetAddressCacheUtil(CacheManager cacheManager)
public void setPermitted(Application application, InetAddress address, boolean permitted)
addressis permitted/forbidden from making a request to the Crowd server.
application- application that is requesting the connection.
address- InetAddress to set
addressis permitted or forbidden to make a request.
public boolean getPermitted(Application application, InetAddress address) throws NotInCacheException
addressis permitted to make a request to the Crowd server.
application- Application making the request.
address- address of the client making the request.
addressis permitted to make a request
NotInCacheException- if the address is not in the cache
public void clearCache()
Copyright © 2015 Atlassian. All Rights Reserved.