Class BearerChallenge

java.lang.Object
com.revetsec.oauth.BearerChallenge

@Immutable public final class BearerChallenge extends Object
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
  • 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

      Redacts challenge configuration from diagnostic text.
      Overrides:
      toString in class Object
      Returns:
      the redacted description
      Since:
      1.0.0