Class User

  • All Implemented Interfaces:
    java.security.Principal
    Direct Known Subclasses:
    ExternalUser

    public class User
    extends Principal
    This class represents a user, which is a type of principal.
    • Constructor Summary

      Constructors 
      Constructor Description
      User()
      Constructs a User object.
      User​(java.lang.String name)
      Constructs a User object with the specified name.
      User​(java.lang.String name, java.lang.String uuid)
      Constructs a User object with the specified name and UUID.
      User​(java.lang.String name, java.lang.String uuid, long dbid)
      Constructs a User object with the specified name, UUID and DBID.
    • Method Summary

      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.security.Principal

        equals, hashCode, implies
    • Constructor Detail

      • User

        public User()
        Constructs a User object.
      • User

        public User​(java.lang.String name)
        Constructs a User object with the specified name.
        Parameters:
        name - name of the User
      • User

        public User​(java.lang.String name,
                    java.lang.String uuid,
                    long dbid)
             throws XSPrincipalException
        Constructs a User object with the specified name, UUID and DBID.
        Parameters:
        name - name of the User
        uuid - UUID of the User
        dbid - DBID of the User
        Throws:
        XSPrincipalException - a problem occured while creating the principal
      • User

        public User​(java.lang.String name,
                    java.lang.String uuid)
             throws XSPrincipalException
        Constructs a User object with the specified name and UUID.
        Parameters:
        name - name of the User
        uuid - UUID of the User
        Throws:
        XSPrincipalException - a problem occured while creating the principal