| org.josso.tc50.agent.jaas.CatalinaSSOUser
CatalinaSSOUser | public class CatalinaSSOUser extends GenericPrincipal implements SSOUser(Code) | | On authentication, Catalina JAAS Realm doesn't return the Principal instances as
built by the Login Modules. It returns a Catalina-specific Principal called GenericPrincipal.
As a consequence all the additional properties that the SSOUser instance carries are lost.
With this class, we'll make Catalina beleive that our SSOUser its actually a GenericPrincipal, so that it
doesn't create a new one.
author: Gianluca Brigandi version: CVS $Id: CatalinaSSOUser.java 508 2008-02-18 13:32:29Z sgonzalez $ |
newInstance | public static CatalinaSSOUser newInstance(Realm realm, Subject subject)(Code) | | Construct and return a java.security.Principal instance
representing the authenticated user for the specified Subject. If no
such Principal can be constructed, return null.
The Principal constructed is *not* GenericPrincipal as in Catalina JAASRealm class,
but CatalinaSSOUser which is a SSOUser.
The Partner Application can access SSOUser-specific properties that are not available
in GenericPrincipal.
The JAASRealm superclass invokes this factory method to build the Catalina-specific
Principal from the Subject filled by the configured JAASLoginModule.
Parameters: subject - The Subject representing the logged in user |
toString | public String toString()(Code) | | Return a String representation of this object, which exposes only
information that should be public.
|
|
|