Package io.vertx.ext.auth.webauthn4j
Class WebAuthn4JCredentials
- java.lang.Object
-
- io.vertx.ext.auth.webauthn4j.WebAuthn4JCredentials
-
- All Implemented Interfaces:
Credentials
public class WebAuthn4JCredentials extends Object implements Credentials
-
-
Constructor Summary
Constructors Constructor Description WebAuthn4JCredentials()WebAuthn4JCredentials(JsonObject json)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <V> voidcheckValid(V arg)Implementors should override this method to perform validation.StringgetChallenge()StringgetDomain()StringgetOrigin()StringgetUsername()JsonObjectgetWebauthn()WebAuthn4JCredentialssetChallenge(String challenge)WebAuthn4JCredentialssetDomain(String domain)WebAuthn4JCredentialssetOrigin(String origin)WebAuthn4JCredentialssetUsername(String username)WebAuthn4JCredentialssetWebauthn(JsonObject webauthn)JsonObjecttoJson()Simple interop to downcast back to JSON for backwards compatibility.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.vertx.ext.auth.authentication.Credentials
applyHttpChallenge, applyHttpChallenge, applyHttpChallenge, toHttpAuthorization
-
-
-
-
Constructor Detail
-
WebAuthn4JCredentials
public WebAuthn4JCredentials()
-
WebAuthn4JCredentials
public WebAuthn4JCredentials(JsonObject json)
-
-
Method Detail
-
getChallenge
public String getChallenge()
-
setChallenge
public WebAuthn4JCredentials setChallenge(String challenge)
-
getWebauthn
public JsonObject getWebauthn()
-
setWebauthn
public WebAuthn4JCredentials setWebauthn(JsonObject webauthn)
-
getUsername
public String getUsername()
-
setUsername
public WebAuthn4JCredentials setUsername(String username)
-
getOrigin
public String getOrigin()
-
setOrigin
public WebAuthn4JCredentials setOrigin(String origin)
-
getDomain
public String getDomain()
-
setDomain
public WebAuthn4JCredentials setDomain(String domain)
-
checkValid
public <V> void checkValid(V arg) throws CredentialValidationExceptionDescription copied from interface:CredentialsImplementors should override this method to perform validation. An argument is allowed to allow custom validation, for example, when given a configuration property, a specific property may be allowed to be null.- Specified by:
checkValidin interfaceCredentials- Type Parameters:
V- the generic type of the argument- Parameters:
arg- optional argument or null.- Throws:
CredentialValidationException- when the validation fails
-
toJson
public JsonObject toJson()
Description copied from interface:CredentialsSimple interop to downcast back to JSON for backwards compatibility.- Specified by:
toJsonin interfaceCredentials- Returns:
- JSON representation of this credential.
-
-