All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface com.sun.server.realm.User

public interface User
extends Principal
All users are principals ... perhaps in the native OS, perhaps not. (Groups and ACLs don't map to the native OS concepts.) All users have a "home" file storage area.

Users always have authentication information, which is used to validate a user's proferred credentials. Different kinds of realms use different kinds of authentication information. For example, realms could use X.509 public key certificates, shared passphrases, encrypted passwords, smart cards, or biometric data to figure out if the user's credentials are valid.

Users also have a variety of attributes. These are identified by names, which are strings without embedded whitespace. Names containing periods (".") are assigned in the same way that Java package names are assigned; for example, according to the Internet domain names of the organization defining the attribute. Names not containing periods are assigned by Sun, and include:


NOTE: this interface is still in development.


Method Index

 o getAttribute(String)
Returns the single requested attribute for the user.
 o getAttributeNames()
Returns an enumeration of the keys for the attributes supported for this user.
 o getRealm()
Returns the realm with which this user is associated.
 o isAuthenticationEnabled()
Returns true if authentication for this user is enabled.

Methods

 o getRealm
 public abstract Realm getRealm()
Returns the realm with which this user is associated.

 o getAttribute
 public abstract Object getAttribute(String name)
Returns the single requested attribute for the user.

Parameters:
name - string identifying the attribute.
Returns:
value of that attribute, or null if no value has been defined
 o getAttributeNames
 public abstract Enumeration getAttributeNames()
Returns an enumeration of the keys for the attributes supported for this user.

 o isAuthenticationEnabled
 public abstract boolean isAuthenticationEnabled()
Returns true if authentication for this user is enabled. If it has been disabled, different kinds of users will require different actions to re-enable authentication, and the first step of an authentication operation will throw a NoAuthenticationException.

See Also:
NoAuthenticationException

All Packages  Class Hierarchy  This Package  Previous  Next  Index