Class 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. API-Since: 11.0
    • Constructor Detail

      • NEHotspotEAPSettings

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static NEHotspotEAPSettings 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()
      • copyWithZone

        @NotNull
        public @NotNull java.lang.Object copyWithZone​(@Nullable
                                                      @Nullable org.moe.natj.general.ptr.VoidPtr zone)
        Specified by:
        copyWithZone in interface NSCopying
      • 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)
      • 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. API-Since: 11.0
      • keyPathsForValuesAffectingValueForKey

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

        @NotNull
        public @NotNull 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. API-Since: 11.0
      • password

        @NotNull
        public @NotNull 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. API-Since: 11.0
      • preferredTLSVersion

        public long preferredTLSVersion()
        [@property] preferredTLSVersion TLS version to use during the TLS handshake. Default value is NEHotspotConfigurationEAPTLSVersion_1_2. API-Since: 11.0
      • 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​(@NotNull
                                   @NotNull 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. API-Since: 11.0
      • setOuterIdentity

        public void setOuterIdentity​(@NotNull
                                     @NotNull 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. API-Since: 11.0
      • setPassword

        public void setPassword​(@NotNull
                                @NotNull 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. API-Since: 11.0
      • setPreferredTLSVersion

        public void setPreferredTLSVersion​(long value)
        [@property] preferredTLSVersion TLS version to use during the TLS handshake. Default value is NEHotspotConfigurationEAPTLSVersion_1_2. API-Since: 11.0
      • setSupportedEAPTypes

        public void setSupportedEAPTypes​(@NotNull
                                         @NotNull NSArray<? extends NSNumber> value)
        [@property] supportedEAPTypes Array of supported EAP Types. Refer to NEHotspotConfigurationEAPType for valid values. API-Since: 11.0
      • 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. API-Since: 11.0
      • setTrustedServerCertificates

        public boolean setTrustedServerCertificates​(@NotNull
                                                    @NotNull 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. API-Since: 11.0
      • setTrustedServerNames

        public void setTrustedServerNames​(@NotNull
                                          @NotNull 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. API-Since: 11.0
      • 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. API-Since: 11.0
      • setUsername

        public void setUsername​(@NotNull
                                @NotNull 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. API-Since: 11.0
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

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

        @NotNull
        public @NotNull NSArray<? extends NSNumber> supportedEAPTypes()
        [@property] supportedEAPTypes Array of supported EAP Types. Refer to NEHotspotConfigurationEAPType for valid values. API-Since: 11.0
      • supportsSecureCoding

        public static boolean supportsSecureCoding()
      • _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
      • trustedServerNames

        @NotNull
        public @NotNull 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. API-Since: 11.0
      • 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. API-Since: 11.0
      • username

        @NotNull
        public @NotNull 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. API-Since: 11.0
      • version_static

        public static long version_static()
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.