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 java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

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

        public NSData bytes()
        Full ATR as string of bytes
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(java.lang.Object aTarget,
                                                                                 org.moe.natj.objc.SEL aSelector,
                                                                                 java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

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

        public static 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

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

        public 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​(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​(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

        public 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

        public 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

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • new_objc

        public static java.lang.Object new_objc()
      • protocols

        public 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()