Package io.quarkus.security.webauthn
Class WebAuthnResponse
java.lang.Object
io.quarkus.security.webauthn.WebAuthnResponse
- Direct Known Subclasses:
WebAuthnLoginResponse,WebAuthnRegisterResponse
JAX-RS structure suitable for use as a
BeanParam for a POST response
containing all the common required fields for a form-based login and registration.-
Field Summary
FieldsModifier and TypeFieldDescriptionCorresponds to the JSONidfieldCorresponds to the JSONrawIdfieldCorresponds to the JSONresponse.clientDataJSONfieldCorresponds to the JSONtypefield -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisSet()Returns true if any value is set (really looks at the ID only)booleanisValid()Returns true if the id, rawId and type are set, and type is set to "public-key"io.vertx.core.json.JsonObjectTurns this form-based structure into its corresponding JSON structureprotected abstract voidtoJsonObject(io.vertx.core.json.JsonObject response)
-
Field Details
-
webAuthnId
Corresponds to the JSONidfield -
webAuthnRawId
Corresponds to the JSONrawIdfield -
webAuthnResponseClientDataJSON
Corresponds to the JSONresponse.clientDataJSONfield -
webAuthnType
Corresponds to the JSONtypefield
-
-
Constructor Details
-
WebAuthnResponse
public WebAuthnResponse()
-
-
Method Details
-
toJsonObject
public io.vertx.core.json.JsonObject toJsonObject()Turns this form-based structure into its corresponding JSON structure -
toJsonObject
protected abstract void toJsonObject(io.vertx.core.json.JsonObject response) -
isSet
public boolean isSet()Returns true if any value is set (really looks at the ID only)- Returns:
- true if any value is set (really looks at the ID only)
-
isValid
public boolean isValid()Returns true if the id, rawId and type are set, and type is set to "public-key"- Returns:
- true if this can be passed to the login/register endpoints
-