Class DisabledCacheServiceImpl
java.lang.Object
net.shibboleth.idp.plugin.authn.webauthn.storage.impl.DisabledCacheServiceImpl
- All Implemented Interfaces:
CacheService
A no-op implementation of a
CacheService. Constructed if the cache service is effectively disabled.- Since:
- 1.3.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetIfPresent(com.yubico.webauthn.data.ByteArray userHandle) Returns the value associated with key in this cache, ornullif there is no cached value.voidinvalidate(com.yubico.webauthn.data.ByteArray userHandle) Removes any cached value for the key.voidRemoves all entries in the cache.voidput(CredentialRecord registration) Associates the registration with the username in this cache.
-
Constructor Details
-
DisabledCacheServiceImpl
public DisabledCacheServiceImpl()
-
-
Method Details
-
getIfPresent
Description copied from interface:CacheServiceReturns the value associated with key in this cache, ornullif there is no cached value.- Specified by:
getIfPresentin interfaceCacheService- Parameters:
userHandle- the key to use- Returns:
- the username associated with key in the cache, or
nullif no mapping is found.
-
put
Description copied from interface:CacheServiceAssociates the registration with the username in this cache. If the cache previously contained a value associated with this registration, the old value is replaced by the username in the registration.- Specified by:
putin interfaceCacheService- Parameters:
registration- the registration to extract the mapping from.
-
invalidate
public void invalidate(@Nonnull com.yubico.webauthn.data.ByteArray userHandle) Description copied from interface:CacheServiceRemoves any cached value for the key.- Specified by:
invalidatein interfaceCacheService- Parameters:
userHandle- the key
-
invalidateAll
public void invalidateAll()Description copied from interface:CacheServiceRemoves all entries in the cache.- Specified by:
invalidateAllin interfaceCacheService
-