def marshal(self) -> bytes: """ Serializes the transport data so we can store it in database """ val = str.join( '\t', [ 'v3', gui.boolToStr(self._useEmptyCreds), self._fixedName, self._fixedPassword, self._listenPort, self._connection, self._session, self._cacheDisk, self._cacheMem, self._tunnelServer, self._tunnelCheckServer, self._screenSize, str(self._tunnelWait), gui.boolToStr(self._verifyCertificate), ], ) logger.debug('Values: %s', val) return val.encode('utf8')
def valuesDict(self) -> gui.ValuesDictType: return { 'useEmptyCreds': gui.boolToStr(self._useEmptyCreds), 'fixedName': self._fixedName, 'fixedPassword': self._fixedPassword, 'listenPort': self._listenPort, 'connection': self._connection, 'session': self._session, 'cacheDisk': self._cacheDisk, 'cacheMem': self._cacheMem, 'tunnelServer': self._tunnelServer, 'tunnelWait': str(self._tunnelWait), 'verifyCertificate': gui.boolToStr(self._verifyCertificate), }
def marshal(self) -> bytes: return '\t'.join([ 'v3', self._host, self._port, gui.boolToStr(self._ssl), self._username, self._password, self._timeout, self._ldapBase, self._userClass, self._userIdAttr, self._groupNameAttr, self._userNameAttr, self._altClass ]).encode('utf8')
def valuesDict(self) -> gui.ValuesDictType: return { 'host': self._host, 'port': self._port, 'ssl': gui.boolToStr(self._ssl), 'username': self._username, 'password': self._password, 'timeout': self._timeout, 'ldapBase': self._ldapBase, 'userClass': self._userClass, 'userIdAttr': self._userIdAttr, 'groupNameAttr': self._groupNameAttr, 'userNameAttr': self._userNameAttr, 'altClass': self._altClass, }
def marshal(self) -> bytes: """ Serializes the transport data so we can store it in database """ return str.join('\t', [ 'v2', gui.boolToStr(self._useEmptyCreds), self._fixedName, self._fixedPassword, self._listenPort, self._connection, self._session, self._cacheDisk, self._cacheMem, self._screenSize ]).encode('utf8')
def valuesDict(self) -> gui.ValuesDictType: return { 'useEmptyCreds': gui.boolToStr(self._useEmptyCreds), 'fixedName': self._fixedName, 'fixedPassword': self._fixedPassword, 'listenPort': self._listenPort, 'connection': self._connection, 'session': self._session, 'cacheDisk': self._cacheDisk, 'cacheMem': self._cacheMem }