Class SimpleRegistrationCacheStore
java.lang.Object
com.jadaptive.webauthn.server.request.simple.cache.store.SimpleRegistrationCacheStore
- All Implemented Interfaces:
com.jadaptive.webauthn.server.request.cache.store.RegistrationCacheStore
@Component
public class SimpleRegistrationCacheStore
extends Object
implements com.jadaptive.webauthn.server.request.cache.store.RegistrationCacheStore
In memory cache store for Registration requests.
When we start a registration 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.RegistrationRequest>get(com.yubico.webauthn.data.ByteArray id) voidput(com.yubico.webauthn.data.ByteArray id, com.jadaptive.webauthn.server.model.RegistrationRequest registrationRequest) booleanremove(com.yubico.webauthn.data.ByteArray id)
-
Constructor Details
-
SimpleRegistrationCacheStore
public SimpleRegistrationCacheStore()
-
-
Method Details
-
get
public Optional<com.jadaptive.webauthn.server.model.RegistrationRequest> get(com.yubico.webauthn.data.ByteArray id) - Specified by:
getin interfacecom.jadaptive.webauthn.server.request.cache.store.RegistrationCacheStore
-
put
public void put(com.yubico.webauthn.data.ByteArray id, com.jadaptive.webauthn.server.model.RegistrationRequest registrationRequest) - Specified by:
putin interfacecom.jadaptive.webauthn.server.request.cache.store.RegistrationCacheStore
-
remove
public boolean remove(com.yubico.webauthn.data.ByteArray id) - Specified by:
removein interfacecom.jadaptive.webauthn.server.request.cache.store.RegistrationCacheStore
-