Skip to content


October 29, 2009

The identities of a user(username, SSN, employeeID, etc.) are stored as objects in the Subject Principals set. The roles assigned to a user are also stored in the Principals set, but they are stored in named role sets using instances. The Group interface is a subinterface of A Group is a collection of Principals and or Groups. There can be any number of role sets assigned to a Subject. Currently the JBossSX framework uses two well known roles sets named “Roles” and “CallerPrincipal”. The “Roles” set is the set of Principals for the named roles as known in the application domain the Subject has been assigned. This role set is used by methods like the EJBContext.isCallerInRole(String) which is used by EJBs to see if the current caller belongs to the named application domain role. The CallerPrincipal role set consists of the Principal identity assigned to the user in the application domain. It is used by the EJBContext.getCallerPrincipal() method to allow the application domain to map from the operation environment identity to a user identity suitable for the application. If a Subject does not have a CallerPrincipal role set then the application identity is that of the operational environment identity.

extend UsernamePasswordLoginModule
validatePassword (Authenticates user against LDAP)
getRoleSets (This adds the user role that was found in LDAP and you must hve valid role as well.

No comments yet

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: