Hi i what to do a programmatic configuration of repository, because most of the parameter for configuration in repository can only determine in run time.
Seems like i am unable to use anonymous credential when im try to print the session it throws NPE code below
config.repositorySource("store")
.usingClass(DiskSource.class)
.setProperty("repositoryRootPath", "c:/x/repo1")
.setProperty("defaultWorkspaceName","default");
config.repository("content")
.setOption(JcrRepository.Option.USE_ANONYMOUS_ACCESS_ON_FAILED_LOGIN, "true")
.setSource("store");
Session session = engine.getRepository("content").login("default");
Can I add Custom authenticator to JcrConfiguration?