Package io.quarkus.security.webauthn
Class WebAuthnResponse
- java.lang.Object
-
- io.quarkus.security.webauthn.WebAuthnResponse
-
- Direct Known Subclasses:
WebAuthnLoginResponse,WebAuthnRegisterResponse
public abstract class WebAuthnResponse extends Object
JAX-RS structure suitable for use as aBeanParamfor a POST response containing all the common required fields for a form-based login and registration.- See Also:
WebAuthnLoginResponse,WebAuthnRegisterResponse
-
-
Field Summary
Fields Modifier and Type Field Description StringwebAuthnIdCorresponds to the JSONidfieldStringwebAuthnRawIdCorresponds to the JSONrawIdfieldStringwebAuthnResponseClientDataJSONCorresponds to the JSONresponse.clientDataJSONfieldStringwebAuthnTypeCorresponds to the JSONtypefield
-
Constructor Summary
Constructors Constructor Description WebAuthnResponse()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanisSet()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.JsonObjecttoJsonObject()Turns this form-based structure into its corresponding JSON structureprotected abstract voidtoJsonObject(io.vertx.core.json.JsonObject response)
-
-
-
Field Detail
-
webAuthnId
@FormParam("webAuthnId") public String webAuthnIdCorresponds to the JSONidfield
-
webAuthnRawId
@FormParam("webAuthnRawId") public String webAuthnRawIdCorresponds to the JSONrawIdfield
-
webAuthnResponseClientDataJSON
@FormParam("webAuthnResponseClientDataJSON") public String webAuthnResponseClientDataJSONCorresponds to the JSONresponse.clientDataJSONfield
-
webAuthnType
@FormParam("webAuthnType") public String webAuthnTypeCorresponds to the JSONtypefield
-
-
Method Detail
-
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
-
-