Sun OpenSSO Enterprise 8.0 Developer's Guide

Writing a Principal Class for the Authentication Module

After creating the authentication module's callback requirements file, write a class which implements java.security.Principal to represent the entity requesting authentication. For example, the constructor takes the username as an argument. If authentication is successful, the module will return this principal to the Authentication Service which populates the login state and session token with the information representing the user.