Documentation Archive Developer
Search

NetworkExtension Changes for Swift

NetworkExtension

Protocols
FromAnyObject
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Modified NEAppRule
DeclarationProtocols
From
class NEAppRule : NSObject, NSSecureCoding, NSCoding, NSCopying {
    init(signingIdentifier signingIdentifier: String)
    init(signingIdentifier signingIdentifier: String, designatedRequirement designatedRequirement: String)
    var matchSigningIdentifier: String { get }
    var matchDesignatedRequirement: String { get }
    var matchPath: String?
    var matchDomains: [AnyObject]?
}
AnyObject, NSCoding, NSCopying, NSSecureCoding
To
class NEAppRule : NSObject, NSSecureCoding, NSCopying {
    init(signingIdentifier signingIdentifier: String)
    init(signingIdentifier signingIdentifier: String, designatedRequirement designatedRequirement: String)
    var matchSigningIdentifier: String { get }
    var matchDesignatedRequirement: String { get }
    var matchPath: String?
    var matchDomains: [AnyObject]?
}
NSCopying, NSSecureCoding

Modified NEDNSSettings
DeclarationProtocols
From
class NEDNSSettings : NSObject, NSSecureCoding, NSCoding, NSCopying {
    init(servers servers: [String])
    var servers: [String] { get }
    var searchDomains: [String]?
    var domainName: String?
    var matchDomains: [String]?
    var matchDomainsNoSearch: Bool
}
AnyObject, NSCoding, NSCopying, NSSecureCoding
To
class NEDNSSettings : NSObject, NSSecureCoding, NSCopying {
    init(servers servers: [String])
    var servers: [String] { get }
    var searchDomains: [String]?
    var domainName: String?
    var matchDomains: [String]?
    var matchDomainsNoSearch: Bool
}
NSCopying, NSSecureCoding

DeclarationProtocols
From
class NEEvaluateConnectionRule : NSObject, NSSecureCoding, NSCoding, NSCopying {
    init(matchDomains domains: [String], andAction action: NEEvaluateConnectionRuleAction)
    var action: NEEvaluateConnectionRuleAction { get }
    var matchDomains: [String] { get }
    var useDNSServers: [String]?
    @NSCopying var probeURL: NSURL?
}
AnyObject, NSCoding, NSCopying, NSSecureCoding
To
class NEEvaluateConnectionRule : NSObject, NSSecureCoding, NSCopying {
    init(matchDomains domains: [String], andAction action: NEEvaluateConnectionRuleAction)
    var action: NEEvaluateConnectionRuleAction { get }
    var matchDomains: [String] { get }
    var useDNSServers: [String]?
    @NSCopying var probeURL: NSURL?
}
NSCopying, NSSecureCoding

Protocols
FromEquatable, Hashable, RawRepresentable
To--

DeclarationProtocols
From
class NEFilterBrowserFlow : NEFilterFlow {
    var request: NSURLRequest { get }
    var response: NSURLResponse? { get }
    var parentURL: NSURL? { get }
}
AnyObject, NSCoding, NSCopying, NSSecureCoding
To
class NEFilterBrowserFlow : NEFilterFlow, NSSecureCoding, NSCopying {
    var request: NSURLRequest { get }
    var response: NSURLResponse? { get }
    var parentURL: NSURL? { get }
}
NSCopying, NSSecureCoding

Protocols
FromAnyObject
To--

DeclarationProtocols
From
class NEFilterControlVerdict : NEFilterNewFlowVerdict {
    class func allowVerdictWithUpdateRules(_ updateRules: Bool) -> NEFilterControlVerdict
    class func dropVerdictWithUpdateRules(_ updateRules: Bool) -> NEFilterControlVerdict
    class func updateRules() -> NEFilterControlVerdict
}
AnyObject, NSCoding, NSCopying, NSSecureCoding
To
class NEFilterControlVerdict : NEFilterNewFlowVerdict, NSSecureCoding, NSCopying {
    class func allowVerdictWithUpdateRules(_ updateRules: Bool) -> NEFilterControlVerdict
    class func dropVerdictWithUpdateRules(_ updateRules: Bool) -> NEFilterControlVerdict
    class func updateRules() -> NEFilterControlVerdict
}
NSCopying, NSSecureCoding

