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

    Modifier and Type
    Method
    Description
    Optional<com.jadaptive.webauthn.server.model.AuthenticationRequest.AuthenticationRequestWithSerializable>
    get(com.yubico.webauthn.data.ByteArray id)
     
    void
    put(com.yubico.webauthn.data.ByteArray id, com.jadaptive.webauthn.server.model.AuthenticationRequest.AuthenticationRequestWithSerializable authenticationRequest)
     
    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

    • SimpleAuthenticationCacheStore

      public SimpleAuthenticationCacheStore()
  • Method Details

    • get

      public Optional<com.jadaptive.webauthn.server.model.AuthenticationRequest.AuthenticationRequestWithSerializable> get(com.yubico.webauthn.data.ByteArray id)
      Specified by:
      get in interface com.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:
      put in interface com.jadaptive.webauthn.server.request.cache.store.AuthenticationCacheStore
    • remove

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