com.cafesoft.cams.auth
Class SubjectUtils

java.lang.Object
  |
  +--com.cafesoft.cams.auth.SubjectUtils

public class SubjectUtils
extends Object

Contains utilities and convenience methods for using the JAAS Subject class.

Since:
Jun 6, 2002

Constructor Summary
SubjectUtils()
           
 
Method Summary
static String getUserName(Subject subject)
          Returns the name of the first principal of type CSUserPrincipal found in the specified subject.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubjectUtils

public SubjectUtils()
Method Detail

getUserName

public static String getUserName(Subject subject)
Returns the name of the first principal of type CSUserPrincipal found in the specified subject.

Parameters:
subject - the authenticated user
Returns:
the name of the first principal of type CSUserPrincipal found in the specified subject. If the subject is null then the username will also be null


Generated on 10:40:31 AM September 10, 2003, © 1996-2003 Cafésoft LLC. All rights reserved.