protected TokenResponse executeRefreshToken ( ) throws IOException { if ( refreshToken == null ) { return null ; } return new RefreshTokenRequest ( transport , jsonFactory , new GenericUrl ( tokenServerEncodedUrl ) , refreshToken ) . setClientAuthentication ( clientAuthentication ) . setRequestInitializer ( requestInitializer ) . execute ( ) ; }
Executes a request for new credentials from the token server .