Class SokletOAuthAuthorizationServer
java.lang.Object
com.revetsec.soklet.SokletOAuthAuthorizationServer
Thin issuer transport for application-routed Soklet requests and prepared core responses. Applications own
route/issuer association, TLS, allocation/framing limits, sessions, authentication, consent and CSRF. These
helpers use no decoded query/form map and make no user or authorization decision.
Soklet 4 exposes header values as lists. Every materialized occurrence and exact string reaches core; its bounds and protocol rules remain authoritative.
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionbeginAuthorizationResultFor(@NonNull OAuthAuthorizationServer server, @NonNull Request request, @NonNull BrowserBinding browserBinding) Admits raw authorization input with an independent app-owned browser binding.introspectionResultFor(@NonNull OAuthAuthorizationServer server, @NonNull Request request) Handles raw introspection input without selecting caller/resource authorization in the adapter.static @NonNull MarshaledResponseresponseFor(@NonNull OAuthServerResponse response) Emits the exact prepared body, headers, status and optional credential-bearing Location without JSON marshalling or redirect regeneration.revocationResultFor(@NonNull OAuthAuthorizationServer server, @NonNull Request request) Handles raw revocation input; optional endpoint configuration remains a core precondition.tokenResultFor(@NonNull OAuthAuthorizationServer server, @NonNull Request request) Handles unchanged token form bytes and every materialized header occurrence.
-
Method Details
-
beginAuthorizationResultFor
@CheckReturnValue public static @NonNull SokletRequestResult<@NonNull OAuthAuthorizationResult> beginAuthorizationResultFor(@NonNull OAuthAuthorizationServer server, @NonNull Request request, @NonNull BrowserBinding browserBinding) Admits raw authorization input with an independent app-owned browser binding.- Parameters:
server- configured issuerrequest- request on the configured authorization routebrowserBinding- canonical random binding retained in the protected application session- Returns:
- an oversized transport outcome or core's restricted interaction or rejection
- Throws:
NullPointerException- if a required argument is null- Since:
- 1.0.0
-
tokenResultFor
@CheckReturnValue public static @NonNull SokletRequestResult<@NonNull OAuthTokenResult> tokenResultFor(@NonNull OAuthAuthorizationServer server, @NonNull Request request) Handles unchanged token form bytes and every materialized header occurrence.- Parameters:
server- configured issuerrequest- request on the configured token route- Returns:
- an oversized transport outcome or core's committed response or rejection
- Throws:
NullPointerException- if a required argument is null- Since:
- 1.0.0
-
revocationResultFor
@CheckReturnValue public static @NonNull SokletRequestResult<@NonNull OAuthRevocationResult> revocationResultFor(@NonNull OAuthAuthorizationServer server, @NonNull Request request) Handles raw revocation input; optional endpoint configuration remains a core precondition.- Parameters:
server- configured issuerrequest- request on the configured revocation route- Returns:
- an oversized transport outcome or core's committed response or rejection
- Throws:
NullPointerException- if a required argument is null- Since:
- 1.0.0
-
introspectionResultFor
@CheckReturnValue public static @NonNull SokletRequestResult<@NonNull OAuthIntrospectionResult> introspectionResultFor(@NonNull OAuthAuthorizationServer server, @NonNull Request request) Handles raw introspection input without selecting caller/resource authorization in the adapter.- Parameters:
server- configured issuerrequest- request on the configured introspection route- Returns:
- an oversized transport outcome or core's committed response or rejection
- Throws:
NullPointerException- if a required argument is null- Since:
- 1.0.0
-
responseFor
@CheckReturnValue public static @NonNull MarshaledResponse responseFor(@NonNull OAuthServerResponse response) Emits the exact prepared body, headers, status and optional credential-bearing Location without JSON marshalling or redirect regeneration. A bodyless prepared response remains absent rather than becoming an explicit zero-byte body, so Soklet's default HEAD handling retains the prepared GET representation length for metadata and JWKS without emitting a body. Keep this response out of diagnostics; add app cookies at the edge.- Parameters:
response- restricted core response, possibly containing credentials or personal data- Returns:
- exact-byte Soklet response
- Throws:
NullPointerException- if response is null- Since:
- 1.0.0
-