Class 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 Detail

      • WebAuthnTestUserProvider

        public WebAuthnTestUserProvider()
    • Method Detail

      • 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