Class TKSmartCardATR

  • All Implemented Interfaces:
    NSObject

    public class TKSmartCardATR
    extends NSObject
    Represents parsed SmartCard ATR. Provides routine for parsing byte stream or NSData with binary ATR and accessors to parsed ATR parts.
    • Constructor Detail

      • TKSmartCardATR

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

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

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

        @NotNull
        public @NotNull NSData bytes()
        Full ATR as string of bytes
      • 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()
      • hash_static

        public static long hash_static()
      • historicalBytes

        @NotNull
        public @NotNull NSData historicalBytes()
        Just historical bytes of ATR, without Tck and interface bytes.
      • historicalRecords

        @Nullable
        public @Nullable NSArray<? extends TKCompactTLVRecord> historicalRecords()
        An array of TKCompactTLVRecord instances with TLV records parsed from historical bytes. If historical bytes are not structured using Compact TLV encoding, nil is returned. [@note] In case that ATR historical bytes begin with 0x00, the last three bytes (status indicator) are automatically appended into the returned records as if historical bytes would begin with 0x80 and 0x8 record is present in historical bytes.
      • initWithBytes

        public TKSmartCardATR initWithBytes​(@NotNull
                                            @NotNull NSData bytes)
        Parses ATR from binary data block
        Parameters:
        bytes - Data containing full valid ATR
        Returns:
        Parsed ATR instance, or nil when #bytes do not contain valid ATR.
      • initWithSource

        public TKSmartCardATR initWithSource​(@NotNull
                                             @NotNull TKSmartCardATR.Block_initWithSource source)
        Parses ATR from stream.
        Parameters:
        source - Provides one byte of ATR from the stream or -1 in case of an error
        Returns:
        Parsed ATR instance, or nil when #source method failed or an invalid ATR is detected
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • interfaceGroupAtIndex

        @Nullable
        public @Nullable TKSmartCardATRInterfaceGroup interfaceGroupAtIndex​(long index)
        Retrieves interface group with specified index.
        Parameters:
        index - Index of the requested interface group. Indexing conforms to ISO7816-3, i.e. starts from 1.
        Returns:
        Interface group with given index, or nil of no such group was present.
      • interfaceGroupForProtocol

        @Nullable
        public @Nullable TKSmartCardATRInterfaceGroup interfaceGroupForProtocol​(long protocol)
        Retrieves interface group belonging to specified protocol.
        Parameters:
        protocol - Protocol number for which the interface group is requested.
      • 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)
      • protocols

        @NotNull
        public @NotNull NSArray<? extends NSNumber> protocols()
        Array of NSNumber of protocols indicated in ATR, in the correct order (i.e. the default protocol comes first), duplicates sorted out.
      • resolveClassMethod

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

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

        public static void setVersion_static​(long aVersion)
      • superclass_static

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

        public static long version_static()
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.