public interface User extends Principal
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.
| Modifier and Type | Method and Description |
|---|---|
Object |
getAttribute(String name)
Returns the single requested attribute for the user.
|
Enumeration |
getAttributeNames()
Returns an enumeration of the keys for the attributes
supported for this user.
|
Realm |
getRealm()
Returns the realm with which this user is associated.
|
Realm getRealm() throws NoSuchRealmException
NoSuchRealmExceptionObject getAttribute(String name)
name - string identifying the attribute.Enumeration getAttributeNames()
Copyright © 2017. All rights reserved.