X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fmethods%2FGetCredential.py;h=22d021cd60b42276d01cada3dd54eb73ff45eafe;hb=c900832bcc4f4dddceeac1978d56e5f10e0e2bb5;hp=da3e97b72b9116d509157bd44567802978cc3059;hpb=57b6a99255d4a88be9c0f910f8524677e34ff4bc;p=sfa.git diff --git a/sfa/methods/GetCredential.py b/sfa/methods/GetCredential.py index da3e97b7..22d021cd 100644 --- a/sfa/methods/GetCredential.py +++ b/sfa/methods/GetCredential.py @@ -1,8 +1,10 @@ from sfa.util.xrn import urn_to_hrn from sfa.util.method import Method -from sfa.util.parameter import Parameter, Mixed + from sfa.trust.credential import Credential +from sfa.storage.parameter import Parameter, Mixed + class GetCredential(Method): """ Retrive a credential for an object @@ -42,7 +44,5 @@ class GetCredential(Method): origin_hrn = Credential(string=valid_creds[0]).get_gid_caller().get_hrn() self.api.logger.info("interface: %s\tcaller-hrn: %s\ttarget-hrn: %s\tmethod-name: %s"%(self.api.interface, origin_hrn, hrn, self.name)) - manager = self.api.get_interface_manager() - - return manager.get_credential(self.api, xrn, type) + return self.api.manager.GetCredential(self.api, xrn, type, self.api.auth.client_gid.get_urn())