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 a BeanParam for a POST response containing all the common required fields for a form-based login and registration.
See Also:
  • Field Details

    • webAuthnId

      @FormParam("webAuthnId") public String webAuthnId
      Corresponds to the JSON id field
    • webAuthnRawId

      @FormParam("webAuthnRawId") public String webAuthnRawId
      Corresponds to the JSON rawId field
    • webAuthnResponseClientDataJSON

      @FormParam("webAuthnResponseClientDataJSON") public String webAuthnResponseClientDataJSON
      Corresponds to the JSON response.clientDataJSON field
    • webAuthnType

      @FormParam("webAuthnType") public String webAuthnType
      Corresponds to the JSON type field
  • 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