Sun Java System Access Manager 7.1 Developer's Guide

Writing the Principal Class

After creating module configuration XML file, the next step is to write a Sample Principal class which implements The constructor takes the user’s username as an argument. If authentication is successful, the module will return this principal to Authentication framework. The Authentication framework populates a Subject with a SamplePrincipal representing the user.