Protocols
FromAnyObject
To--

DeclarationProtocols
From
class NEFilterDataVerdict : NEFilterVerdict {
    class func allowVerdict() -> NEFilterDataVerdict
    class func dropVerdict() -> NEFilterDataVerdict
    class func remediateVerdictWithRemediationURLMapKey(_ remediationURLMapKey: String?, remediationButtonTextMapKey remediationButtonTextMapKey: String?) -> NEFilterDataVerdict
     init(passBytes passBytes: Int, peekBytes peekBytes: Int)
    class func dataVerdictWithPassBytes(_ passBytes: Int, peekBytes peekBytes: Int) -> NEFilterDataVerdict
    class func needRulesVerdict() -> NEFilterDataVerdict
}
AnyObject, NSCoding, NSCopying, NSSecureCoding
To
class NEFilterDataVerdict : NEFilterVerdict, NSSecureCoding, NSCopying {
    class func allowVerdict() -> NEFilterDataVerdict
    class func dropVerdict() -> NEFilterDataVerdict
    class func remediateVerdictWithRemediationURLMapKey(_ remediationURLMapKey: String?, remediationButtonTextMapKey remediationButtonTextMapKey: String?) -> NEFilterDataVerdict
     init(passBytes passBytes: Int, peekBytes peekBytes: Int)
    class func dataVerdictWithPassBytes(_ passBytes: Int, peekBytes peekBytes: Int) -> NEFilterDataVerdict
    class func needRulesVerdict() -> NEFilterDataVerdict
}
NSCopying, NSSecureCoding

Modified NEFilterFlow
DeclarationProtocols
From
class NEFilterFlow : NSObject, NSSecureCoding, NSCoding, NSCopying {
    var URL: NSURL? { get }
}
AnyObject, NSCoding, NSCopying, NSSecureCoding
To
class NEFilterFlow : NSObject, NSSecureCoding, NSCopying {
    var URL: NSURL? { get }
}
NSCopying, NSSecureCoding

Protocols
FromAnyObject
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

DeclarationProtocols
From
class NEFilterNewFlowVerdict : NEFilterVerdict {
    class func needRulesVerdict() -> NEFilterNewFlowVerdict
    class func allowVerdict() -> NEFilterNewFlowVerdict
    class func dropVerdict() -> NEFilterNewFlowVerdict
    class func remediateVerdictWithRemediationURLMapKey(_ remediationURLMapKey: String, remediationButtonTextMapKey remediationButtonTextMapKey: String) -> NEFilterNewFlowVerdict
    class func URLAppendStringVerdictWithMapKey(_ urlAppendMapKey: String) -> NEFilterNewFlowVerdict
    class func filterDataVerdictWithFilterInbound(_ filterInbound: Bool, peekInboundBytes peekInboundBytes: Int, filterOutbound filterOutbound: Bool, peekOutboundBytes peekOutboundBytes: Int) -> NEFilterNewFlowVerdict
}
AnyObject, NSCoding, NSCopying, NSSecureCoding
To
class NEFilterNewFlowVerdict : NEFilterVerdict, NSSecureCoding, NSCopying {
    class func needRulesVerdict() -> NEFilterNewFlowVerdict
    class func allowVerdict() -> NEFilterNewFlowVerdict
    class func dropVerdict() -> NEFilterNewFlowVerdict
    class func remediateVerdictWithRemediationURLMapKey(_ remediationURLMapKey: String, remediationButtonTextMapKey remediationButtonTextMapKey: String) -> NEFilterNewFlowVerdict
    class func URLAppendStringVerdictWithMapKey(_ urlAppendMapKey: String) -> NEFilterNewFlowVerdict
    class func filterDataVerdictWithFilterInbound(_ filterInbound: Bool, peekInboundBytes peekInboundBytes: Int, filterOutbound filterOutbound: Bool, peekOutboundBytes peekOutboundBytes: Int) -> NEFilterNewFlowVerdict
}
NSCopying, NSSecureCoding

