Interface Credentials.Builder

  • Method Details

    • accessToken

      Credentials.Builder accessToken(String accessToken)

      An access token generated for a federated user to access Connect Customer.

      Parameters:
      accessToken - An access token generated for a federated user to access Connect Customer.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • accessTokenExpiration

      Credentials.Builder accessTokenExpiration(Instant accessTokenExpiration)

      A token generated with an expiration time for the session a user is logged in to Connect Customer.

      Parameters:
      accessTokenExpiration - A token generated with an expiration time for the session a user is logged in to Connect Customer.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • refreshToken

      Credentials.Builder refreshToken(String refreshToken)

      Renews a token generated for a user to access the Connect Customer instance.

      Parameters:
      refreshToken - Renews a token generated for a user to access the Connect Customer instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • refreshTokenExpiration

      Credentials.Builder refreshTokenExpiration(Instant refreshTokenExpiration)

      Renews the expiration timer for a generated token.

      Parameters:
      refreshTokenExpiration - Renews the expiration timer for a generated token.
      Returns:
      Returns a reference to this object so that method calls can be chained together.