Class BearerTokenResult
java.lang.Object
com.revetsec.oauth.BearerTokenResult
- Direct Known Subclasses:
BearerTokenResult.Absent, BearerTokenResult.Malformed, BearerTokenResult.Present
@Immutable
public abstract sealed class BearerTokenResult
extends Object
permits BearerTokenResult.Absent, BearerTokenResult.Present, BearerTokenResult.Malformed
The outcome of parsing materialized Authorization headers. A present token is unverified and grants no permission.
Applications receive these outcomes from the corresponding operation; they cannot construct them. Value accessors exist only on the variant that owns a value. Diagnostic text contains no input or result data. A later release may add variants; consuming switches should include a rejecting default branch.
- Since:
- 1.0.0
- Author:
- Mark Allen
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classNo Authorization header was supplied.static final classThe supplied header values are malformed, duplicated or oversized.static final classExactly one header supplied a syntactically valid, unverified bearer credential. -
Method Summary
-
Method Details
-
toString
-