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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Optional<com.jadaptive.webauthn.server.model.RegistrationRequest>
    get(com.yubico.webauthn.data.ByteArray id)
     
    void
    put(com.yubico.webauthn.data.ByteArray id, com.jadaptive.webauthn.server.model.RegistrationRequest registrationRequest)
     
    boolean
    remove(com.yubico.webauthn.data.ByteArray id)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      get in interface com.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:
      put in interface com.jadaptive.webauthn.server.request.cache.store.RegistrationCacheStore
    • remove

      public boolean remove(com.yubico.webauthn.data.ByteArray id)
      Specified by:
      remove in interface com.jadaptive.webauthn.server.request.cache.store.RegistrationCacheStore