Class WebAuthnTestUserProvider
java.lang.Object
io.quarkus.test.security.webauthn.WebAuthnTestUserProvider
- All Implemented Interfaces:
WebAuthnUserProvider
UserProvider suitable for tests, which stores and updates credentials in a list,
so you can use it in your tests.
- See Also:
-
WebAuthnStoringTestUserProviderWebAuthnManualTestUserProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Uni<List<io.vertx.ext.auth.webauthn.Authenticator>>io.smallrye.mutiny.Uni<List<io.vertx.ext.auth.webauthn.Authenticator>>voidstore(io.vertx.ext.auth.webauthn.Authenticator authenticator) Stores a new credentialvoidUpdates an existing credentialio.smallrye.mutiny.Uni<Void>updateOrStoreWebAuthnCredentials(io.vertx.ext.auth.webauthn.Authenticator authenticator)
-
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:
findWebAuthnCredentialsByUserNamein interfaceWebAuthnUserProvider
-
findWebAuthnCredentialsByCredID
public io.smallrye.mutiny.Uni<List<io.vertx.ext.auth.webauthn.Authenticator>> findWebAuthnCredentialsByCredID(String credId) - Specified by:
findWebAuthnCredentialsByCredIDin interfaceWebAuthnUserProvider
-
updateOrStoreWebAuthnCredentials
public io.smallrye.mutiny.Uni<Void> updateOrStoreWebAuthnCredentials(io.vertx.ext.auth.webauthn.Authenticator authenticator) - Specified by:
updateOrStoreWebAuthnCredentialsin interfaceWebAuthnUserProvider
-
getRoles
- Specified by:
getRolesin interfaceWebAuthnUserProvider
-
store
public void store(io.vertx.ext.auth.webauthn.Authenticator authenticator) Stores a new credential- Parameters:
authenticator- the new credential to store
-
update
Updates an existing credential- Parameters:
userName- the user namecredID- the credential IDcounter- the new counter value
-