Class InternalUserRecord

    • Constructor Detail

      • InternalUserRecord

        public InternalUserRecord()
    • Method Detail

      • getMeta

        public RecordMeta<?> getMeta()
        Description copied from class: SRecordInstance
        This must be defined in every user record's definition to access the SRecord which provides the meta data for this instance. It is normally defined as:-

         SRecord getMeta() {
           return meta;
         };
         

        The actual meta variable is thus not Serialized, but it would not be anyway as it is usually static.

        Specified by:
        getMeta in class PersistentRecord
      • getUserId

        public long getUserId()
      • getUsername

        public java.lang.String getUsername()
      • setPasswordSha256

        public void setPasswordSha256​(java.lang.String password,
                                      int maxHistory)
      • getPasswordHistory

        public java.util.LinkedList<java.lang.String> getPasswordHistory()
      • checkPassword

        public boolean checkPassword​(java.lang.String password)
      • checkPassword

        public static boolean checkPassword​(java.lang.String password,
                                            java.lang.String hashedPass)