public class NEVPNProtocol extends NSObject implements NSCopying, NSSecureCoding
The NEVPNProtocol class declares the programmatic interface of an object that manages the protocol-specific portion of a VPN configuration.
NEVPNProtocol is an abstract base class from which other protocol-specific classes are derived.
Instances of this class are thread safe.
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
NEVPNProtocol(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
_supportsSecureCoding()
This property must return YES on all classes that allow secure coding.
|
static boolean |
accessInstanceVariablesDirectly() |
static NEVPNProtocol |
alloc() |
static NEVPNProtocol |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
java.lang.Object |
copyWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
boolean |
disconnectOnSleep()
[@property] disconnectOnSleep
|
void |
encodeWithCoder(NSCoder coder) |
boolean |
enforceRoutes()
[@property] enforceRoutes
|
boolean |
excludeLocalNetworks()
[@property] excludeLocalNetworks
|
static long |
hash_static() |
NSData |
identityData()
[@property] identityData
|
java.lang.String |
identityDataPassword()
[@property] identityDataPassword
|
NSData |
identityReference()
[@property] identityReference
|
boolean |
includeAllNetworks()
[@property] includeAllNetworks
|
NEVPNProtocol |
init() |
NEVPNProtocol |
initWithCoder(NSCoder coder)
NS_DESIGNATED_INITIALIZER
|
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
static NEVPNProtocol |
new_objc() |
NSData |
passwordReference()
[@property] passwordReference
|
NEProxySettings |
proxySettings()
[@property] proxySettings
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
java.lang.String |
serverAddress()
[@property] serverAddress
|
void |
setDisconnectOnSleep(boolean value)
[@property] disconnectOnSleep
|
void |
setEnforceRoutes(boolean value)
[@property] enforceRoutes
|
void |
setExcludeLocalNetworks(boolean value)
[@property] excludeLocalNetworks
|
void |
setIdentityData(NSData value)
[@property] identityData
|
void |
setIdentityDataPassword(java.lang.String value)
[@property] identityDataPassword
|
void |
setIdentityReference(NSData value)
[@property] identityReference
|
void |
setIncludeAllNetworks(boolean value)
[@property] includeAllNetworks
|
void |
setPasswordReference(NSData value)
[@property] passwordReference
|
void |
setProxySettings(NEProxySettings value)
[@property] proxySettings
|
void |
setServerAddress(java.lang.String value)
[@property] serverAddress
|
void |
setUsername(java.lang.String value)
[@property] username
|
static void |
setVersion_static(long aVersion) |
static org.moe.natj.objc.Class |
superclass_static() |
static boolean |
supportsSecureCoding() |
java.lang.String |
username()
[@property] username
|
static long |
version_static() |
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public static NEVPNProtocol alloc()
public static NEVPNProtocol allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static long hash_static()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static NEVPNProtocol new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static boolean supportsSecureCoding()
public static long version_static()
public java.lang.Object copyWithZone(org.moe.natj.general.ptr.VoidPtr zone)
copyWithZone in interface NSCopyingpublic boolean disconnectOnSleep()
If YES, the VPN connection will be disconnected when the device goes to sleep. The default is NO.
public void encodeWithCoder(NSCoder coder)
encodeWithCoder in interface NSCodingpublic NSData identityData()
The PKCS12 data for the VPN authentication identity. The value is a NSData in PKCS12 format.
public java.lang.String identityDataPassword()
The password to be used to decrypt the PKCS12 identity data.
public NSData 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.
public NEVPNProtocol init()
public NEVPNProtocol initWithCoder(NSCoder coder)
NSCodinginitWithCoder in interface NSCodingpublic NSData passwordReference()
The password component of the VPN authentication credential. The value is a persistent reference to a keychain item with the kSecClassGenericPassword class.
public NEProxySettings proxySettings()
An NEProxySettings object containing the proxy settings to use for connections routed through the tunnel.
public java.lang.String serverAddress()
The VPN server. Depending on the protocol, may be an IP address, host name, or URL.
public void setDisconnectOnSleep(boolean value)
If YES, the VPN connection will be disconnected when the device goes to sleep. The default is NO.
public void setIdentityData(NSData value)
The PKCS12 data for the VPN authentication identity. The value is a NSData in PKCS12 format.
public void setIdentityDataPassword(java.lang.String value)
The password to be used to decrypt the PKCS12 identity data.
public void setIdentityReference(NSData value)
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.
public void setPasswordReference(NSData value)
The password component of the VPN authentication credential. The value is a persistent reference to a keychain item with the kSecClassGenericPassword class.
public void setProxySettings(NEProxySettings value)
An NEProxySettings object containing the proxy settings to use for connections routed through the tunnel.
public void setServerAddress(java.lang.String value)
The VPN server. Depending on the protocol, may be an IP address, host name, or URL.
public void setUsername(java.lang.String value)
The username component of the VPN authentication credential.
public boolean _supportsSecureCoding()
NSSecureCoding_supportsSecureCoding in interface NSSecureCodingpublic java.lang.String username()
The username component of the VPN authentication credential.
public boolean includeAllNetworks()
If YES, all traffic will be sent over the tunnel, and all traffic will be dropped if the tunnel is down. The default is NO.
public void setIncludeAllNetworks(boolean value)
If YES, all traffic will be sent over the tunnel, and all traffic will be dropped if the tunnel is down. The default is NO.
public boolean enforceRoutes()
If YES, route rules for this tunnel will take precendence over any locally-defined routes. The default is NO.
public boolean 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.
public void setEnforceRoutes(boolean value)
If YES, route rules for this tunnel will take precendence over any locally-defined routes. The default is NO.
public void setExcludeLocalNetworks(boolean value)
If YES, all traffic destined for local networks will be excluded from the tunnel. The default is NO on macOS and YES on iOS.