added CertExpired fault
authorTony Mack <tmack@cs.princeton.edu>
Tue, 14 Sep 2010 19:37:37 +0000 (19:37 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Tue, 14 Sep 2010 19:37:37 +0000 (19:37 +0000)
sfa/util/faults.py

index 8bf71e8..f744a5e 100644 (file)
@@ -288,3 +288,10 @@ class CredentialNotVerifiable(SfaFault):
         SfaFault.__init__(self, 115, faultString, extra)
     def __str__(self):
         return repr(self.value)
+
+class CertExpired(SfaFault):
+    def __init__(self, value, extra=None):
+        self.value = value
+        faultString = "%s cert is expired" % value
+        SfaFault.__init__(self, 102, faultString, extra)
+