Class UserManager

    • Field Detail

      • users

        protected transient java.util.Map<java.lang.String,​char[]> users
    • Constructor Detail

      • UserManager

        public UserManager()
    • Method Detail

      • addUser

        public void addUser​(java.lang.String userID,
                            char[] password)
        Specified by:
        addUser in interface IUserManager
      • removeUser

        public void removeUser​(java.lang.String userID)
        Specified by:
        removeUser in interface IUserManager
      • getPassword

        public char[] getPassword​(java.lang.String userID)
        Since:
        3.3
      • authenticate

        public void authenticate​(java.lang.String userID,
                                 char[] password)
        Description copied from interface: IAuthenticator
        Authenticates the user with the passed userID by checking whether the supplied password matches the password stored for this user.

        The implementation is required to throw a SecurityException if the passwords do not match.

        Specified by:
        authenticate in interface IAuthenticator
        Since:
        3.3
      • encrypt

        public byte[] encrypt​(java.lang.String userID,
                              byte[] data,
                              java.lang.String algorithmName,
                              byte[] salt,
                              int count)
                       throws java.lang.SecurityException
        Specified by:
        encrypt in interface IUserManager
        Throws:
        java.lang.SecurityException
        Since:
        2.0
      • doActivate

        protected void doActivate()
                           throws java.lang.Exception
        Overrides:
        doActivate in class Lifecycle
        Throws:
        java.lang.Exception
      • doDeactivate

        protected void doDeactivate()
                             throws java.lang.Exception
        Overrides:
        doDeactivate in class Lifecycle
        Throws:
        java.lang.Exception