from sfa.util.method import Method
from sfa.util.parameter import Parameter, Mixed
from sfa.util.record import SfaRecord
-from sfa.util.debug import log
from sfa.trust.certificate import Certificate
class GetSelfCredential(Method):
accepts = [
Parameter(str, "certificate"),
Parameter(str, "Human readable name (hrn or urn)"),
- Parameter(str, "Object type"),
+ Mixed(Parameter(str, "Record type"),
+ Parameter(None, "Type not specified")),
]
returns = Parameter(str, "String representation of a credential object")