Protocols
FromAnyObject
To--

DeclarationProtocols
From
class NEFilterProviderConfiguration : NSObject, NSSecureCoding, NSCoding, NSCopying {
    var filterBrowsers: Bool
    var filterSockets: Bool
    var vendorConfiguration: [String : AnyObject]?
    var serverAddress: String?
    var username: String?
    var organization: String?
    @NSCopying var passwordReference: NSData?
    @NSCopying var identityReference: NSData?
}
AnyObject, NSCoding, NSCopying, NSSecureCoding
To
class NEFilterProviderConfiguration : NSObject, NSSecureCoding, NSCopying {
    var filterBrowsers: Bool
    var filterSockets: Bool
    var vendorConfiguration: [String : AnyObject]?
    var serverAddress: String?
    var username: String?
    var organization: String?
    @NSCopying var passwordReference: NSData?
    @NSCopying var identityReference: NSData?
}
NSCopying, NSSecureCoding

DeclarationProtocols
From
class NEFilterRemediationVerdict : NEFilterVerdict {
    class func allowVerdict() -> NEFilterRemediationVerdict
    class func dropVerdict() -> NEFilterRemediationVerdict
    class func needRulesVerdict() -> NEFilterRemediationVerdict
}
AnyObject, NSCoding, NSCopying, NSSecureCoding
To
class NEFilterRemediationVerdict : NEFilterVerdict, NSSecureCoding, NSCopying {
    class func allowVerdict() -> NEFilterRemediationVerdict
    class func dropVerdict() -> NEFilterRemediationVerdict
    class func needRulesVerdict() -> NEFilterRemediationVerdict
}
NSCopying, NSSecureCoding

DeclarationProtocols
From
class NEFilterSocketFlow : NEFilterFlow {
    var remoteEndpoint: NWEndpoint { get }
    var localEndpoint: NWEndpoint { get }
    var socketFamily: Int32
    var socketType: Int32
    var socketProtocol: Int32
}
AnyObject, NSCoding, NSCopying, NSSecureCoding
To
class NEFilterSocketFlow : NEFilterFlow, NSSecureCoding, NSCopying {
    var remoteEndpoint: NWEndpoint { get }
    var localEndpoint: NWEndpoint { get }
    var socketFamily: Int32
    var socketType: Int32
    var socketProtocol: Int32
}
NSCopying, NSSecureCoding

DeclarationProtocols
From
class NEFilterVerdict : NSObject, NSSecureCoding, NSCoding, NSCopying {
}
AnyObject, NSCoding, NSCopying, NSSecureCoding
To
class NEFilterVerdict : NSObject, NSSecureCoding, NSCopying {
}
NSCopying, NSSecureCoding

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromAnyObject
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromAnyObject
To--

Modified NEIPv4Route
DeclarationProtocols
From
class NEIPv4Route : NSObject, NSSecureCoding, NSCoding, NSCopying {
    init(destinationAddress address: String, subnetMask subnetMask: String)
    var destinationAddress: String { get }
    var destinationSubnetMask: String { get }
    var gatewayAddress: String?
    class func defaultRoute() -> NEIPv4Route
}
AnyObject, NSCoding, NSCopying, NSSecureCoding
To
class NEIPv4Route : NSObject, NSSecureCoding, NSCopying {
    init(destinationAddress address: String, subnetMask subnetMask: String)
    var destinationAddress: String { get }
    var destinationSubnetMask: String { get }
    var gatewayAddress: String?
    class func defaultRoute() -> NEIPv4Route
}
NSCopying, NSSecureCoding

DeclarationProtocols
From
class NEIPv4Settings : NSObject, NSSecureCoding, NSCoding, NSCopying {
    init(addresses addresses: [String], subnetMasks subnetMasks: [String])
    var addresses: [String] { get }
    var subnetMasks: [String] { get }
    var includedRoutes: [NEIPv4Route]?
    var excludedRoutes: [NEIPv4Route]?
}
AnyObject, NSCoding, NSCopying, NSSecureCoding
To
class NEIPv4Settings : NSObject, NSSecureCoding, NSCopying {
    init(addresses addresses: [String], subnetMasks subnetMasks: [String])
    var addresses: [String] { get }
    var subnetMasks: [String] { get }
    var includedRoutes: [NEIPv4Route]?
    var excludedRoutes: [NEIPv4Route]?
}
NSCopying, NSSecureCoding

