Class NERelay

  • All Implemented Interfaces:
    NSCoding, NSCopying, NSSecureCoding, NSObject

    public class NERelay
    extends NSObject
    implements NSCopying, NSSecureCoding
    [@interface] NERelay The NERelay class declares the programmatic interface of an object that manages the details of a relay's configuration, such as authentication and URL details. Instances of this class are thread safe. API-Since: 17.0
    • Constructor Detail

      • NERelay

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

      • HTTP2RelayURL

        @Nullable
        public @Nullable NSURL HTTP2RelayURL()
        [@property] HTTP2RelayURL The URL of the relay accessible over HTTP/2.
      • HTTP3RelayURL

        @Nullable
        public @Nullable NSURL HTTP3RelayURL()
        [@property] HTTP3RelayURL The URL of the relay accessible over HTTP/3.
      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • additionalHTTPHeaderFields

        @NotNull
        public @NotNull NSDictionary<java.lang.String,​java.lang.String> additionalHTTPHeaderFields()
        [@property] additionalHTTPHeaderFields Additional HTTP header field names and values to be added to all relay requests.
      • alloc

        public static NERelay alloc()
      • allocWithZone

        public static NERelay 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()
      • dnsOverHTTPSURL

        @Nullable
        public @Nullable NSURL dnsOverHTTPSURL()
        [@property] dnsOverHTTPSURL The URL of a DNS-over-HTTPS (DoH) resolver accessible via the relay.
      • hash_static

        public static long hash_static()
      • identityData

        @Nullable
        public @Nullable NSData identityData()
        [@property] identityData The PKCS12 data for the relay client authentication. The value is a NSData in PKCS12 format.
      • identityDataPassword

        @Nullable
        public @Nullable java.lang.String identityDataPassword()
        [@property] identityDataPassword The password to be used to decrypt the PKCS12 identity data.
      • 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)
      • new_objc

        public static NERelay new_objc()
      • rawPublicKeys

        @Nullable
        public @Nullable NSArray<? extends NSData> rawPublicKeys()
        [@property] rawPublicKeys TLS 1.3 raw public keys to use to authenticate the relay servers.
      • resolveClassMethod

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

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

        public void setAdditionalHTTPHeaderFields​(@NotNull
                                                  @NotNull NSDictionary<java.lang.String,​java.lang.String> value)
        [@property] additionalHTTPHeaderFields Additional HTTP header field names and values to be added to all relay requests.
      • setDnsOverHTTPSURL

        public void setDnsOverHTTPSURL​(@Nullable
                                       @Nullable NSURL value)
        [@property] dnsOverHTTPSURL The URL of a DNS-over-HTTPS (DoH) resolver accessible via the relay.
      • setHTTP2RelayURL

        public void setHTTP2RelayURL​(@Nullable
                                     @Nullable NSURL value)
        [@property] HTTP2RelayURL The URL of the relay accessible over HTTP/2.
      • setHTTP3RelayURL

        public void setHTTP3RelayURL​(@Nullable
                                     @Nullable NSURL value)
        [@property] HTTP3RelayURL The URL of the relay accessible over HTTP/3.
      • setIdentityData

        public void setIdentityData​(@Nullable
                                    @Nullable NSData value)
        [@property] identityData The PKCS12 data for the relay client authentication. The value is a NSData in PKCS12 format.
      • setIdentityDataPassword

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

        public void setRawPublicKeys​(@Nullable
                                     @Nullable NSArray<? extends NSData> value)
        [@property] rawPublicKeys TLS 1.3 raw public keys to use to authenticate the relay servers.
      • setSyntheticDNSAnswerIPv4Prefix

        public void setSyntheticDNSAnswerIPv4Prefix​(@Nullable
                                                    @Nullable java.lang.String value)
        [@property] syntheticDNSAnswerIPv4Prefix An IPv4 address prefix (such as "192.0.2.0/24") that will be used to synthesize DNS answers for apps that use `getaddrinfo()` to resolve domains included in `matchDomains`
      • setSyntheticDNSAnswerIPv6Prefix

        public void setSyntheticDNSAnswerIPv6Prefix​(@Nullable
                                                    @Nullable java.lang.String value)
        [@property] syntheticDNSAnswerIPv6Prefix An IPv6 address prefix (such as "2001:DB8::/32") that will be used to synthesize DNS answers for apps that use `getaddrinfo()` to resolve domains included in `matchDomains`
      • 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()
      • _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
      • syntheticDNSAnswerIPv4Prefix

        @Nullable
        public @Nullable java.lang.String syntheticDNSAnswerIPv4Prefix()
        [@property] syntheticDNSAnswerIPv4Prefix An IPv4 address prefix (such as "192.0.2.0/24") that will be used to synthesize DNS answers for apps that use `getaddrinfo()` to resolve domains included in `matchDomains`
      • syntheticDNSAnswerIPv6Prefix

        @Nullable
        public @Nullable java.lang.String syntheticDNSAnswerIPv6Prefix()
        [@property] syntheticDNSAnswerIPv6Prefix An IPv6 address prefix (such as "2001:DB8::/32") that will be used to synthesize DNS answers for apps that use `getaddrinfo()` to resolve domains included in `matchDomains`
      • useStoredAccessor

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

        public static long version_static()