Class BearerChallenge
java.lang.Object
com.revetsec.oauth.BearerChallenge
A bounded WWW-Authenticate Bearer value (RFC 6750 section 3 and RFC 9728 section 5).
Supply only trusted application configuration, never reflected token/provider error text. The app chooses the
HTTP status. An initial 401 challenge has no error. At least one rendered parameter is required.
- Since:
- 1.0.0
- Author:
- Mark Allen
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classMutable challenge configuration. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull BearerChallenge.Builderbuilder()Starts a challenge with no parameters and an 8 KiB rendered field limit.Returns the complete ASCII field value, suitable for WWW-Authenticate.toString()Redacts challenge configuration from diagnostic text.
-
Method Details
-
builder
Starts a challenge with no parameters and an 8 KiB rendered field limit.- Returns:
- the builder
- Since:
- 1.0.0
-
getHeaderValue
Returns the complete ASCII field value, suitable for WWW-Authenticate.- Returns:
- the header value
- Since:
- 1.0.0
-
toString
-