Class UserPrincipal


  • public final class UserPrincipal
    extends SpotfirePrincipal
    Represents a user principal in the User Directory.
    Since:
    5.5
    • Constructor Summary

      Constructors 
      Constructor Description
      UserPrincipal()
      Creates a new instance.
      UserPrincipal​(Guid id, UserName name, java.lang.String displayName, java.lang.String email, boolean enabled)
      Creates a new UserPrincipal instance with the specified details.
    • Constructor Detail

      • UserPrincipal

        public UserPrincipal()
        Creates a new instance.
      • UserPrincipal

        public UserPrincipal​(Guid id,
                             UserName name,
                             java.lang.String displayName,
                             java.lang.String email,
                             boolean enabled)
        Creates a new UserPrincipal instance with the specified details.
        Parameters:
        id - an ID
        name - a name
        displayName - a display name
        email - an email address
        enabled - true if the user is enabled, false otherwise
    • Method Detail

      • isEnabled

        public boolean isEnabled()
        Indicates whether or not this user is enabled.
        Returns:
        true if this user is enabled, false otherwise