Class SimpleAuthenticationCacheStore
java.lang.Object
com.jadaptive.webauthn.server.request.simple.cache.store.SimpleAuthenticationCacheStore
- All Implemented Interfaces:
com.jadaptive.webauthn.server.request.cache.store.AuthenticationCacheStore
@Component
public class SimpleAuthenticationCacheStore
extends Object
implements com.jadaptive.webauthn.server.request.cache.store.AuthenticationCacheStore
In memory cache store for Authentication requests.
When we start an authentication request, it flows into more than one requests.
We need to cache the request object.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOptional<com.jadaptive.webauthn.server.model.AuthenticationRequest.AuthenticationRequestWithSerializable>get(com.yubico.webauthn.data.ByteArray id) voidput(com.yubico.webauthn.data.ByteArray id, com.jadaptive.webauthn.server.model.AuthenticationRequest.AuthenticationRequestWithSerializable authenticationRequest) booleanremove(com.yubico.webauthn.data.ByteArray id)
-
Constructor Details
-
SimpleAuthenticationCacheStore
public SimpleAuthenticationCacheStore()
-
-
Method Details
-
get
public Optional<com.jadaptive.webauthn.server.model.AuthenticationRequest.AuthenticationRequestWithSerializable> get(com.yubico.webauthn.data.ByteArray id) - Specified by:
getin interfacecom.jadaptive.webauthn.server.request.cache.store.AuthenticationCacheStore
-
put
public void put(com.yubico.webauthn.data.ByteArray id, com.jadaptive.webauthn.server.model.AuthenticationRequest.AuthenticationRequestWithSerializable authenticationRequest) - Specified by:
putin interfacecom.jadaptive.webauthn.server.request.cache.store.AuthenticationCacheStore
-
remove
public boolean remove(com.yubico.webauthn.data.ByteArray id) - Specified by:
removein interfacecom.jadaptive.webauthn.server.request.cache.store.AuthenticationCacheStore
-