FileDocCategorySizeDatePackage
User.javaAPI DocGlassfish v2 API3246Fri May 04 22:35:28 BST 2007com.sun.enterprise.security.auth.realm

User

public interface User implements Principal
All users are principals ... perhaps in the native OS, perhaps not.

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 typically have attributes that identify privileges granted/possesed by the user.

author
Harish Prabandham

Fields Summary
Constructors Summary
Methods Summary
public java.lang.ObjectgetAttribute(java.lang.String name)
Returns the single requested attribute for the user.

param
name string identifying the attribute.
return
value of that attribute, or null if no value has been defined

public java.util.EnumerationgetAttributeNames()
Returns an enumeration of the keys for the attributes supported for this user.

public RealmgetRealm()
Returns the realm with which this user is associated.