Class UserDescriptor


  • public final class UserDescriptor
    extends TupleDescriptor
    A Descriptor for a user stored in SYSUSERS.
    • Field Detail

      • _userName

        private java.lang.String _userName
      • _hashingScheme

        private java.lang.String _hashingScheme
      • _password

        private char[] _password
      • _lastModified

        private java.sql.Timestamp _lastModified
    • Constructor Detail

      • UserDescriptor

        UserDescriptor​(DataDictionary dataDictionary,
                       java.lang.String userName,
                       java.lang.String hashingScheme,
                       char[] password,
                       java.sql.Timestamp lastModified)
        Constructor for a UserDescriptor.
        Parameters:
        dataDictionary - The data dictionary that this descriptor lives in.
        userName - Name of the user.
        hashingScheme - How the password was hashed.
        password - The user's password.
        lastModified - Time that the password was last modified.
    • Method Detail

      • getUserName

        public java.lang.String getUserName()
      • getHashingScheme

        public java.lang.String getHashingScheme()
      • getLastModified

        public java.sql.Timestamp getLastModified()
      • getAndZeroPassword

        public char[] getAndZeroPassword()

        Zero the password after getting it so that the char[] can't be memory-sniffed.