X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fmethods%2FGetCredential.py;h=da3e97b72b9116d509157bd44567802978cc3059;hb=57b6a99255d4a88be9c0f910f8524677e34ff4bc;hp=df6e8688ecbacd8a8927ba4b6640e4efcbf4d444;hpb=d37a67a92c0aa83793efbdd09cdd2f330cde8cd8;p=sfa.git diff --git a/sfa/methods/GetCredential.py b/sfa/methods/GetCredential.py index df6e8688..da3e97b7 100644 --- a/sfa/methods/GetCredential.py +++ b/sfa/methods/GetCredential.py @@ -1,19 +1,12 @@ -### $Id: get_credential.py 17576 2010-04-05 20:56:15Z tmack $ -### $URL: https://svn.planet-lab.org/svn/sfa/trunk/sfa/methods/get_credential.py $ - -from sfa.trust.credential import * -from sfa.trust.rights import * -from sfa.util.faults import * -from sfa.util.namespace import * +from sfa.util.xrn import urn_to_hrn from sfa.util.method import Method from sfa.util.parameter import Parameter, Mixed -from sfa.util.debug import log from sfa.trust.credential import Credential class GetCredential(Method): """ Retrive a credential for an object - If cred == Nonee then the behavior reverts to get_self_credential + If cred == None then the behavior reverts to GetSelfCredential @param hrn human readable name of object (hrn or urn) @param cred credential object specifying rights of the caller