Class WebAuthnTestUserProvider

java.lang.Object
io.quarkus.test.security.webauthn.WebAuthnTestUserProvider
All Implemented Interfaces:
io.quarkus.security.webauthn.WebAuthnUserProvider

public class WebAuthnTestUserProvider extends Object implements io.quarkus.security.webauthn.WebAuthnUserProvider
UserProvider suitable for tests, which fetches and updates credentials from a list, so you can use it in your tests.
  • Constructor Details

    • WebAuthnTestUserProvider

      public WebAuthnTestUserProvider()
  • Method Details

    • findByUsername

      public io.smallrye.mutiny.Uni<List<io.quarkus.security.webauthn.WebAuthnCredentialRecord>> findByUsername(String userId)
      Specified by:
      findByUsername in interface io.quarkus.security.webauthn.WebAuthnUserProvider
    • findByCredentialId

      public io.smallrye.mutiny.Uni<io.quarkus.security.webauthn.WebAuthnCredentialRecord> findByCredentialId(String credId)
      Specified by:
      findByCredentialId in interface io.quarkus.security.webauthn.WebAuthnUserProvider
    • update

      public io.smallrye.mutiny.Uni<Void> update(String credentialId, long counter)
      Specified by:
      update in interface io.quarkus.security.webauthn.WebAuthnUserProvider
    • store

      public io.smallrye.mutiny.Uni<Void> store(io.quarkus.security.webauthn.WebAuthnCredentialRecord credentialRecord)
      Specified by:
      store in interface io.quarkus.security.webauthn.WebAuthnUserProvider
    • getRoles

      public Set<String> getRoles(String username)
      Specified by:
      getRoles in interface io.quarkus.security.webauthn.WebAuthnUserProvider
    • clear

      public void clear()
    • reallyUpdate

      public void reallyUpdate(String credentialId, long counter)
    • reallyStore

      public void reallyStore(io.quarkus.security.webauthn.WebAuthnCredentialRecord credentialRecord)