public interface WebAuthn extends AuthenticationProvider
AuthenticationProvider instances.| Modifier and Type | Method and Description |
|---|---|
static WebAuthn |
create(Vertx vertx,
CredentialStore store)
Create a WebAuthN auth provider
|
static WebAuthn |
create(Vertx vertx,
WebAuthnOptions options,
CredentialStore store)
Create a WebAuthN auth provider
|
default Future<JsonObject> |
createCredentialsOptions(JsonObject user)
Same as
createCredentialsOptions(JsonObject, Handler) but returning a Future. |
WebAuthn |
createCredentialsOptions(JsonObject user,
Handler<AsyncResult<JsonObject>> handler)
Generates makeCredentials request
|
default Future<JsonObject> |
getCredentialsOptions(String username)
Same as
getCredentialsOptions(String, Handler) but returning a Future. |
WebAuthn |
getCredentialsOptions(String username,
Handler<AsyncResult<JsonObject>> handler)
Generates getAssertion request.
|
authenticate, authenticate, authenticate, authenticatestatic WebAuthn create(Vertx vertx, CredentialStore store)
vertx - the Vertx instance.store - the user store used to load credentials.static WebAuthn create(Vertx vertx, WebAuthnOptions options, CredentialStore store)
vertx - the Vertx instance.options - the custom options to the provider.store - the user store used to load credentials.WebAuthn createCredentialsOptions(JsonObject user, Handler<AsyncResult<JsonObject>> handler)
user - - the user object with username, displayNamehandler - server encoded make credentials requestdefault Future<JsonObject> createCredentialsOptions(JsonObject user)
createCredentialsOptions(JsonObject, Handler) but returning a Future.WebAuthn getCredentialsOptions(String username, Handler<AsyncResult<JsonObject>> handler)
RequireResidentKey and
the username is null then the generated assertion will be a RK assertion (Usernameless).username - the unique user identifiedhandler - server encoded get assertion requestdefault Future<JsonObject> getCredentialsOptions(String username)
getCredentialsOptions(String, Handler) but returning a Future.Copyright © 2020 Eclipse. All rights reserved.