// Initialize IDTrust and a policy file (which defines the "dna-jcr" login config name)
String configFile = "security/jaas.conf.xml";
IDTrustConfiguration idtrustConfig = new IDTrustConfiguration();
try {
idtrustConfig.config(configFile);
} catch (Exception ex) {
throw new IllegalStateException(ex);
}
// Create and start the engine ...