Class ServletOAuthAuthorizationServer

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

Thin issuer transport for application-routed Servlet requests and core-prepared responses. Applications own route and issuer selection, browser sessions, authentication, consent and CSRF. Read the original body before Servlet parameter decoding. Container and trusted-edge allocation and time limits must also apply before this adapter is called. Header-name overflow returns core's malformed-request result rather than an input exception. Enumeration keeps its existing bounded cutoff; under the bound, original names, casing and duplicate values reach core unchanged.
Since:
1.0.0
  • Method Details

    • beginAuthorizationResultFor

      @CheckReturnValue public static @NonNull OAuthAuthorizationResult beginAuthorizationResultFor(@NonNull OAuthAuthorizationServer server, @NonNull jakarta.servlet.http.HttpServletRequest request, @NonNull BrowserBinding browserBinding) throws IOException
      Admits unchanged authorization input with an independent application-held browser binding.
      Parameters:
      server - configured issuer
      request - request on the configured authorization route
      browserBinding - canonical random binding retained in the protected session
      Returns:
      core's restricted interaction or rejection
      Throws:
      IOException - if the Servlet input stream fails
      Since:
      1.0.0
    • tokenResultFor

      @CheckReturnValue public static @NonNull OAuthTokenResult tokenResultFor(@NonNull OAuthAuthorizationServer server, @NonNull jakarta.servlet.http.HttpServletRequest request) throws IOException
      Handles unchanged token form bytes and all materialized header occurrences.
      Parameters:
      server - configured issuer
      request - request on the configured token route
      Returns:
      core's committed response or rejection
      Throws:
      IOException - if the Servlet input stream fails
      Since:
      1.0.0
    • revocationResultFor

      @CheckReturnValue public static @NonNull OAuthRevocationResult revocationResultFor(@NonNull OAuthAuthorizationServer server, @NonNull jakarta.servlet.http.HttpServletRequest request) throws IOException
      Handles unchanged revocation form bytes on its configured route.
      Parameters:
      server - configured issuer
      request - request on the configured revocation route
      Returns:
      core's committed response or rejection
      Throws:
      IOException - if the Servlet input stream fails
      Since:
      1.0.0
    • introspectionResultFor

      @CheckReturnValue public static @NonNull OAuthIntrospectionResult introspectionResultFor(@NonNull OAuthAuthorizationServer server, @NonNull jakarta.servlet.http.HttpServletRequest request) throws IOException
      Handles unchanged introspection form bytes without selecting caller or resource policy.
      Parameters:
      server - configured issuer
      request - request on the configured introspection route
      Returns:
      core's committed response or rejection
      Throws:
      IOException - if the Servlet input stream fails
      Since:
      1.0.0
    • writeResponse

      public static void writeResponse(@NonNull jakarta.servlet.http.HttpServletResponse response, @NonNull OAuthServerResponse prepared) throws IOException
      Emits the exact prepared status, physical headers, credential-bearing Location and body. Keep this response out of diagnostics and add application-owned browser cookies at the edge.
      Parameters:
      response - application-owned transport response
      prepared - restricted core response
      Throws:
      IOException - if the Servlet output stream fails
      Since:
      1.0.0