code: public static Credential credential(
        AccessTokenProvider accessTokenProvider, Collection<String> scopes)
        throws IOException, GeneralSecurityException {
      return getCredentialFromAccessTokenProvider(accessTokenProvider, scopes);
    }
docs: Generate the credential from the {@link AccessTokenProvider}.