SAPcpmsSecurityPolicy
public struct SAPcpmsSecurityPolicy
extension SAPcpmsSecurityPolicy: CustomStringConvertible, CustomDebugStringConvertible
Describes the SAPcpms Security policy structure.
-
Parameter that indicates if device compliance detection checks need to be run and reported
Declaration
Swift
public let deviceComplianceDetectionPolicy: DeviceComplianceDetectionPolicy -
Parameter that indicates if clipboard pasting is restricted or unrestricted
Declaration
Swift
public let clipboardAccessPolicy: ClipboardAccessPolicy -
Parameter that indicates if print is restricted
Declaration
Swift
public let printPolicy: PrintPolicy -
Parameter that indicates if the opening of URLs in an external application is restricted.
Declaration
Swift
public let openURLPolicy: OpenURLPolicy -
When
openURLPolicyis set to.blocked, URLs will be blocked from opening in an external browser, except those matching an entry in this list. An empty list means all URLs are blocked.Declaration
Swift
public let openURLAllowlist: [OpenURLAllowlistEntry] -
init(deviceComplianceDetectionPolicy:clipboardAccessPolicy:printPolicy:openURLPolicy:openURLAllowlist:)Undocumented
Declaration
Swift
public init(deviceComplianceDetectionPolicy: DeviceComplianceDetectionPolicy = .ignore, clipboardAccessPolicy: ClipboardAccessPolicy = .unrestricted, printPolicy: PrintPolicy = .unrestricted, openURLPolicy: OpenURLPolicy = .unrestricted, openURLAllowlist: [OpenURLAllowlistEntry] = []) -
Initialize the structure from [String: Any] dictionary. Example structure, which is part of the Settings structure downloaded from mobile services: … { “mobileservices”: { “settingsExchange”: { “securityPolicy” : { “jailbrokenDevices” : “report” “clipboard” : “blocked” “print” : “blocked” “openingURLs” : “blocked” }, } } } …
Throws
ConfigurationError if the received config is invalid.Declaration
Swift
public init?(sapcpmsSettings: Any) throwsParameters
sapcpmsSettings‘Any’ type object which can be converted to [String: Any]
-
Initialize the structure from [String: Any] dictionary. Example structure, which is part of the Settings structure downloaded from mobile services: … “securityPolicy” : { “jailbrokenDevices” : “report” “clipboard” : “blocked” “print” : “blocked” “openingURLs” : “blocked” } …
Throws
ConfigurationError if a value in the received config is invalidDeclaration
Swift
public init?(sapcpmsSecurityPolicy: Any) throwsParameters
sapcpmsSecurityPolicyAnytype object which can be converted to [String: Any] -
Declaration
Swift
public var description: String { get } -
Declaration
Swift
public var debugDescription: String { get }