Class SokletBearer
java.lang.Object
com.revetsec.soklet.SokletBearer
Raw Authorization-header transport for Soklet resource servers. Parsing a bearer credential grants no identity
or permission; the application validates it through core and makes its own scope and object decisions.
- Since:
- 1.0.0
- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull BearerTokenResultbearerTokenResultFor(@NonNull Request request) Parses all materialized Authorization values as an absent, unverified present or malformed result.
-
Method Details
-
bearerTokenResultFor
@CheckReturnValue public static @NonNull BearerTokenResult bearerTokenResultFor(@NonNull Request request) Parses all materialized Authorization values as an absent, unverified present or malformed result. Every materialized header value is retained, including identical duplicates and differently cased field names. Query, body and cookies are never bearer transports. Core owns the credential grammar and size limit.- Parameters:
request- the resource request- Returns:
- the raw-header parsing outcome
- Throws:
NullPointerException- if request is null- Since:
- 1.0.0
-