Class FileRealmUser

java.lang.Object
com.sun.enterprise.security.auth.realm.file.FileRealmUser
All Implemented Interfaces:
User, Principal

public class FileRealmUser extends Object implements User
Represents a FileRealm user.
  • Constructor Details

    • FileRealmUser

      public FileRealmUser(org.glassfish.security.common.FileRealmHelper.User user, String realm)
      Constructor.
  • Method Details

    • getGroups

      public String[] getGroups()
    • getRealm

      public Realm getRealm() throws NoSuchRealmException
      Returns the realm with which this user is associated
      Specified by:
      getRealm in interface User
      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 interface User
      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 interface User
    • getName

      public String getName()
      Specified by:
      getName in interface Principal