Modified NEIPv6Route
DeclarationProtocols
From
class NEIPv6Route : NSObject, NSSecureCoding, NSCoding, NSCopying {
    init(destinationAddress address: String, networkPrefixLength networkPrefixLength: NSNumber)
    var destinationAddress: String { get }
    var destinationNetworkPrefixLength: NSNumber { get }
    var gatewayAddress: String?
    class func defaultRoute() -> NEIPv6Route
}
AnyObject, NSCoding, NSCopying, NSSecureCoding
To
class NEIPv6Route : NSObject, NSSecureCoding, NSCopying {
    init(destinationAddress address: String, networkPrefixLength networkPrefixLength: NSNumber)
    var destinationAddress: String { get }
    var destinationNetworkPrefixLength: NSNumber { get }
    var gatewayAddress: String?
    class func defaultRoute() -> NEIPv6Route
}
NSCopying, NSSecureCoding

DeclarationProtocols
From
class NEIPv6Settings : NSObject, NSSecureCoding, NSCoding, NSCopying {
    init(addresses addresses: [String], networkPrefixLengths networkPrefixLengths: [NSNumber])
    var addresses: [String] { get }
    var networkPrefixLengths: [NSNumber] { get }
    var includedRoutes: [NEIPv6Route]?
    var excludedRoutes: [NEIPv6Route]?
}
AnyObject, NSCoding, NSCopying, NSSecureCoding
To
class NEIPv6Settings : NSObject, NSSecureCoding, NSCopying {
    init(addresses addresses: [String], networkPrefixLengths networkPrefixLengths: [NSNumber])
    var addresses: [String] { get }
    var networkPrefixLengths: [NSNumber] { get }
    var includedRoutes: [NEIPv6Route]?
    var excludedRoutes: [NEIPv6Route]?
}
NSCopying, NSSecureCoding

DeclarationProtocols
From
class NEOnDemandRule : NSObject, NSSecureCoding, NSCoding, NSCopying {
    var action: NEOnDemandRuleAction { get }
    var DNSSearchDomainMatch: [String]?
    var DNSServerAddressMatch: [String]?
    var interfaceTypeMatch: NEOnDemandRuleInterfaceType
    var SSIDMatch: [String]?
    @NSCopying var probeURL: NSURL?
}
AnyObject, NSCoding, NSCopying, NSSecureCoding
To
class NEOnDemandRule : NSObject, NSSecureCoding, NSCopying {
    var action: NEOnDemandRuleAction { get }
    var DNSSearchDomainMatch: [String]?
    var DNSServerAddressMatch: [String]?
    var interfaceTypeMatch: NEOnDemandRuleInterfaceType
    var SSIDMatch: [String]?
    @NSCopying var probeURL: NSURL?
}
NSCopying, NSSecureCoding

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Modified NEProvider
Protocols
FromAnyObject
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Modified NEProxyServer
DeclarationProtocols
From
class NEProxyServer : NSObject, NSSecureCoding, NSCoding, NSCopying {
    init(address address: String, port port: Int)
    var address: String { get }
    var port: Int { get }
    var authenticationRequired: Bool
    var username: String?
    var password: String?
}
AnyObject, NSCoding, NSCopying, NSSecureCoding
To
class NEProxyServer : NSObject, NSSecureCoding, NSCopying {
    init(address address: String, port port: Int)
    var address: String { get }
    var port: Int { get }
    var authenticationRequired: Bool
    var username: String?
    var password: String?
}
NSCopying, NSSecureCoding

