クラス
javax.smartcardio.CardExceptionの使用
パッケージ | 説明 |
---|---|
javax.smartcardio |
Java™スマート・カード入出力API
|
-
javax.smartcardioでのCardExceptionの使用
javax.smartcardioのCardExceptionのサブクラス 修飾子と型 クラス 説明 class
CardNotPresentException
アプリケーションがカードを持たない端末と接続しようとしたときにスローされる例外です。CardExceptionを投げるjavax.smartcardioのメソッド 修飾子と型 メソッド 説明 abstract void
Card. beginExclusive()
このカードへの排他的なアクセスを要求します。abstract void
CardChannel. close()
このCardChannelをクローズします。abstract Card
CardTerminal. connect(String protocol)
カードへの接続を確立します。abstract void
Card. disconnect(boolean reset)
このカードとの接続を切断します。abstract void
Card. endExclusive()
以前にbeginExclusive
を使用して確立された排他的なアクセスを解除します。abstract boolean
CardTerminal. isCardPresent()
この端末にカードが存在するかどうかを返します。List<CardTerminal>
CardTerminals. list()
使用可能なすべての端末の変更不可能なリストを返します。abstract List<CardTerminal>
CardTerminals. list(CardTerminals.State state)
指定された状態と一致するすべての端末の変更不可能なリストを返します。abstract CardChannel
Card. openLogicalChannel()
カードに新しい論理チャネルをオープンし、それを返します。abstract int
CardChannel. transmit(ByteBuffer command, ByteBuffer response)
コマンドByteBufferに格納されたコマンドAPDUを送信し、応答ByteBufferにレスポンスAPDUを受信します。abstract ResponseAPDU
CardChannel. transmit(CommandAPDU command)
指定されたコマンドAPDUをスマート・カードに送信し、レスポンスAPDUを返します。abstract byte[]
Card. transmitControlCommand(int controlCode, byte[] command)
制御コマンドを端末装置に送信します。abstract boolean
CardTerminal. waitForCardAbsent(long timeout)
カードがこの端末内に存在しなくなるか、タイム・アウトの期限が切れるまで待機します。abstract boolean
CardTerminal. waitForCardPresent(long timeout)
カードがこの端末内に存在するようになるか、タイム・アウトの期限が切れるまで待機します。void
CardTerminals. waitForChange()
このオブジェクトの端末のいずれかで、カードの挿入または取出しを待機します。abstract boolean
CardTerminals. waitForChange(long timeout)
このオブジェクトの端末のいずれかでカードの挿入または取出し、あるいはタイム・アウトの期限切れが発生するのを待機します。