Class OAuthServerInteraction

java.lang.Object
com.revetsec.oauth.server.OAuthServerInteraction

@Immutable public final class OAuthServerInteraction extends Object
A restricted view of a checked, pending browser interaction. The application owns login, session fixation and CSRF protection. The secret interaction handle is not a subject or proof of user authentication. Client display text is untrusted and must be escaped. Identity equality and diagnostics disclose no data.
Since:
1.0.0
  • Method Details

    • getInteractionValue

      @CheckReturnValue public @NonNull String getInteractionValue()
      Returns the secret continuation handle; use only inside the protected application session.
      Returns:
      secret continuation handle
      Since:
      1.0.0
    • getClientId

      @CheckReturnValue public @NonNull String getClientId()
      Returns the checked client identifier.
      Returns:
      checked client identifier
      Since:
      1.0.0
    • getClientName

      @CheckReturnValue public @NonNull Optional<@NonNull String> getClientName()
      Returns optional untrusted display text that the application must escape.
      Returns:
      optional display text
      Since:
      1.0.0
    • getRedirectUri

      @CheckReturnValue public @NonNull URI getRedirectUri()
      Returns the exact checked return destination for display, without state or issued credentials.
      Returns:
      selected registered redirect URI
      Since:
      1.0.0
    • getRequestedScopesByResource

      Returns the immutable exact requested resource and scopes for explicit application approval.
      Returns:
      requested scopes by resource
      Since:
      1.0.0
    • getExpiresAt

      @CheckReturnValue public @NonNull Instant getExpiresAt()
      Returns the pending interaction expiry; completion rechecks current authoritative state.
      Returns:
      expiry instant
      Since:
      1.0.0
    • toString

      Returns a fixed redacted description.
      Overrides:
      toString in class Object
      Returns:
      fixed redacted description
      Since:
      1.0.0