Class OAuthToken

java.lang.Object
io.confluent.flink.plugin.OAuthToken

public final class OAuthToken extends Object
An OAuth bearer token returned by an OAuthTokenProvider. expiresAt may be null when the expiry is unknown; in that case the plugin does not refresh proactively and only asks the provider again after a 401.
  • Constructor Details

    • OAuthToken

      public OAuthToken(String accessToken, @Nullable Instant expiresAt)
  • Method Details

    • getAccessToken

      public String getAccessToken()
      Returns the bearer token string.
    • getExpiresAt

      @Nullable public Instant getExpiresAt()
      Returns the token expiry, or null if unknown.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object