Class WebAuthnTestUserProvider

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

public class WebAuthnTestUserProvider extends Object implements WebAuthnUserProvider
UserProvider suitable for tests, which stores and updates credentials in a list, so you can use it in your tests.
See Also:
  • WebAuthnStoringTestUserProvider
  • WebAuthnManualTestUserProvider
  • Constructor Details

    • WebAuthnTestUserProvider

      public WebAuthnTestUserProvider()
  • Method Details

    • findWebAuthnCredentialsByUserName

      public io.smallrye.mutiny.Uni<List<io.vertx.ext.auth.webauthn.Authenticator>> findWebAuthnCredentialsByUserName(String userId)
      Specified by:
      findWebAuthnCredentialsByUserName in interface WebAuthnUserProvider
    • findWebAuthnCredentialsByCredID

      public io.smallrye.mutiny.Uni<List<io.vertx.ext.auth.webauthn.Authenticator>> findWebAuthnCredentialsByCredID(String credId)
      Specified by:
      findWebAuthnCredentialsByCredID in interface WebAuthnUserProvider
    • updateOrStoreWebAuthnCredentials

      public io.smallrye.mutiny.Uni<Void> updateOrStoreWebAuthnCredentials(io.vertx.ext.auth.webauthn.Authenticator authenticator)
      Specified by:
      updateOrStoreWebAuthnCredentials in interface WebAuthnUserProvider
    • getRoles

      public Set<String> getRoles(String userId)
      Specified by:
      getRoles in interface WebAuthnUserProvider
    • store

      public void store(io.vertx.ext.auth.webauthn.Authenticator authenticator)
      Stores a new credential
      Parameters:
      authenticator - the new credential to store
    • update

      public void update(String userName, String credID, long counter)
      Updates an existing credential
      Parameters:
      userName - the user name
      credID - the credential ID
      counter - the new counter value