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 |
getUsername() |
JsonObject |
getWebauthn() |
WebAuthnCredentials |
setChallenge(String challenge) |
WebAuthnCredentials |
setUsername(String username) |
WebAuthnCredentials |
setWebauthn(JsonObject webauthn) |
JsonObject |
toJson()
Simple interop to downcast back to JSON for backwards compatibility.
|
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 <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 © 2020 Eclipse. All rights reserved.