Class ServletOAuthAuthorizationServer
java.lang.Object
com.revetsec.servlet.javax.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 Summary
Modifier and TypeMethodDescriptionstatic @NonNull OAuthAuthorizationResultbeginAuthorizationResultFor(@NonNull OAuthAuthorizationServer server, @NonNull HttpServletRequest request, @NonNull BrowserBinding browserBinding) Admits unchanged authorization input with an independent application-held browser binding.static @NonNull OAuthIntrospectionResultintrospectionResultFor(@NonNull OAuthAuthorizationServer server, @NonNull HttpServletRequest request) Handles unchanged introspection form bytes without selecting caller or resource policy.static @NonNull OAuthRevocationResultrevocationResultFor(@NonNull OAuthAuthorizationServer server, @NonNull HttpServletRequest request) Handles unchanged revocation form bytes on its configured route.static @NonNull OAuthTokenResulttokenResultFor(@NonNull OAuthAuthorizationServer server, @NonNull HttpServletRequest request) Handles unchanged token form bytes and all materialized header occurrences.static voidwriteResponse(@NonNull HttpServletResponse response, @NonNull OAuthServerResponse prepared) Emits the exact prepared status, physical headers, credential-bearing Location and body.
-
Method Details
-
beginAuthorizationResultFor
@CheckReturnValue public static @NonNull OAuthAuthorizationResult beginAuthorizationResultFor(@NonNull OAuthAuthorizationServer server, @NonNull HttpServletRequest request, @NonNull BrowserBinding browserBinding) throws IOException Admits unchanged authorization input with an independent application-held browser binding.- Parameters:
server- configured issuerrequest- request on the configured authorization routebrowserBinding- 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 HttpServletRequest request) throws IOException Handles unchanged token form bytes and all materialized header occurrences.- Parameters:
server- configured issuerrequest- 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 HttpServletRequest request) throws IOException Handles unchanged revocation form bytes on its configured route.- Parameters:
server- configured issuerrequest- 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 HttpServletRequest request) throws IOException Handles unchanged introspection form bytes without selecting caller or resource policy.- Parameters:
server- configured issuerrequest- 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 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 responseprepared- restricted core response- Throws:
IOException- if the Servlet output stream fails- Since:
- 1.0.0
-