Class THCredentials

  • All Implemented Interfaces:
    NSCoding, NSSecureCoding, NSObject

    public class THCredentials
    extends NSObject
    implements NSSecureCoding
    A class that contains credentials for a Thread network. A Thread network defines parameters that all connected devices use. ``THCredentials`` provides these parameters. API-Since: 15.0
    • Constructor Detail

      • THCredentials

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

      • PSKC

        @Nullable
        public @Nullable NSData PSKC()
        The sixteen byte Thread network pre-shared key for the Commissioner.
      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • activeOperationalDataSet

        @Nullable
        public @Nullable NSData activeOperationalDataSet()
        The essential operational parameters for the Thread network. The framework parses this property, then extracts and sets ``THCredentials/channel``, ``THCredentials/extendedPANID``, ``THCredentials/networkKey``, ``THCredentials/networkName``, ``THCredentials/panID``, and ``THCredentials/PSKC`` when you call ``THClient/storeCredentialsForBorderAgent:activeOperationalDataSet:completion:``.
      • allocWithZone

        public static THCredentials allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • borderAgentID

        @Nullable
        public @Nullable NSData borderAgentID()
        The identifer of an active Thread network Border Agent. This property’s value is the MAC Extended Address, a random identifier that the active Thread network border router generates.
      • 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)
      • channel

        public byte channel()
        The Thread network radio channel.
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • creationDate

        @Nullable
        public @Nullable NSDate creationDate()
        The date and time that the framework stored the credential in the database.
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • extendedPANID

        @Nullable
        public @Nullable NSData extendedPANID()
        The Thread network extended PAN identifier.
      • 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)
      • keyPathsForValuesAffectingValueForKey

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

        @Nullable
        public @Nullable NSDate lastModificationDate()
        The date and time that the framework updated the credential in the database.
      • networkKey

        @Nullable
        public @Nullable NSData networkKey()
        The sixteen byte Thread network key.
      • networkName

        @Nullable
        public @Nullable java.lang.String networkName()
        The Thread network name.
      • panID

        @Nullable
        public @Nullable NSData panID()
        The two byte Thead network PAN identifier.
      • resolveClassMethod

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

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

        public void setChannel​(byte value)
        The Thread network radio channel.
      • 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
      • version_static

        public static long version_static()
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.