Package apple.networkextension
Class NEHotspotEAPSettings
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.networkextension.NEHotspotEAPSettings
-
- All Implemented Interfaces:
NSCoding,NSCopying,NSSecureCoding,NSObject
public class NEHotspotEAPSettings extends NSObject implements NSCopying, NSSecureCoding
[@interface] NEHotspotEAPSettings NEHotspotEAPSettings class provides a set of properties that are required to configure a WPA/WPA2 Enterprise or Hotspot 2.0 Wi-Fi networks.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNEHotspotEAPSettings(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean_supportsSecureCoding()This property must return YES on all classes that allow secure coding.static booleanaccessInstanceVariablesDirectly()static NEHotspotEAPSettingsalloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(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.ClassclassForKeyedUnarchiver()java.lang.ObjectcopyWithZone(org.moe.natj.general.ptr.VoidPtr zone)static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()voidencodeWithCoder(NSCoder coder)static longhash_static()NEHotspotEAPSettingsinit()NEHotspotEAPSettingsinitWithCoder(NSCoder coder)NS_DESIGNATED_INITIALIZERstatic NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)booleanisTLSClientCertificateRequired()[@property] isTLSClientCertificateRequired If YES, supports two-factor authentication for EAP-TTLS, PEAP, or EAP-FAST.static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)static java.lang.Objectnew_objc()java.lang.StringouterIdentity()[@property] outerIdentity Identity string to be used in EAP-Response/Identity of the outer phase.java.lang.Stringpassword()[@property] password The password component of the 802.1X authentication credential.longpreferredTLSVersion()[@property] preferredTLSVersion TLS version to use during the TLS handshake.static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)booleansetIdentity(SecIdentityRef identity)setIdentity Setter to configure the EAP peer identity.voidsetOuterIdentity(java.lang.String value)[@property] outerIdentity Identity string to be used in EAP-Response/Identity of the outer phase.voidsetPassword(java.lang.String value)[@property] password The password component of the 802.1X authentication credential.voidsetPreferredTLSVersion(long value)[@property] preferredTLSVersion TLS version to use during the TLS handshake.voidsetSupportedEAPTypes(NSArray<? extends NSNumber> value)[@property] supportedEAPTypes Array of supported EAP Types.voidsetTlsClientCertificateRequired(boolean value)[@property] isTLSClientCertificateRequired If YES, supports two-factor authentication for EAP-TTLS, PEAP, or EAP-FAST.booleansetTrustedServerCertificates(NSArray<?> certificates)setTrustedServerCertificates Setter to configure an array of trusted server certificates used for trust evaluation of the server certificate.voidsetTrustedServerNames(NSArray<java.lang.String> value)[@property] trustedServerNames Array of server certificate common names that will be used to verify server's certificate.voidsetTtlsInnerAuthenticationType(long value)[@property] ttlsInnerAuthentication Specifies the inner authentication used by the TTLS module.voidsetUsername(java.lang.String value)[@property] username A UTF-8 encoded string containing username component of the user authentication credentials.static voidsetVersion_static(long aVersion)static org.moe.natj.objc.Classsuperclass_static()NSArray<? extends NSNumber>supportedEAPTypes()[@property] supportedEAPTypes Array of supported EAP Types.static booleansupportsSecureCoding()NSArray<java.lang.String>trustedServerNames()[@property] trustedServerNames Array of server certificate common names that will be used to verify server's certificate.longttlsInnerAuthenticationType()[@property] ttlsInnerAuthentication Specifies the inner authentication used by the TTLS module.java.lang.Stringusername()[@property] username A UTF-8 encoded string containing username component of the user authentication credentials.static longversion_static()-
Methods inherited from class apple.NSObject
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, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static NEHotspotEAPSettings alloc()
-
allocWithZone
public static java.lang.Object allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
-
copyWithZone
public java.lang.Object copyWithZone(org.moe.natj.general.ptr.VoidPtr zone)
- Specified by:
copyWithZonein interfaceNSCopying
-
debugDescription_static
public static java.lang.String debugDescription_static()
-
description_static
public static java.lang.String description_static()
-
encodeWithCoder
public void encodeWithCoder(NSCoder coder)
- Specified by:
encodeWithCoderin interfaceNSCoding
-
hash_static
public static long hash_static()
-
init
public NEHotspotEAPSettings init()
-
initWithCoder
public NEHotspotEAPSettings initWithCoder(NSCoder coder)
Description copied from interface:NSCodingNS_DESIGNATED_INITIALIZER- Specified by:
initWithCoderin interfaceNSCoding
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
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)
-
isTLSClientCertificateRequired
public boolean isTLSClientCertificateRequired()
[@property] isTLSClientCertificateRequired If YES, supports two-factor authentication for EAP-TTLS, PEAP, or EAP-FAST. If NO, allows for zero-factor authentication for EAP-TLS. The default is YES for EAP-TLS, and NO for other EAP types.
-
keyPathsForValuesAffectingValueForKey
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
-
new_objc
public static java.lang.Object new_objc()
-
outerIdentity
public java.lang.String outerIdentity()
[@property] outerIdentity Identity string to be used in EAP-Response/Identity of the outer phase. This key is only relevant to TTLS, PEAP, and EAP-FAST.
-
password
public java.lang.String password()
[@property] password The password component of the 802.1X authentication credential. Length of this property must be between 1 and 64 characters.
-
preferredTLSVersion
public long preferredTLSVersion()
[@property] preferredTLSVersion TLS version to use during the TLS handshake. Default value is NEHotspotConfigurationEAPTLSVersion_1_2.
-
resolveClassMethod
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
-
resolveInstanceMethod
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
-
setIdentity
public boolean setIdentity(SecIdentityRef identity)
setIdentity Setter to configure the EAP peer identity. The application needs to store this identity in keychain access group "$(TeamIdentifierPrefix)com.apple.networkextensionsharing". The API uses SecItemCopyMatching to obtain persistent reference for this identity from application's keychain and uses that at the time of EAP authentication. This property is mandatory when EAP-TLS is desired or tlsClientCertificateRequired is set to YES.- Parameters:
identity- The identity of the EAP Peer. This is a SecIdentityRef object that contains a SecKeyRef object and an associated SecCertificateRef object.- Returns:
- returns NO if the parameter is not an object of SecIdentityRef type or if the persistent reference is not found in the application's keychain else returns YES.
-
setOuterIdentity
public void setOuterIdentity(java.lang.String value)
[@property] outerIdentity Identity string to be used in EAP-Response/Identity of the outer phase. This key is only relevant to TTLS, PEAP, and EAP-FAST.
-
setPassword
public void setPassword(java.lang.String value)
[@property] password The password component of the 802.1X authentication credential. Length of this property must be between 1 and 64 characters.
-
setPreferredTLSVersion
public void setPreferredTLSVersion(long value)
[@property] preferredTLSVersion TLS version to use during the TLS handshake. Default value is NEHotspotConfigurationEAPTLSVersion_1_2.
-
setSupportedEAPTypes
public void setSupportedEAPTypes(NSArray<? extends NSNumber> value)
[@property] supportedEAPTypes Array of supported EAP Types. Refer to NEHotspotConfigurationEAPType for valid values.
-
setTlsClientCertificateRequired
public void setTlsClientCertificateRequired(boolean value)
[@property] isTLSClientCertificateRequired If YES, supports two-factor authentication for EAP-TTLS, PEAP, or EAP-FAST. If NO, allows for zero-factor authentication for EAP-TLS. The default is YES for EAP-TLS, and NO for other EAP types.
-
setTrustedServerCertificates
public boolean setTrustedServerCertificates(NSArray<?> certificates)
setTrustedServerCertificates Setter to configure an array of trusted server certificates used for trust evaluation of the server certificate.- Parameters:
certificates- Each value in the array is a SecCertificateRef object. Application needs to store the certificates in keychain access group "$(TeamIdentifierPrefix)com.apple.networkextensionsharing". The API uses SecItemCopyMatching to obtain persistent reference for each certificate from application's keychain and uses that at the time os EAP authentication. Number of elements in the array cannot be more than 10.- Returns:
- returns NO if any element in the array is not an object of type SecCertificateRef or if API fails to find persistent reference for each element from the application's keychain else return YES.
-
setTrustedServerNames
public void setTrustedServerNames(NSArray<java.lang.String> value)
[@property] trustedServerNames Array of server certificate common names that will be used to verify server's certificate. The string could have wildcards to specify the name, such as "*.mycompany.net". If a server presents a certificate with DNSName or Common Name that isn't in this list, it won't be trusted.
-
setTtlsInnerAuthenticationType
public void setTtlsInnerAuthenticationType(long value)
[@property] ttlsInnerAuthentication Specifies the inner authentication used by the TTLS module. Possible values are PAP, CHAP, MSCHAP, MSCHAPv2, and EAP. Defaults to EAP.
-
setUsername
public void setUsername(java.lang.String value)
[@property] username A UTF-8 encoded string containing username component of the user authentication credentials. Length of this property must be between 1 and 253 characters.
-
setVersion_static
public static void setVersion_static(long aVersion)
-
superclass_static
public static org.moe.natj.objc.Class superclass_static()
-
supportedEAPTypes
public NSArray<? extends NSNumber> supportedEAPTypes()
[@property] supportedEAPTypes Array of supported EAP Types. Refer to NEHotspotConfigurationEAPType for valid values.
-
supportsSecureCoding
public static boolean supportsSecureCoding()
-
_supportsSecureCoding
public boolean _supportsSecureCoding()
Description copied from interface:NSSecureCodingThis 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:
_supportsSecureCodingin interfaceNSSecureCoding
-
trustedServerNames
public NSArray<java.lang.String> trustedServerNames()
[@property] trustedServerNames Array of server certificate common names that will be used to verify server's certificate. The string could have wildcards to specify the name, such as "*.mycompany.net". If a server presents a certificate with DNSName or Common Name that isn't in this list, it won't be trusted.
-
ttlsInnerAuthenticationType
public long ttlsInnerAuthenticationType()
[@property] ttlsInnerAuthentication Specifies the inner authentication used by the TTLS module. Possible values are PAP, CHAP, MSCHAP, MSCHAPv2, and EAP. Defaults to EAP.
-
username
public java.lang.String username()
[@property] username A UTF-8 encoded string containing username component of the user authentication credentials. Length of this property must be between 1 and 253 characters.
-
version_static
public static long version_static()
-
-