AccumuloRdfConfiguration extends RdfCloudTripleStoreConfiguration { public Authorizations getAuthorizations() { final String[] auths = getAuths(); if (auths == null || auths.length == 0) { return AccumuloRdfConstants.ALL_AUTHORIZATIONS; } return new Authorizations(auths); } AccumuloRdfConfiguration();  AccumuloRdfConfiguration(final Configuration other); static AccumuloRdfConfigurationBuilder getBuilder(); static AccumuloRdfConfiguration fromProperties(final Properties props); @Override AccumuloRdfConfiguration clone(); void setAccumuloUser(final String user); String getAccumuloUser(); void setAccumuloPassword(final String password); String getAccumuloPassword(); void setAccumuloZookeepers(final String zookeepers); String getAccumuloZookeepers(); void setAccumuloInstance(final String instance); String getAccumuloInstance(); void setUseMockAccumulo(final boolean useMock); boolean getUseMockAccumulo(); void useMockInstance(final boolean enabled); boolean useMockInstance(); void setUsername(final String username); String getUsername(); void setPassword(final String password); String getPassword(); void setInstanceName(final String instanceName); String getInstanceName(); void setZookeepers(final String zookeepers); String getZookeepers(); Authorizations getAuthorizations(); void setMaxRangesForScanner(final Integer max); Integer getMaxRangesForScanner(); void setAdditionalIndexers(final Class<? extends AccumuloIndexer>... indexers); List<AccumuloIndexer> getAdditionalIndexers(); boolean flushEachUpdate(); void setFlush(final boolean flush); void setAdditionalIterators(final IteratorSetting... additionalIterators); IteratorSetting[] getAdditionalIterators(); static final String USE_MOCK_INSTANCE; static final String CLOUDBASE_INSTANCE; static final String CLOUDBASE_ZOOKEEPERS; static final String CLOUDBASE_USER; static final String CLOUDBASE_PASSWORD; static final String MAXRANGES_SCANNER; static final String CONF_ADDITIONAL_INDEXERS; static final String CONF_FLUSH_EACH_UPDATE; static final String ITERATOR_SETTINGS_SIZE; static final String ITERATOR_SETTINGS_BASE; static final String ITERATOR_SETTINGS_NAME; static final String ITERATOR_SETTINGS_CLASS; static final String ITERATOR_SETTINGS_PRIORITY; static final String ITERATOR_SETTINGS_OPTIONS_SIZE; static final String ITERATOR_SETTINGS_OPTIONS_KEY; static final String ITERATOR_SETTINGS_OPTIONS_VALUE; }
@Test public void testAuths() { String[] arr = { "U", "FOUO" }; String str = "U,FOUO"; Authorizations auths = new Authorizations(arr); AccumuloRdfConfiguration conf = new AccumuloRdfConfiguration(); conf.setAuths(arr); assertTrue(Arrays.equals(arr, conf.getAuths())); assertEquals(str, conf.getAuth()); assertEquals(auths, conf.getAuthorizations()); conf.setAuth(str); assertTrue(Arrays.equals(arr, conf.getAuths())); assertEquals(str, conf.getAuth()); assertEquals(auths, conf.getAuthorizations()); }