move process of loading trusted cert files into its own method
authorTony Mack <tmack@cs.princeton.edu>
Mon, 5 Apr 2010 20:57:07 +0000 (20:57 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Mon, 5 Apr 2010 20:57:07 +0000 (20:57 +0000)
sfa/trust/auth.py

index 3bcc097..7a92959 100644 (file)
@@ -27,9 +27,11 @@ class Auth:
         self.hierarchy = Hierarchy()
         if not config:
             self.config = Config()
-        self.trusted_cert_list = TrustedRootList(self.config.get_trustedroots_dir()).get_list()
-
+        self.load_trusted_certs()
 
+    def load_trusted_certs(self):
+        self.trusted_cert_list = TrustedRootList(self.config.get_trustedroots_dir()).get_list()
+        
     def check(self, cred, operation):
         """
         Check the credential against the peer cert (callerGID included