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
  • Undocumented

    Declaration

    Swift

    public init(deviceComplianceDetectionPolicy: DeviceComplianceDetectionPolicy = .ignore, clipboardAccessPolicy: ClipboardAccessPolicy = .unrestricted, printPolicy: PrintPolicy = .unrestricted, openURLPolicy: OpenURLPolicy = .unrestricted)
  • 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) throws

    Parameters

    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 invalid

    Declaration

    Swift

    public init?(sapcpmsSecurityPolicy: Any) throws

    Parameters

    sapcpmsSecurityPolicy

    Any type object which can be converted to [String: Any]

  • Declaration

    Swift

    public var description: String { get }
  • Declaration

    Swift

    public var debugDescription: String { get }