- ##
- # Verify that a chain of credentials is valid (see cert.py:verify). In
- # addition to the checks for ordinary certificates, verification also
- # ensures that the delegate bit was set by each parent in the chain. If
- # a delegate bit was not set, then an exception is thrown.
- #
- # Each credential must be a subset of the rights of the parent.
-
- ## def verify_chain(self, trusted_certs = None):
-## # do the normal certificate verification stuff
-## Certificate.verify_chain(self, trusted_certs)
-
-## if self.parent:
-## # make sure the parent delegated rights to the child
-## if not self.parent.get_delegate():
-## raise MissingDelegateBit(self.parent.get_subject())
-
-## # make sure the rights given to the child are a subset of the
-## # parents rights
-## if not self.parent.get_privileges().is_superset(self.get_privileges()):
-## raise ChildRightsNotSubsetOfParent(self.get_subject()
-## + " " + self.parent.get_privileges().save_to_string()
-## + " " + self.get_privileges().save_to_string())
-
-## return
-