org.apache.jetspeed.security.impl
Class UserImpl

java.lang.Object
  extended by org.apache.jetspeed.security.impl.UserImpl
All Implemented Interfaces:
User

public class UserImpl
extends java.lang.Object
implements User

A user made of a Subject and the user Preferences.

Author:
David Le Strat

Field Summary
 
Fields inherited from interface org.apache.jetspeed.security.User
USER_INFO_PROPERTY_SET, USER_INFO_SUBSITE
 
Constructor Summary
UserImpl()
          Default constructor.
UserImpl(javax.security.auth.Subject subject, java.util.prefs.Preferences preferences)
          User constructor given a subject and preferences.
 
Method Summary
 java.util.prefs.Preferences getPreferences()
          Getter for the user Preferences node, providing access to the user preferences properties.
 javax.security.auth.Subject getSubject()
          Getter for the user Subject populated with the application principals.
 java.util.prefs.Preferences getUserAttributes()
          Get the user attributes for a given user
 void setPreferences(java.util.prefs.Preferences preferences)
          Setter for the user Preferences node, providing access to the user preferences properties.
 void setSubject(javax.security.auth.Subject subject)
          Setter for the user Subject populated with the application principals.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserImpl

public UserImpl()

Default constructor.


UserImpl

public UserImpl(javax.security.auth.Subject subject,
                java.util.prefs.Preferences preferences)

User constructor given a subject and preferences.

Parameters:
subject - The subject.
preferences - The preferences.
Method Detail

getSubject

public javax.security.auth.Subject getSubject()
Description copied from interface: User

Getter for the user Subject populated with the application principals.

Specified by:
getSubject in interface User
Returns:
The Subject.
See Also:
User.getSubject()

setSubject

public void setSubject(javax.security.auth.Subject subject)
Description copied from interface: User

Setter for the user Subject populated with the application principals.

Specified by:
setSubject in interface User
Parameters:
subject - The Subject.
See Also:
User.setSubject(javax.security.auth.Subject)

getPreferences

public java.util.prefs.Preferences getPreferences()
Description copied from interface: User

Getter for the user Preferences node, providing access to the user preferences properties.

Specified by:
getPreferences in interface User
Returns:
The Preferences.
See Also:
User.getPreferences()

setPreferences

public void setPreferences(java.util.prefs.Preferences preferences)
Description copied from interface: User

Setter for the user Preferences node, providing access to the user preferences properties.

Specified by:
setPreferences in interface User
Parameters:
preferences - The Preferences.
See Also:
User.setPreferences(java.util.prefs.Preferences)

getUserAttributes

public java.util.prefs.Preferences getUserAttributes()
Description copied from interface: User
Get the user attributes for a given user

Specified by:
getUserAttributes in interface User
Returns:
a preference set of user attributes for a given user


Copyright © 1999-2010 Apache Software Foundation. All Rights Reserved.