public interface User extends Principal
Users always have authentication information, which is used to validate a user's preferred 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/possessed by the user.
Modifier and Type | Method and Description |
---|---|
Object |
getAttribute(String name)
Returns the single requested attribute for the user.
|
Enumeration<String> |
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
NoSuchRealmException
Object getAttribute(String name)
name
- string identifying the attribute.Enumeration<String> getAttributeNames()
Copyright © 2019. All rights reserved.