@@ -90,7 +90,7 @@ def name(self) -> rnames.Name:
90
90
91
91
@property
92
92
def lifetime (self ) -> int :
93
- """Get the remaining lifetime of these credentials"""
93
+ """Get the remaining lifetime of these credentials, in seconds """
94
94
return t .cast (int ,
95
95
self .inquire (name = False , lifetime = True ,
96
96
usage = False , mechs = False ).lifetime )
@@ -137,8 +137,8 @@ def acquire(
137
137
Args:
138
138
name (~gssapi.names.Name): the name associated with the
139
139
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
142
142
mechs (list): the desired :class:`MechType` OIDs to be used
143
143
with the credentials, or None for the default set
144
144
usage (str): the usage for the credentials -- either 'both',
@@ -253,8 +253,8 @@ def impersonate(
253
253
254
254
Args:
255
255
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
258
258
mechs (list): the desired :class:`MechType` OIDs for the new
259
259
credentials
260
260
usage (str): the desired usage for the new credentials -- either
@@ -326,13 +326,13 @@ def inquire_by_mech(
326
326
about them.
327
327
328
328
Args:
329
- mech (~gssapi.OID): the mechanism for which to retrive the
329
+ mech (~gssapi.OID): the mechanism for which to retrieve the
330
330
information
331
331
name (bool): get the name associated with the credentials
332
332
init_lifetime (bool): get the remaining initiate lifetime for
333
- the credentials
333
+ the credentials in seconds
334
334
accept_lifetime (bool): get the remaining accept lifetime for
335
- the credentials
335
+ the credentials in seconds
336
336
usage (bool): get the usage for the credentials
337
337
338
338
Returns:
@@ -396,9 +396,9 @@ def add(
396
396
usage (str): the usage for the credentials -- either 'both',
397
397
'initiate', or 'accept'
398
398
init_lifetime (int): the desired initiate lifetime of the
399
- credentials, or None for indefinite
399
+ credentials in seconds , or None for indefinite
400
400
accept_lifetime (int): the desired accept lifetime of the
401
- credentials, or None for indefinite
401
+ credentials in seconds , or None for indefinite
402
402
impersonator (Credentials): the credentials to use to impersonate
403
403
the given name, or None to not acquire normally
404
404
(:requires-ext:`s4u`)
0 commit comments