AgsSecurity
public class AgsSecurity
AeroGear Services Security SDK
SDK provides a way for the developer to perform security checks on the device their code is running on
-
The initialise method of AgsSecurity
Declaration
Swift
public init()
-
Perform a security check on a device.
Declaration
Swift
public func check(_ check: SecurityCheck) -> SecurityCheckResult
Parameters
check
The security check to be performed
Return Value
A SecurityCheckResult with a true or false property ‘passed’
-
Perform a security check on a device and also publish the result to the metrics service
Declaration
Swift
public func checkAndPublishMetric(_ check: SecurityCheck) -> SecurityCheckResult
Parameters
check
The security check to be performed
Return Value
A SecurityCheckResult with a true or false property ‘passed’
-
Perform multiple security checks on a device
Declaration
Swift
public func checkMany(_ checks: [SecurityCheck]) -> [SecurityCheckResult]
Parameters
checks
The security checks to be performed
Return Value
An array of type SecurityCheckResult with a true or false property ‘passed’ for each result
-
Perform multiple security checks on a device and also publish them to the metrics service
Declaration
Swift
public func checkManyAndPublishMetric(_ checks: [SecurityCheck]) -> [SecurityCheckResult]
Parameters
checks
The security checks to be performed
Return Value
An array of type SecurityCheckResult with a true or false property ‘passed’ for each result