public class WebAuthnCredentials extends Object implements Credentials
Constructor and Description |
---|
WebAuthnCredentials() |
WebAuthnCredentials(JsonObject json) |
Modifier and Type | Method and Description |
---|---|
<V> void |
checkValid(V arg)
Implementors should override this method to perform validation.
|
String |
getChallenge() |
String |
getDomain() |
String |
getOrigin() |
String |
getUsername() |
JsonObject |
getWebauthn() |
WebAuthnCredentials |
setChallenge(String challenge) |
WebAuthnCredentials |
setDomain(String domain) |
WebAuthnCredentials |
setOrigin(String origin) |
WebAuthnCredentials |
setUsername(String username) |
WebAuthnCredentials |
setWebauthn(JsonObject webauthn) |
JsonObject |
toJson()
Simple interop to downcast back to JSON for backwards compatibility.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyHttpChallenge, applyHttpChallenge, applyHttpChallenge, toHttpAuthorization
public WebAuthnCredentials()
public WebAuthnCredentials(JsonObject json)
public String getChallenge()
public WebAuthnCredentials setChallenge(String challenge)
public JsonObject getWebauthn()
public WebAuthnCredentials setWebauthn(JsonObject webauthn)
public String getUsername()
public WebAuthnCredentials setUsername(String username)
public String getOrigin()
public WebAuthnCredentials setOrigin(String origin)
public String getDomain()
public WebAuthnCredentials setDomain(String domain)
public <V> void checkValid(V arg) throws CredentialValidationException
Credentials
checkValid
in interface Credentials
V
- the generic type of the argumentarg
- optional argument or null.CredentialValidationException
- when the validation failspublic JsonObject toJson()
Credentials
toJson
in interface Credentials
Copyright © 2023 Eclipse. All rights reserved.