Class AuthorizationCompletionResult

java.lang.Object
com.revetsec.oauth.AuthorizationCompletionResult
Direct Known Subclasses:
AuthorizationCompletionResult.Denied, AuthorizationCompletionResult.Failed, AuthorizationCompletionResult.Rejected, AuthorizationCompletionResult.RejectedAuthorizationError, AuthorizationCompletionResult.RejectedEndpoint, AuthorizationCompletionResult.Succeeded

The outcome of OAuth callback completion. Bound authorization errors, checked endpoint rejections and pending-store failures have distinct, fixed results. Transport, metadata, malformed endpoint responses and transient endpoint failures remain exceptions.

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
  • Method Details

    • toString

      public final @NonNull String toString()
      Returns the outcome kind with all values redacted.
      Overrides:
      toString in class Object
      Returns:
      redacted description
      Since:
      1.0.0