Interface User

  • All Superinterfaces:
    Principal
    All Known Implementing Classes:
    FileRealmUser

    public interface User
    extends Principal
    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 Detail

      • getAttribute

        Object getAttribute​(String name)
        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 getAttributeNames()
        Returns an enumeration of the keys for the attributes supported for this user.