public class T1BlockFactory
extends java.lang.Object
| Constructor and Description |
|---|
T1BlockFactory() |
| Modifier and Type | Method and Description |
|---|---|
static T1Block |
createIBlock(int sourceID,
int destID,
int edcAlg,
int sendSequenceNumber,
boolean moreDataBit,
byte[] data)
createIBlock
creates I-Block according to ISO7816-3
|
static T1Block |
createRBlock(int sourceID,
int destID,
int edcAlg,
int sequenceNumber,
int errInfo)
createRBlock
creates R-Block according to ISO7816-3
|
static T1Block |
createSBlock(int sourceID,
int destID,
int edcAlg,
int statusInfo,
byte[] data)
createSBlock
creates S-Block according to ISO7816-3
|
public static T1Block createIBlock(int sourceID, int destID, int edcAlg, int sendSequenceNumber, boolean moreDataBit, byte[] data) throws T1Exception
sourceID - the sourceID of the frame for the NAD-byte (0-7)destID - the destID of the frame for the NAD-byte (0-7)edcAlg - the used algorithm for calculation of the EDC byte
possible values: T1Block.USE_LDR, T1Block.USE_CRCsendSequenceNumber - the sequence number of the frame
internal used value is (sendSequenceNumber mod 2)moreDataBit - true for chained block (not implemented), false for normal operationdata - application dataT1ExceptionT1Blockpublic static T1Block createRBlock(int sourceID, int destID, int edcAlg, int sequenceNumber, int errInfo) throws T1Exception
sourceID - the sourceID of the frame for the NAD-byte (0-7)destID - the destID of the frame for the NAD-byte (0-7)edcAlg - the used algorithm for calculation of the EDC byte
possible values: EDC_LDR, EDC_CRCsequenceNumber - the sequence number of the related frame
internal used value is (sequenceNumber mod 2)errInfo - indicates the error
possible values: T1Block.ERROR_NONE, T1Block.ERROR_EDC, T1Block.ERROR_OTHERT1ExceptionT1Blockpublic static T1Block createSBlock(int sourceID, int destID, int edcAlg, int statusInfo, byte[] data) throws T1Exception
sourceID - the sourceID of the frame for the NAD-byte (0-7)destID - the destID of the frame for the NAD-byte (0-7)edcAlg - the used algorithm for calculation of the EDC byte
possible values: EDC_LDR, EDC_CRCstatusInfo - indicates the errordata - application dataT1ExceptionT1BlockCopyright © 2025. All rights reserved.