DeclarationProtocols
From
class NEProxySettings : NSObject, NSSecureCoding, NSCoding, NSCopying {
    var autoProxyConfigurationEnabled: Bool
    @NSCopying var proxyAutoConfigurationURL: NSURL?
    var proxyAutoConfigurationJavaScript: String?
    var HTTPEnabled: Bool
    @NSCopying var HTTPServer: NEProxyServer?
    var HTTPSEnabled: Bool
    @NSCopying var HTTPSServer: NEProxyServer?
    var excludeSimpleHostnames: Bool
    var exceptionList: [String]?
    var matchDomains: [String]?
}
AnyObject, NSCoding, NSCopying, NSSecureCoding
To
class NEProxySettings : NSObject, NSSecureCoding, NSCopying {
    var autoProxyConfigurationEnabled: Bool
    @NSCopying var proxyAutoConfigurationURL: NSURL?
    var proxyAutoConfigurationJavaScript: String?
    var HTTPEnabled: Bool
    @NSCopying var HTTPServer: NEProxyServer?
    var HTTPSEnabled: Bool
    @NSCopying var HTTPSServer: NEProxyServer?
    var excludeSimpleHostnames: Bool
    var exceptionList: [String]?
    var matchDomains: [String]?
}
NSCopying, NSSecureCoding

DeclarationProtocols
From
class NETunnelNetworkSettings : NSObject, NSSecureCoding, NSCoding, NSCopying {
    init(tunnelRemoteAddress address: String)
    var tunnelRemoteAddress: String { get }
    @NSCopying var DNSSettings: NEDNSSettings?
    @NSCopying var proxySettings: NEProxySettings?
}
AnyObject, NSCoding, NSCopying, NSSecureCoding
To
class NETunnelNetworkSettings : NSObject, NSSecureCoding, NSCopying {
    init(tunnelRemoteAddress address: String)
    var tunnelRemoteAddress: String { get }
    @NSCopying var DNSSettings: NEDNSSettings?
    @NSCopying var proxySettings: NEProxySettings?
}
NSCopying, NSSecureCoding

Protocols
FromAnyObject
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

DeclarationProtocols
From
class NEVPNIKEv2SecurityAssociationParameters : NSObject, NSSecureCoding, NSCoding, NSCopying {
    var encryptionAlgorithm: NEVPNIKEv2EncryptionAlgorithm
    var integrityAlgorithm: NEVPNIKEv2IntegrityAlgorithm
    var diffieHellmanGroup: NEVPNIKEv2DiffieHellmanGroup
    var lifetimeMinutes: Int32
}
AnyObject, NSCoding, NSCopying, NSSecureCoding
To
class NEVPNIKEv2SecurityAssociationParameters : NSObject, NSSecureCoding, NSCopying {
    var encryptionAlgorithm: NEVPNIKEv2EncryptionAlgorithm
    var integrityAlgorithm: NEVPNIKEv2IntegrityAlgorithm
    var diffieHellmanGroup: NEVPNIKEv2DiffieHellmanGroup
    var lifetimeMinutes: Int32
}
NSCopying, NSSecureCoding

Modified NEVPNManager
Protocols
FromAnyObject
To--

Modified NEVPNProtocol
DeclarationProtocols
From
class NEVPNProtocol : NSObject, NSCopying, NSSecureCoding, NSCoding {
    var serverAddress: String?
    var username: String?
    @NSCopying var passwordReference: NSData?
    @NSCopying var identityReference: NSData?
    @NSCopying var identityData: NSData?
    var identityDataPassword: String?
    var disconnectOnSleep: Bool
    @NSCopying var proxySettings: NEProxySettings?
}
AnyObject, NSCoding, NSCopying, NSSecureCoding
To
class NEVPNProtocol : NSObject, NSCopying, NSSecureCoding {
    var serverAddress: String?
    var username: String?
    @NSCopying var passwordReference: NSData?
    @NSCopying var identityReference: NSData?
    @NSCopying var identityData: NSData?
    var identityDataPassword: String?
    var disconnectOnSleep: Bool
    @NSCopying var proxySettings: NEProxySettings?
}
NSCopying, NSSecureCoding

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromAnyObject
To--

Modified NWEndpoint
Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Modified NWPath
Protocols
FromAnyObject
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromAnyObject
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromAnyObject
To--

Modified NWUDPSession
Protocols
FromAnyObject
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--