ZitiPostureChecks
@objc
open class ZitiPostureChecks : NSObject
Ziti
can be initialized with an instance of this class that implements various posture checks, used to determine if a Ziti
identity is allowed access to specific services
-
Postture response for MAC address query
Declaration
Swift
public typealias MacResponse = (_ ctx: ZitiPostureContext, _ macAddresses: [String]?) -> Void
Parameters
ctx
posture context
macAddresses
array of the mac addresses the host currently can access. Values should be hex strings.
nil
signifies not supported. -
Postture query for MAC address
Declaration
Swift
public typealias MacQuery = (_ ctx: ZitiPostureContext, _ responseCallback: @escaping MacResponse) -> Void
Parameters
ctx
posture context
responseCallback
callback to invoke in response to this query
-
Postture response for host domain query
Declaration
Swift
public typealias DomainResponse = (_ ctx: ZitiPostureContext, _ domain: String?) -> Void
Parameters
ctx
posture context
domain
Host domain.
nil
signifies not supported. -
Postture query for Domain
Declaration
Swift
public typealias DomainQuery = (_ ctx: ZitiPostureContext, _ responseCallback: @escaping DomainResponse) -> Void
Parameters
ctx
posture context
responseCallback
callback to invoke in response to this query
-
Postture response for host domain query
Declaration
Swift
public typealias OsResponse = (_ ctx: ZitiPostureContext, _ type: String?, _ version: String?, _ build: String?) -> Void
Parameters
ctx
posture context
type
type of operating sytem (e.g., “macOS”, “iOS”)
version
OS version
build
OS build.
nil
signifies not supported -
Postture query for Operating System
Declaration
Swift
public typealias OsQuery = (_ ctx: ZitiPostureContext, _ responseCallback: @escaping OsResponse) -> Void
Parameters
ctx
posture context
responseCallback
callback to invoke in response to this query
-
Postture response for process query
Declaration
Swift
public typealias ProcessResponse = (_ ctx:ZitiPostureContext, _ path:String, _ isRunning:Bool, _ hash:String?, _ signers:[String]?) -> Void
Parameters
ctx
posture context
path
path of the process to inspect
isRunning
is the process currently running?
hash
sha512 hash of the process’s binary file
signers
sha1 hex string fingerprints of the binary or
nil
if not supported -
Postture query for process information
Declaration
Swift
public typealias ProcessQuery = (_ ctx: ZitiPostureContext, _ path: String, _ responseCallback: @escaping ProcessResponse) -> Void
Parameters
ctx
posture context
responseCallback
callback to invoke in response to this query
-
Optional support for query of MAC addresses
Declaration
Swift
@objc public var macQuery: MacQuery?
-
Optional support for query of host domain
Declaration
Swift
@objc public var domainQuery: DomainQuery?
-
Optional support for query of operating system version
Declaration
Swift
@objc public var osQuery: OsQuery?
-
Optional support for query of process informaion
Declaration
Swift
@objc public var processQuery: ProcessQuery?