expiresInSeconds
Sets OAuth2.expiresIn from a number of seconds, for Java callers, which can't call a function that takes a Duration.
Sets OAuth2.expiresIn in seconds, or clears it when null. The non-null overload lets Java pass an int literal.