(self, data)
Deserialize a credential object from bytes.

        Args:
            data (bytes): serialized credential object.
Deserialize a credential object from bytes.
Deserialize a credential object from bytes .
def deserialize(self, data):
        """Deserialize a credential object from bytes.

        Args:
            data (bytes): serialized credential object.
        """
        type_data = data[:10]
        type_string = type_data.decode('utf-8').strip()
        if not self.TYPE.startswith(type_string):
            raise TypeError('Not the correct serializer.')

        self.from_bytes(data[10:])
def deserialize ( self , data ) : type_data = data [ : 10 ] type_string = type_data . decode ( 'utf-8' ) . strip ( ) if not self . TYPE . startswith ( type_string ) : raise TypeError ( 'Not the correct serializer.' ) self . from_bytes ( data [ 10 : ] )