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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()io.smallrye.mutiny.Uni<io.quarkus.security.webauthn.WebAuthnCredentialRecord> findByCredentialId(String credId) io.smallrye.mutiny.Uni<List<io.quarkus.security.webauthn.WebAuthnCredentialRecord>> findByUsername(String userId) voidreallyStore(io.quarkus.security.webauthn.WebAuthnCredentialRecord credentialRecord) voidreallyUpdate(String credentialId, long counter) io.smallrye.mutiny.Uni<Void> store(io.quarkus.security.webauthn.WebAuthnCredentialRecord credentialRecord) io.smallrye.mutiny.Uni<Void>
-
Constructor Details
-
WebAuthnTestUserProvider
public WebAuthnTestUserProvider()
-
-
Method Details
-
findByUsername
public io.smallrye.mutiny.Uni<List<io.quarkus.security.webauthn.WebAuthnCredentialRecord>> findByUsername(String userId) - Specified by:
findByUsernamein interfaceio.quarkus.security.webauthn.WebAuthnUserProvider
-
findByCredentialId
public io.smallrye.mutiny.Uni<io.quarkus.security.webauthn.WebAuthnCredentialRecord> findByCredentialId(String credId) - Specified by:
findByCredentialIdin interfaceio.quarkus.security.webauthn.WebAuthnUserProvider
-
update
- Specified by:
updatein interfaceio.quarkus.security.webauthn.WebAuthnUserProvider
-
store
public io.smallrye.mutiny.Uni<Void> store(io.quarkus.security.webauthn.WebAuthnCredentialRecord credentialRecord) - Specified by:
storein interfaceio.quarkus.security.webauthn.WebAuthnUserProvider
-
getRoles
- Specified by:
getRolesin interfaceio.quarkus.security.webauthn.WebAuthnUserProvider
-
clear
public void clear() -
reallyUpdate
-
reallyStore
public void reallyStore(io.quarkus.security.webauthn.WebAuthnCredentialRecord credentialRecord)
-