Class ServletWebAuthn

java.lang.Object
com.revetsec.servlet.jakarta.ServletWebAuthn

@ThreadSafe public final class ServletWebAuthn extends Object
Raw WebAuthn browser transport. The application owns account approval, browser sessions, browser binding, ceremony-ID routing, CSRF and the final sign-in decision.
Since:
1.0.0
  • Method Details

    • bodyResultFor

      @CheckReturnValue public static @NonNull ServletWebAuthnBodyResult bodyResultFor(@NonNull WebAuthnSettings settings, @NonNull jakarta.servlet.http.HttpServletRequest request)
      Reads one bounded POST JSON completion body before Servlet parameter decoding. A method, media-type or size failure releases no body bytes. Interrupted reads retain the interrupt flag.
      Parameters:
      settings - the configured relying party's body limits
      request - application-routed browser completion request
      Returns:
      unchanged bytes, explicit rejection or unavailable input
      Since:
      1.0.0
    • writeBrowserRequest

      public static void writeBrowserRequest(@NonNull jakarta.servlet.http.HttpServletResponse response, @NonNull WebAuthnBrowserRequest prepared) throws IOException
      Writes core-prepared registration or authentication options as exact UTF-8 JSON.
      Parameters:
      response - application-owned response
      prepared - core-prepared browser request
      Throws:
      IOException - if the Servlet output stream fails
      Since:
      1.0.0