JBoss.orgCommunity Documentation
IdentitySessionFactory interface is a main entry point into the API. Default implementation IdentitySessionFactoryImpl has two constructors:
public IdentitySessionFactoryImpl(IdentityConfigurationMetaData configMD) throws Exception
public IdentitySessionFactoryImpl(File configFile) throws Exception
Framework configuration can be defined in two ways. It can be passed as implementation of a set of metadata interfaces grouped in org.picketlink.idm.spi.configuration.metadata package. Main one is IdentityConfigurationMetaData.
Other possibility is to use xml configuration file that will be unmarshaled into JAXB model (org.picketlink.idm.impl.configuration.jaxb2.generated package) and used to create IdentityConfigurationMetaData object. XML configuration is described by identity-config.xsd file. It is good to take a look at the example organization-test-config.xml that is used in the testsuite.