The Elytron project is defining a new set of APIs and SPIs for security domains and security realms.
Note: Within Elytron a security domain is a set of security realms and a security realm is the integration point with the backing store of users and their credentials.