renewToken

Updates the Token.

public abstract int renewToken(String token);

When the Token used for authentication is about to expire or has already expired, you can call this method to pass in a newly generated Token.

Parameters

token
The newly generated Token.

Return Values

  • 0: Success.
  • < 0: Failure.