CadClientInterface (Java Card 3 Platform, APDU I/O Library)
Date: 2009-11-05

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.sun.javacard.apduio
Interface CadClientInterface

All Known Implementing Classes:
  CadPCSCClient, CadT0Client, CadT1Client

    public interface CadClientInterface

An interface describing a client connection to a card.

Method Summary
`void` | `exchangeApdu(Apdu apdu)` Exchanges com.sun.javacard.apduio.Apdu with a card.
`void` | `powerDown()` Powerdown a card or simulator and then disconnect
`void` | `powerDown(boolean disconnect)` Send powerdown to a card
`byte[]` | `powerUp()` Send powerup to a card or a simulator

Method Detail

### exchangeApdu

    void exchangeApdu(Apdu apdu)
                      throws java.io.IOException,
                             CadTransportException

  Exchanges com.sun.javacard.apduio.Apdu with a card.

  Parameters:
    `apdu` - A pair of C-APDU and R-APDU
  Throws:
    `java.io.IOException` - Communication error
    `CadTransportException` - Protocol error

### powerDown

    void powerDown(boolean disconnect)
                   throws java.io.IOException,
                          CadTransportException

  Send powerdown to a card

  Parameters:
    `disconnect` - This parameter is applicable to card simulators only. true = disconnect from the simulator false = powedown, but leave the connection open
  Throws:
    `java.io.IOException` - Communication error
    `CadTransportException` - Protocol error

### powerDown

    void powerDown()
                   throws java.io.IOException,
                          CadTransportException

  Powerdown a card or simulator and then disconnect

  Throws:
    `java.io.IOException` - Communication error
    `CadTransportException` - Protocol error

### powerUp

    byte[] powerUp()
                   throws java.io.IOException,
                          CadTransportException

  Send powerup to a card or a simulator

  Returns:
    ATR bytes
  Throws:
    `java.io.IOException` - Communication error
    `CadTransportException` - Protocol error

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright (c) 2009 Sun Microsystems, Inc. All rights reserved.