Interface User
- All Superinterfaces:
Principal
- All Known Implementing Classes:
FileRealmUser
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
-
Method Summary
Modifier and TypeMethodDescriptiongetAttribute
(String name) Returns the single requested attribute for the user.Returns an enumeration of the keys for the attributes supported for this user.getRealm()
Returns the realm with which this user is associated.
-
Method Details
-
getRealm
Returns the realm with which this user is associated.- Throws:
NoSuchRealmException
-
getAttribute
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
-
getAttributeNames
Enumeration<String> getAttributeNames()Returns an enumeration of the keys for the attributes supported for this user.
-