Package org.trellisldp.webac
Class WebAcService.NoopAuthorizationCache
- java.lang.Object
-
- org.trellisldp.webac.WebAcService.NoopAuthorizationCache
-
- All Implemented Interfaces:
CacheService<String,AuthorizedModes>
- Enclosing class:
- WebAcService
@TrellisAuthorizationCache public static class WebAcService.NoopAuthorizationCache extends Object implements CacheService<String,AuthorizedModes>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.trellisldp.api.CacheService
CacheService.TrellisProfileCache
-
-
Constructor Summary
Constructors Constructor Description NoopAuthorizationCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthorizedModes
get(String key, Function<String,AuthorizedModes> f)
Get a value from the cache.
-
-
-
Method Detail
-
get
public AuthorizedModes get(String key, Function<String,AuthorizedModes> f)
Description copied from interface:CacheService
Get a value from the cache.- Specified by:
get
in interfaceCacheService<String,AuthorizedModes>
- Parameters:
key
- the keyf
- attempts to compute a mapping for the specified key- Returns:
- a value for that key, never
null
-
-