@@ -90,7 +90,7 @@ def name(self) -> rnames.Name:
9090
9191 @property
9292 def lifetime (self ) -> int :
93- """Get the remaining lifetime of these credentials"""
93+ """Get the remaining lifetime of these credentials, in seconds """
9494 return t .cast (int ,
9595 self .inquire (name = False , lifetime = True ,
9696 usage = False , mechs = False ).lifetime )
@@ -137,8 +137,8 @@ def acquire(
137137 Args:
138138 name (~gssapi.names.Name): the name associated with the
139139 credentials, or None for the default name
140- lifetime (int): the desired lifetime of the credentials, or None
141- for indefinite
140+ lifetime (int): the desired lifetime of the credentials in seconds,
141+ or None for indefinite
142142 mechs (list): the desired :class:`MechType` OIDs to be used
143143 with the credentials, or None for the default set
144144 usage (str): the usage for the credentials -- either 'both',
@@ -253,8 +253,8 @@ def impersonate(
253253
254254 Args:
255255 name (~gssapi.names.Name): the name to impersonate
256- lifetime (int): the desired lifetime of the new credentials,
257- or None for indefinite
256+ lifetime (int): the desired lifetime of the new credentials in
257+ seconds, or None for indefinite
258258 mechs (list): the desired :class:`MechType` OIDs for the new
259259 credentials
260260 usage (str): the desired usage for the new credentials -- either
@@ -326,13 +326,13 @@ def inquire_by_mech(
326326 about them.
327327
328328 Args:
329- mech (~gssapi.OID): the mechanism for which to retrive the
329+ mech (~gssapi.OID): the mechanism for which to retrieve the
330330 information
331331 name (bool): get the name associated with the credentials
332332 init_lifetime (bool): get the remaining initiate lifetime for
333- the credentials
333+ the credentials in seconds
334334 accept_lifetime (bool): get the remaining accept lifetime for
335- the credentials
335+ the credentials in seconds
336336 usage (bool): get the usage for the credentials
337337
338338 Returns:
@@ -396,9 +396,9 @@ def add(
396396 usage (str): the usage for the credentials -- either 'both',
397397 'initiate', or 'accept'
398398 init_lifetime (int): the desired initiate lifetime of the
399- credentials, or None for indefinite
399+ credentials in seconds , or None for indefinite
400400 accept_lifetime (int): the desired accept lifetime of the
401- credentials, or None for indefinite
401+ credentials in seconds , or None for indefinite
402402 impersonator (Credentials): the credentials to use to impersonate
403403 the given name, or None to not acquire normally
404404 (:requires-ext:`s4u`)
0 commit comments