SK.gnome.dwarf.auth
Class UserPrincipal

java.lang.Object
  extended bySK.gnome.dwarf.auth.GenericPrincipal
      extended bySK.gnome.dwarf.auth.UserPrincipal
All Implemented Interfaces:
java.security.Principal

public class UserPrincipal
extends GenericPrincipal

This class implements a Principal representing the authenticated user.

The full user name can be obtained via the getFullName() method.


Constructor Summary
UserPrincipal(java.lang.String name)
          Creates a new UserPrincipal.
UserPrincipal(java.lang.String name, java.lang.String fullName)
          Creates a new UserPrincipal with the given full name.
 
Method Summary
 java.lang.String getFullName()
          Returns the full user name.
 
Methods inherited from class SK.gnome.dwarf.auth.GenericPrincipal
equals, getName, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UserPrincipal

public UserPrincipal(java.lang.String name)
Creates a new UserPrincipal.


UserPrincipal

public UserPrincipal(java.lang.String name,
                     java.lang.String fullName)
Creates a new UserPrincipal with the given full name.

Parameters:
name - the user id
fullName - the full user name (may be null)
Method Detail

getFullName

public java.lang.String getFullName()
Returns the full user name.

Returns:
the full name


Copyright (c) 1999-2005, Gnome Ltd. All rights reserved.