1414import java .util .List ;
1515import java .util .Map ;
1616import java .util .Set ;
17+ import org .calypsonet .terminal .calypso .GetDataTag ;
18+ import org .calypsonet .terminal .calypso .SelectFileControl ;
19+ import org .calypsonet .terminal .calypso .WriteAccessLevel ;
20+ import org .calypsonet .terminal .calypso .transaction .CardTransactionManager ;
21+ import org .calypsonet .terminal .calypso .transaction .SvAction ;
22+ import org .calypsonet .terminal .calypso .transaction .SvOperation ;
1723import org .calypsonet .terminal .reader .selection .spi .SmartCard ;
1824
1925/**
@@ -174,6 +180,8 @@ public interface CalypsoCard extends SmartCard {
174180 * <p>The returned array contains the software issuer ID and the discretionary data.
175181 *
176182 * @return An empty array if the traceability information is not available.
183+ * @see CalypsoCardSelection#prepareGetData(GetDataTag)
184+ * @see CardTransactionManager#prepareGetData(GetDataTag)
177185 * @since 1.1.0
178186 */
179187 byte [] getTraceabilityInformation ();
@@ -182,6 +190,10 @@ public interface CalypsoCard extends SmartCard {
182190 * Returns the metadata of the current DF.
183191 *
184192 * @return Null if is not set.
193+ * @see CalypsoCardSelection#prepareSelectFile(short)
194+ * @see CalypsoCardSelection#prepareSelectFile(SelectFileControl)
195+ * @see CardTransactionManager#prepareSelectFile(short)
196+ * @see CardTransactionManager#prepareSelectFile(SelectFileControl)
185197 * @since 1.0.0
186198 */
187199 DirectoryHeader getDirectoryHeader ();
@@ -192,6 +204,9 @@ public interface CalypsoCard extends SmartCard {
192204 * <p>Note that if a secure session is actually running, then the object contains all session
193205 * modifications, which can be canceled if the secure session fails.
194206 *
207+ * <p>The file structure of the card image is updated as a result of file read and write
208+ * operations.
209+ *
195210 * @param sfi The SFI to search.
196211 * @return Null if the requested EF is not found or if the SFI is equal to 0.
197212 * @since 1.0.0
@@ -204,6 +219,9 @@ public interface CalypsoCard extends SmartCard {
204219 * <p>Note that if a secure session is actually running, then the object contains all session
205220 * modifications, which can be canceled if the secure session fails.
206221 *
222+ * <p>The file structure of the card image is updated as a result of file read and write
223+ * operations.
224+ *
207225 * @param lid The LID to search.
208226 * @return Null if the requested EF is not found.
209227 * @since 1.0.0
@@ -230,6 +248,9 @@ public interface CalypsoCard extends SmartCard {
230248 * <p>Note that if a secure session is actually running, then the set contains all session
231249 * modifications, which can be canceled if the secure session fails.
232250 *
251+ * <p>The file structure of the card image is updated as a result of file read and write
252+ * operations.
253+ *
233254 * @return A not null reference (it may be empty if no one EF is set).
234255 * @since 1.1.0
235256 */
@@ -240,6 +261,8 @@ public interface CalypsoCard extends SmartCard {
240261 *
241262 * @return True if the card has been ratified.
242263 * @throws IllegalStateException If no session has been opened.
264+ * @see CalypsoCardSelection#preparePreOpenSecureSession(WriteAccessLevel)
265+ * @see CardTransactionManager#prepareOpenSecureSession(WriteAccessLevel)
243266 * @since 1.0.0
244267 */
245268 boolean isDfRatified ();
@@ -254,6 +277,8 @@ public interface CalypsoCard extends SmartCard {
254277 *
255278 * @return A positive value.
256279 * @throws IllegalStateException If no session has been opened.
280+ * @see CalypsoCardSelection#preparePreOpenSecureSession(WriteAccessLevel)
281+ * @see CardTransactionManager#prepareOpenSecureSession(WriteAccessLevel)
257282 * @since 1.2.0
258283 */
259284 int getTransactionCounter ();
@@ -307,6 +332,8 @@ public interface CalypsoCard extends SmartCard {
307332 *
308333 * @return True if the PIN status is blocked
309334 * @throws IllegalStateException If the PIN has not been checked.
335+ * @see CardTransactionManager#prepareCheckPinStatus()
336+ * @see CardTransactionManager#prepareVerifyPin(byte[])
310337 * @since 1.0.0
311338 */
312339 boolean isPinBlocked ();
@@ -316,6 +343,8 @@ public interface CalypsoCard extends SmartCard {
316343 *
317344 * @return The number of remaining attempts.
318345 * @throws IllegalStateException If the PIN has not been checked.
346+ * @see CardTransactionManager#prepareCheckPinStatus()
347+ * @see CardTransactionManager#prepareVerifyPin(byte[])
319348 * @since 1.0.0
320349 */
321350 int getPinAttemptRemaining ();
@@ -335,6 +364,11 @@ public interface CalypsoCard extends SmartCard {
335364 *
336365 * @return An int
337366 * @throws IllegalStateException If no SV Get command has been executed.
367+ * @see CardTransactionManager#prepareSvGet(SvOperation, SvAction)
368+ * @see CardTransactionManager#prepareSvDebit(int)
369+ * @see CardTransactionManager#prepareSvDebit(int, byte[], byte[])
370+ * @see CardTransactionManager#prepareSvReload(int)
371+ * @see CardTransactionManager#prepareSvReload(int, byte[], byte[], byte[])
338372 * @since 1.0.0
339373 */
340374 int getSvBalance ();
@@ -344,6 +378,11 @@ public interface CalypsoCard extends SmartCard {
344378 *
345379 * @return An int
346380 * @throws IllegalStateException If no SV Get command has been executed.
381+ * @see CardTransactionManager#prepareSvGet(SvOperation, SvAction)
382+ * @see CardTransactionManager#prepareSvDebit(int)
383+ * @see CardTransactionManager#prepareSvDebit(int, byte[], byte[])
384+ * @see CardTransactionManager#prepareSvReload(int)
385+ * @see CardTransactionManager#prepareSvReload(int, byte[], byte[], byte[])
347386 * @since 1.0.0
348387 */
349388 int getSvLastTNum ();
@@ -352,6 +391,11 @@ public interface CalypsoCard extends SmartCard {
352391 * Gets a reference to the last {@link SvLoadLogRecord}
353392 *
354393 * @return A last SV load log record object or null if not available.
394+ * @see CardTransactionManager#prepareSvGet(SvOperation, SvAction)
395+ * @see CardTransactionManager#prepareSvDebit(int)
396+ * @see CardTransactionManager#prepareSvDebit(int, byte[], byte[])
397+ * @see CardTransactionManager#prepareSvReload(int)
398+ * @see CardTransactionManager#prepareSvReload(int, byte[], byte[], byte[])
355399 * @since 1.0.0
356400 */
357401 SvLoadLogRecord getSvLoadLogRecord ();
@@ -360,6 +404,11 @@ public interface CalypsoCard extends SmartCard {
360404 * Gets a reference to the last {@link SvDebitLogRecord}
361405 *
362406 * @return A last SV debit log record object or null if not available.
407+ * @see CardTransactionManager#prepareSvGet(SvOperation, SvAction)
408+ * @see CardTransactionManager#prepareSvDebit(int)
409+ * @see CardTransactionManager#prepareSvDebit(int, byte[], byte[])
410+ * @see CardTransactionManager#prepareSvReload(int)
411+ * @see CardTransactionManager#prepareSvReload(int, byte[], byte[], byte[])
363412 * @since 1.0.0
364413 */
365414 SvDebitLogRecord getSvDebitLogLastRecord ();
@@ -368,6 +417,11 @@ public interface CalypsoCard extends SmartCard {
368417 * Gets list of references to the {@link SvDebitLogRecord} read from the card.
369418 *
370419 * @return An empty list if no log records are available.
420+ * @see CardTransactionManager#prepareSvGet(SvOperation, SvAction)
421+ * @see CardTransactionManager#prepareSvDebit(int)
422+ * @see CardTransactionManager#prepareSvDebit(int, byte[], byte[])
423+ * @see CardTransactionManager#prepareSvReload(int)
424+ * @see CardTransactionManager#prepareSvReload(int, byte[], byte[], byte[])
371425 * @since 1.0.0
372426 */
373427 List <SvDebitLogRecord > getSvDebitLogAllRecords ();
0 commit comments