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 Summary
Constructors Constructor Description WebAuthnTestUserProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.smallrye.mutiny.Uni<List<io.vertx.ext.auth.webauthn.Authenticator>>findWebAuthnCredentialsByCredID(String credId)io.smallrye.mutiny.Uni<List<io.vertx.ext.auth.webauthn.Authenticator>>findWebAuthnCredentialsByUserName(String userId)Set<String>getRoles(String userId)voidstore(io.vertx.ext.auth.webauthn.Authenticator authenticator)Stores a new credentialvoidupdate(String userName, String credID, long counter)Updates an existing credentialio.smallrye.mutiny.Uni<Void>updateOrStoreWebAuthnCredentials(io.vertx.ext.auth.webauthn.Authenticator authenticator)
-
-
-
Method Detail
-
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
public Set<String> getRoles(String userId)
- 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
-
-