Class NERelayManager

  • All Implemented Interfaces:
    NSObject

    public class NERelayManager
    extends NSObject
    [@interface] NERelayManager The NERelayManager class declares the programmatic interface for an object that manages relay configurations. NERelayManager declares methods and properties for configuring and controlling relay settings on the system. Instances of this class are thread safe. API-Since: 17.0
    • Constructor Detail

      • NERelayManager

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static NERelayManager 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()
      • excludedDomains

        @Nullable
        public @Nullable NSArray<java.lang.String> excludedDomains()
        [@property] excludedDomains An array of strings containing domain names. If the destination host name of a connection shares a suffix with one of these strings then the relay will not be used.
      • 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)
      • isEnabled

        public boolean isEnabled()
        [@property] enabled Toggles the enabled status of the relay.
      • 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)
      • loadAllManagersFromPreferencesWithCompletionHandler

        public static void loadAllManagersFromPreferencesWithCompletionHandler​(@NotNull
                                                                               @NotNull NERelayManager.Block_loadAllManagersFromPreferencesWithCompletionHandler completionHandler)
        loadAllManagersFromPreferencesWithCompletionHandler: This function asynchronously reads all of the NERelay configurations created by the calling app that have previously been saved to disk and returns them as NERelayManager objects.
        Parameters:
        completionHandler - A block that takes an array NERelayManager objects. The array passed to the block may be empty if no NERelay configurations were successfully read from the disk. The NSError passed to this block will be nil if the load operation succeeded, non-nil otherwise.
      • loadFromPreferencesWithCompletionHandler

        public void loadFromPreferencesWithCompletionHandler​(@NotNull
                                                             @NotNull NERelayManager.Block_loadFromPreferencesWithCompletionHandler completionHandler)
        loadFromPreferencesWithCompletionHandler: This function loads the current relay configuration from the caller's relay preferences.
        Parameters:
        completionHandler - A block that will be called when the load operation is completed. The NSError passed to this block will be nil if the load operation succeeded, non-nil otherwise.
      • localizedDescription

        @Nullable
        public @Nullable java.lang.String localizedDescription()
        [@property] localizedDescription A string containing a description of the relay.
      • matchDomains

        @Nullable
        public @Nullable NSArray<java.lang.String> matchDomains()
        [@property] matchDomains An array of strings containing domain names. If this property is non-nil, the relay will only be used to access hosts within the specified domains. If the property is nil, the relay will be used for all domains.
      • onDemandRules

        @Nullable
        public @Nullable NSArray<? extends NEOnDemandRule> onDemandRules()
        [@property] onDemandRules An array of NEOnDemandRule objects. If nil, the associated relay will always apply. If non-nil, the array describes the networks on which the relay should be used or not.
      • relays

        @Nullable
        public @Nullable NSArray<? extends NERelay> relays()
        [@property] relays An array of relay configurations describing one or more relay hops.
      • removeFromPreferencesWithCompletionHandler

        public void removeFromPreferencesWithCompletionHandler​(@NotNull
                                                               @NotNull NERelayManager.Block_removeFromPreferencesWithCompletionHandler completionHandler)
        removeFromPreferencesWithCompletionHandler: This function removes the relay configuration from the caller's relay preferences. If the relay is enabled, the relay becomes disabled.
        Parameters:
        completionHandler - A block that will be called when the remove operation is completed. The NSError passed to this block will be nil if the remove operation succeeded, non-nil otherwise.
      • resolveClassMethod

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

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

        public void saveToPreferencesWithCompletionHandler​(@NotNull
                                                           @NotNull NERelayManager.Block_saveToPreferencesWithCompletionHandler completionHandler)
        saveToPreferencesWithCompletionHandler: This function saves the relay configuration in the caller's relay preferences. If the relay are enabled, they will become active.
        Parameters:
        completionHandler - A block that will be called when the save operation is completed. The NSError passed to this block will be nil if the save operation succeeded, non-nil otherwise.
      • setEnabled

        public void setEnabled​(boolean value)
        [@property] enabled Toggles the enabled status of the relay.
      • setExcludedDomains

        public void setExcludedDomains​(@Nullable
                                       @Nullable NSArray<java.lang.String> value)
        [@property] excludedDomains An array of strings containing domain names. If the destination host name of a connection shares a suffix with one of these strings then the relay will not be used.
      • setLocalizedDescription

        public void setLocalizedDescription​(@Nullable
                                            @Nullable java.lang.String value)
        [@property] localizedDescription A string containing a description of the relay.
      • setMatchDomains

        public void setMatchDomains​(@Nullable
                                    @Nullable NSArray<java.lang.String> value)
        [@property] matchDomains An array of strings containing domain names. If this property is non-nil, the relay will only be used to access hosts within the specified domains. If the property is nil, the relay will be used for all domains.
      • setOnDemandRules

        public void setOnDemandRules​(@Nullable
                                     @Nullable NSArray<? extends NEOnDemandRule> value)
        [@property] onDemandRules An array of NEOnDemandRule objects. If nil, the associated relay will always apply. If non-nil, the array describes the networks on which the relay should be used or not.
      • setRelays

        public void setRelays​(@Nullable
                              @Nullable NSArray<? extends NERelay> value)
        [@property] relays An array of relay configurations describing one or more relay hops.
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • sharedManager

        @NotNull
        public static @NotNull NERelayManager sharedManager()
        sharedManager
        Returns:
        The singleton NERelayManager object for the calling process.
      • superclass_static

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

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.
      • version_static

        public static long version_static()