Class AuthInfo.AuthInfoBuilder

java.lang.Object
com.amilesend.onedrive.connection.auth.AuthInfo.AuthInfoBuilder
Enclosing class:
AuthInfo

public static class AuthInfo.AuthInfoBuilder extends Object
  • Method Details

    • tokenType

      public AuthInfo.AuthInfoBuilder tokenType(String tokenType)
      The auth token type. Default is Bearer.
      Returns:
      this.
    • scopes

      public AuthInfo.AuthInfoBuilder scopes(List<String> scopes)
      The list of scopes, or permissions to access the Graph API.
      Returns:
      this.
    • expiresIn

      public AuthInfo.AuthInfoBuilder expiresIn(long expiresIn)
      Time in milliseconds when the auth token expires.
      Returns:
      this.
    • extExpiresIn

      public AuthInfo.AuthInfoBuilder extExpiresIn(long extExpiresIn)
      Time in milliseconds when the auth token expires.
      Returns:
      this.
    • accessToken

      public AuthInfo.AuthInfoBuilder accessToken(@NonNull String accessToken)
      The current authorization token used to make API requests.
      Returns:
      this.
    • refreshToken

      public AuthInfo.AuthInfoBuilder refreshToken(@NonNull String refreshToken)
      The current refresh token used to refresh access tokens.
      Returns:
      this.
    • resourceId

      public AuthInfo.AuthInfoBuilder resourceId(String resourceId)
      The associated resource identifier associated with the access tokens (business accounts only).
      Returns:
      this.
    • build

      public AuthInfo build()
    • toString

      public String toString()
      Overrides:
      toString in class Object