Home | Trees | Indices | Help |
---|
|
object --+ | Base.Objects.Node --+ | Base.Objects.GangaObject --+ | ICredential
Interface class for working with credentials
|
|||
Inherited from |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from Inherited from |
|
|||
Inherited from |
|
|||
_schema = Schema(Version(1, 0), {"maxTry": SimpleItem(defvalue
|
|||
_category = "credentials"
|
|||
_name = "ICredential"
|
|||
_hidden = 1
|
|||
_exportmethods = ["create", "destroy", "isAvailable", "isValid
|
|||
Inherited from Inherited from |
|
|||
Inherited from |
|
x.__init__(...) initializes x; see help(type(x)) for signature
|
Create credential. Arguments other than self: validity - Validity with which credential should be created, specified as string of format "hh:mm" [ Defaults to value of self.validityAtCreation ] maxTry - Number of password attempts allowed [ Defaults to value of self.maxTry ] minValidity - Minimum validity in case checking of pre-existing credential is performed, specified as strong of format "hh:mm" [ Defaults to value of self.minValidity ] check - Flag to request checking of pre-existing credential; if flag is set to true, then new credential is created only if the validity of any pre-existing credential is less than the value of minValidity [ Default: False ] Note: create is the same as renew, except for the default value of check Return value: True if credential is created successfully, and False otherwise. |
Destroy credential Argument other than self: allowed_exit - List of exit codes accepted without error when issuing system command for destroying credential Return value: False if command for destroying credential is undefined, or True otherwise |
Check whether credential is available with system/configuration used No arguments other than self Return value: True if credential is available, false otherwise |
Check validity Arguments other than self: validity - Minimum time for which credential should be valid, specified as string of format "hh:mm" [ Defaults to valud of self.minValidity ] log - Print logger messages if credential not valid force_check - Force credential check, rather than relying on cache Return value: True if credential is valid for required time, False otherwise. |
Determine credential location No arguments other than self Return value: Path to credential if found, or empty string otherwise |
Renew credential. Arguments other than self: validity - Validity with which credential should be created, specified as string of format "hh:mm" [ Defaults to value of self.validityAtCreation ] maxTry - Number of password attempts allowed [ Defaults to value of self.maxTry ] minValidity - Minimum validity in case checking of pre-existing credential is performed, specified as strong of format "hh:mm" [ Defaults to value of self.minValidity ] check - Flag to request checking of pre-existing credential; if flag is set to true, then new credential is created only if the validity of any pre-existing credential is less than the value of minValidity [ Default: True ] Note: renew is the same as create, except for the default value of check Return value: True if new credential is created successfully, and False otherwise. |
Convert time string to time in seconds Arguments other than self: timeString - Time specified as string of format "hh:mm:ss" Return value: Time in seconds (integer) |
Check time for which credential is valid. Arguments other than self: units - String specifying units in which time is returned force_check - Force credential check, rather than relying on cache Allowed values for units are: "hours" - time returned as in hours "minutes" - time returned in minutes "seconds" - time returned in seconds "hh:mm:ss" [default] - time returned as hours, minutes seconds Return value: Credential validity as string giving time in requested units, or empty string if command for querying credential validity is unavailable |
Determine remaining validity of credential in hours, minutes and seconds Argument other than self: force_check - Force credential check, rather than relying on cache Return value: String giving credential validity, or empty string if command for querying credential validity is unavailable |
|
_schema
|
_exportmethods
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Mon Jun 25 10:35:19 2012 | http://epydoc.sourceforge.net |