All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.springframework.security.oauth2.common.OAuth2RefreshToken Maven / Gradle / Ivy

The newest version!
package org.springframework.security.oauth2.common;

/**
 * An OAuth 2 refresh token.
 *
 * @author Ryan Heaton
 */
public class OAuth2RefreshToken {

  private String value;

  /**
   * The value of the token.
   *
   * @return The value of the token.
   */
  public String getValue() {
    return value;
  }

  /**
   * The value of the token.
   *
   * @param value The value of the token.
   */
  public void setValue(String value) {
    this.value = value;
  }

  @Override
  public String toString() {
    return getValue();
  }

  @Override
  public boolean equals(Object obj) {
    return toString().equals(obj);
  }

  @Override
  public int hashCode() {
    return toString().hashCode();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy