protected void configureForEnvironment( MiniAccumuloConfigImpl cfg, Class<?> testClass, File folder, Configuration coreSite, TestingKdc kdc) { if (TRUE.equals(System.getProperty(USE_SSL_FOR_IT_OPTION))) { configureForSsl(cfg, folder); } if (TRUE.equals(System.getProperty(USE_CRED_PROVIDER_FOR_IT_OPTION))) { cfg.setUseCredentialProvider(true); } if (TRUE.equals(System.getProperty(USE_KERBEROS_FOR_IT_OPTION))) { if (TRUE.equals(System.getProperty(USE_SSL_FOR_IT_OPTION))) { throw new RuntimeException("Cannot use both SSL and Kerberos"); } try { configureForKerberos(cfg, folder, coreSite, kdc); } catch (Exception e) { throw new RuntimeException("Failed to initialize KDC", e); } } }