Package apple.corenfc

Class NFCISO7816APDU

  • All Implemented Interfaces:
    NSCopying, NSObject

    public class NFCISO7816APDU
    extends NSObject
    implements NSCopying
    NFCISO7816APDU ISO7816 Application Data Unit (APDU). API-Since: 13.0
    • Constructor Detail

      • NFCISO7816APDU

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static NFCISO7816APDU 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
      • data

        @Nullable
        public @Nullable NSData data()
        [@property] data Data field; nil if data field is absent API-Since: 13.0
      • debugDescription_static

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

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

        public long expectedResponseLength()
        [@property] expectedResponseLength Expected response length (Le). -1 means no response data field is expected. API-Since: 13.0
      • hash_static

        public static long hash_static()
      • initWithData

        public NFCISO7816APDU initWithData​(@NotNull
                                           @NotNull NSData data)
        initWithData:
        Parameters:
        data - Data buffer containing the full APDU.
        Returns:
        nil if input data does not contain a valid APDU. API-Since: 13.0
      • initWithInstructionClassInstructionCodeP1ParameterP2ParameterDataExpectedResponseLength

        public NFCISO7816APDU initWithInstructionClassInstructionCodeP1ParameterP2ParameterDataExpectedResponseLength​(byte instructionClass,
                                                                                                                      byte instructionCode,
                                                                                                                      byte p1Parameter,
                                                                                                                      byte p2Parameter,
                                                                                                                      @NotNull
                                                                                                                      @NotNull NSData data,
                                                                                                                      long expectedResponseLength)
        initWithInstructionClass:instructionCode:p1Parameter:p2Parameter:data:expectedResponseLength: Generates an ISO7816 APDU object. The Lc value is generated base on the size of the data object; possible value ranges from 1 to 65535 inclusively. Use @link -initWithData: @link/ in cases where a finer control on the APDU format is required. API-Since: 13.0
        Parameters:
        instructionClass - Instruction class (CLA) byte
        instructionCode - Instruction code (INS) byte
        p1Parameter - P1 parameter byte
        p2Parameter - P2 parameter byte
        data - Data to transmit. Value of Lc field is set according to the data size.
        expectedResponseLength - Response data length (Le) in bytes. Valid range is from 1 to 65536 inclusively; -1 means no response data field is expected. Use 256 if you want to send '00' as the short Le field assuming the data field is less than 256 bytes. Use 65536 if you want to send '0000' as the extended Le field.
      • instanceMethodSignatureForSelector

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

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

        public byte instructionClass()
        [@property] instructionClass Class (CLA) byte. API-Since: 13.0
      • instructionCode

        public byte instructionCode()
        [@property] instructionCode Instruction (INS) byte. API-Since: 13.0
      • 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)
      • p1Parameter

        public byte p1Parameter()
        [@property] p1Parameter P1 parameter. API-Since: 13.0
      • p2Parameter

        public byte p2Parameter()
        [@property] p2Parameter P2 parameter. API-Since: 13.0
      • 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.