Class NEVPNProtocol

    • Constructor Detail

      • NEVPNProtocol

        protected NEVPNProtocol​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static NEVPNProtocol allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • supportsSecureCoding

        public static boolean supportsSecureCoding()
      • version_static

        public static long version_static()
      • copyWithZone

        @NotNull
        public @NotNull java.lang.Object copyWithZone​(@Nullable
                                                      @Nullable org.moe.natj.general.ptr.VoidPtr zone)
        Specified by:
        copyWithZone in interface NSCopying
      • disconnectOnSleep

        public boolean disconnectOnSleep()
        [@property] disconnectOnSleep If YES, the VPN connection will be disconnected when the device goes to sleep. The default is NO. API-Since: 8.0
      • identityData

        @Nullable
        public @Nullable NSData identityData()
        [@property] identityData The PKCS12 data for the VPN authentication identity. The value is a NSData in PKCS12 format. API-Since: 8.0
      • identityDataPassword

        @Nullable
        public @Nullable java.lang.String identityDataPassword()
        [@property] identityDataPassword The password to be used to decrypt the PKCS12 identity data. API-Since: 8.0
      • identityReference

        @Nullable
        public @Nullable NSData identityReference()
        [@property] identityReference The certificate and private key component of the VPN authentication credential. The value is a persistent reference to a keychain item with the kSecClassIdentity class. API-Since: 9.0
      • passwordReference

        @Nullable
        public @Nullable NSData passwordReference()
        [@property] passwordReference The password component of the VPN authentication credential. The value is a persistent reference to a keychain item with the kSecClassGenericPassword class. API-Since: 8.0
      • proxySettings

        @Nullable
        public @Nullable NEProxySettings proxySettings()
        [@property] proxySettings An NEProxySettings object containing the proxy settings to use for connections routed through the tunnel. API-Since: 9.0
      • serverAddress

        @Nullable
        public @Nullable java.lang.String serverAddress()
        [@property] serverAddress The VPN server. Depending on the protocol, may be an IP address, host name, or URL. API-Since: 8.0
      • setDisconnectOnSleep

        public void setDisconnectOnSleep​(boolean value)
        [@property] disconnectOnSleep If YES, the VPN connection will be disconnected when the device goes to sleep. The default is NO. API-Since: 8.0
      • setIdentityData

        public void setIdentityData​(@Nullable
                                    @Nullable NSData value)
        [@property] identityData The PKCS12 data for the VPN authentication identity. The value is a NSData in PKCS12 format. API-Since: 8.0
      • setIdentityDataPassword

        public void setIdentityDataPassword​(@Nullable
                                            @Nullable java.lang.String value)
        [@property] identityDataPassword The password to be used to decrypt the PKCS12 identity data. API-Since: 8.0
      • setIdentityReference

        public void setIdentityReference​(@Nullable
                                         @Nullable NSData value)
        [@property] identityReference The certificate and private key component of the VPN authentication credential. The value is a persistent reference to a keychain item with the kSecClassIdentity class. API-Since: 9.0
      • setPasswordReference

        public void setPasswordReference​(@Nullable
                                         @Nullable NSData value)
        [@property] passwordReference The password component of the VPN authentication credential. The value is a persistent reference to a keychain item with the kSecClassGenericPassword class. API-Since: 8.0
      • setProxySettings

        public void setProxySettings​(@Nullable
                                     @Nullable NEProxySettings value)
        [@property] proxySettings An NEProxySettings object containing the proxy settings to use for connections routed through the tunnel. API-Since: 9.0
      • setServerAddress

        public void setServerAddress​(@Nullable
                                     @Nullable java.lang.String value)
        [@property] serverAddress The VPN server. Depending on the protocol, may be an IP address, host name, or URL. API-Since: 8.0
      • setUsername

        public void setUsername​(@Nullable
                                @Nullable java.lang.String value)
        [@property] username The username component of the VPN authentication credential. API-Since: 8.0
      • _supportsSecureCoding

        public boolean _supportsSecureCoding()
        Description copied from interface: NSSecureCoding
        This property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.
        Specified by:
        _supportsSecureCoding in interface NSSecureCoding
      • username

        @Nullable
        public @Nullable java.lang.String username()
        [@property] username The username component of the VPN authentication credential. API-Since: 8.0
      • includeAllNetworks

        public boolean includeAllNetworks()
        [@property] includeAllNetworks If this property is set to YES then all network traffic is routed through the tunnel, with some exclusions. Several of the exclusions can be controlled with the excludeLocalNetworks, excludeCellularServices, and excludeAPNs properties. See the documentation for those properties. The following traffic is always excluded from the tunnel: - Traffic necessary for connecting and maintaining the device's network connection, such as DHCP. - Traffic necessary for connecting to captive networks. - Certain cellular services traffic that is not routable over the internet and is instead directly routed to the cellular network. See the excludeCellularServices property for more details. - Network communication with a companion device such as a watchOS device. The default value of this property is NO. API-Since: 14.0
      • setIncludeAllNetworks

        public void setIncludeAllNetworks​(boolean value)
        [@property] includeAllNetworks If this property is set to YES then all network traffic is routed through the tunnel, with some exclusions. Several of the exclusions can be controlled with the excludeLocalNetworks, excludeCellularServices, and excludeAPNs properties. See the documentation for those properties. The following traffic is always excluded from the tunnel: - Traffic necessary for connecting and maintaining the device's network connection, such as DHCP. - Traffic necessary for connecting to captive networks. - Certain cellular services traffic that is not routable over the internet and is instead directly routed to the cellular network. See the excludeCellularServices property for more details. - Network communication with a companion device such as a watchOS device. The default value of this property is NO. API-Since: 14.0
      • enforceRoutes

        public boolean enforceRoutes()
        [@property] enforceRoutes If YES, route rules for this tunnel will take precendence over any locally-defined routes. The default is NO. API-Since: 14.2
      • excludeLocalNetworks

        public boolean excludeLocalNetworks()
        [@property] excludeLocalNetworks If YES, all traffic destined for local networks will be excluded from the tunnel. The default is NO on macOS and YES on iOS. API-Since: 14.2
      • setEnforceRoutes

        public void setEnforceRoutes​(boolean value)
        [@property] enforceRoutes If YES, route rules for this tunnel will take precendence over any locally-defined routes. The default is NO. API-Since: 14.2
      • setExcludeLocalNetworks

        public void setExcludeLocalNetworks​(boolean value)
        [@property] excludeLocalNetworks If YES, all traffic destined for local networks will be excluded from the tunnel. The default is NO on macOS and YES on iOS. API-Since: 14.2
      • excludeAPNs

        public boolean excludeAPNs()
        [@property] excludeAPNs If includeAllNetworks is set to YES and this property is set to YES, then network traffic for the Apple Push Notification service (APNs) is excluded from the tunnel. The default value of this property is YES. API-Since: 16.4
      • excludeCellularServices

        public boolean excludeCellularServices()
        [@property] excludeCellularServices If includeAllNetworks is set to YES and this property is set to YES, then internet-routable network traffic for cellular services (VoLTE, Wi-Fi Calling, IMS, MMS, Visual Voicemail, etc.) is excluded from the tunnel. Note that some cellular carriers route cellular services traffic directly to the carrier network, bypassing the internet. Such cellular services traffic is always excluded from the tunnel. The default value of this property is YES. API-Since: 16.4
      • setExcludeAPNs

        public void setExcludeAPNs​(boolean value)
        [@property] excludeAPNs If includeAllNetworks is set to YES and this property is set to YES, then network traffic for the Apple Push Notification service (APNs) is excluded from the tunnel. The default value of this property is YES. API-Since: 16.4
      • setExcludeCellularServices

        public void setExcludeCellularServices​(boolean value)
        [@property] excludeCellularServices If includeAllNetworks is set to YES and this property is set to YES, then internet-routable network traffic for cellular services (VoLTE, Wi-Fi Calling, IMS, MMS, Visual Voicemail, etc.) is excluded from the tunnel. Note that some cellular carriers route cellular services traffic directly to the carrier network, bypassing the internet. Such cellular services traffic is always excluded from the tunnel. The default value of this property is YES. API-Since: 16.4
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.