[security-dev] initial IDM transaction api/spi
bburke at redhat.com
Tue Jul 9 16:35:05 EDT 2013
Ok, i've committed an API/SPI for transactional IDM and added it to my
pull request. It would be cool to get some approval for this very very
soon. Not necessarily for pull request, but the actual user-facing API.
A comittement to get it working within 2.5. I'd like to start using
it in my application - yesterday...
Also, this only works for JPA at the moment. It would probably take
some work to get it to work for LDAP and File store. I'd be willing to
work on that too as long as this gets approved.
Here's what it looks like:
IdentityContextFactory factory = new DefaultIdentityContextFactory(config);
IdentityContext ctx = factory.createIdentityContext();
Realm partition = ctx.findRealm("myRealm");
IdentityManager idm = ctx.createIdentityManager(partition);
JBoss, a division of Red Hat
More information about the security-dev