src/main/java/zoot/tube/googleapi/GoogleAuthJava.java
/**
     * Creates a {@link Credential} using a refresh-token.
     * <p>
     * If the authorization fails using the given refresh-token,
     * an empty Credential will be returned.
     *
     * @param refreshToken the refresh-token.
     * @return a Credential.
     */
Creates a  Credential using a refresh-token.

If the authorization fails using the given refresh-token,
an empty Credential will be returned.

@param refreshToken the refresh-token.
@return a Credential.
Creates a Credential using a refresh - token . If the authorization fails using the given refresh - token an empty Credential will be returned . @param refreshToken the refresh - token . @return a Credential .
public Credential authorizeUsingRefreshToken(String refreshToken) {
        Credential credential = this.createEmptyCredential();
        credential.setRefreshToken(refreshToken);
        try {
            credential.refreshToken();
        } catch (IOException e) {
            System.err.println("GoogleAuthJava: Failed to authorize using refresh-token.");
        }
        return credential;
    }
public Credential authorizeUsingRefreshToken ( String refreshToken ) { Credential credential = this . createEmptyCredential ( ) ; credential . setRefreshToken ( refreshToken ) ; try { credential . refreshToken ( ) ; } catch ( IOException e ) { System . err . println ( "GoogleAuthJava: Failed to authorize using refresh-token." ) ; } return credential ; }
Creates a {@link Credential} using a refresh-token.
Creates a { @link Credential } using a refresh - token .
// Create an empty Credential. // Set the refresh token. // Attempt to get a full Credential from the refresh token.