Class FileRealmUser
- java.lang.Object
-
- com.sun.enterprise.security.auth.realm.file.FileRealmUser
-
-
Constructor Summary
Constructors Constructor Description FileRealmUser(FileRealmStorageManager.User user, String realm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getAttribute(String key)
Return the requested attribute for the user.Enumeration<String>
getAttributeNames()
Return the names of the supported attributes for this user.String[]
getGroups()
String
getName()
Realm
getRealm()
Returns the realm with which this user is associated
-
-
-
Constructor Detail
-
FileRealmUser
public FileRealmUser(FileRealmStorageManager.User user, String realm)
-
-
Method Detail
-
getGroups
public String[] getGroups()
-
getRealm
public Realm getRealm() throws NoSuchRealmException
Returns the realm with which this user is associated- Specified by:
getRealm
in interfaceUser
- Returns:
- Realm name.
- Throws:
NoSuchRealmException
- if the realm associated this user no longer exist
-
getAttribute
public Object getAttribute(String key)
Return the requested attribute for the user.Not really needed.
- Specified by:
getAttribute
in interfaceUser
- Parameters:
key
- string identifies the attribute.- Returns:
- value of that attribute, or null if no value has been defined
-
getAttributeNames
public Enumeration<String> getAttributeNames()
Return the names of the supported attributes for this user.Not really needed.
- Specified by:
getAttributeNames
in interfaceUser
-
-