Searched refs:CardException (Results 1 - 14 of 14) sorted by relevance

/openjdk7/jdk/src/share/classes/javax/smartcardio/
H A DCard.java88 * @throws CardException is a new logical channel could not be opened
92 public abstract CardChannel openLogicalChannel() throws CardException;
100 * will receive a CardException.
110 * @throws CardException if exclusive access has already been set
115 public abstract void beginExclusive() throws CardException;
128 * @throws CardException if the operation failed
130 public abstract void endExclusive() throws CardException;
145 * @throws CardException if the card operation failed
150 byte[] command) throws CardException;
160 * @throws CardException i
[all...]
H A DCardException.java36 public class CardException extends Exception { class in inherits:Exception
41 * Constructs a new CardException with the specified detail message.
45 public CardException(String message) { method in class:CardException
50 * Constructs a new CardException with the specified cause and a detail message
55 public CardException(Throwable cause) { method in class:CardException
60 * Constructs a new CardException with the specified detail message and cause.
65 public CardException(String message, Throwable cause) { method in class:CardException
H A DCardTerminal.java80 * @throws CardException if a connection could not be established
87 public abstract Card connect(String protocol) throws CardException;
94 * @throws CardException if the status could not be determined
96 public abstract boolean isCardPresent() throws CardException;
112 * @throws CardException if the operation failed
114 public abstract boolean waitForCardPresent(long timeout) throws CardException;
130 * @throws CardException if the operation failed
132 public abstract boolean waitForCardAbsent(long timeout) throws CardException;
H A DCardChannel.java119 * @throws CardException if the card operation failed
121 public abstract ResponseAPDU transmit(CommandAPDU command) throws CardException;
161 * @throws CardException if the card operation failed
164 throws CardException;
178 * @throws CardException if the card operation failed
182 public abstract void close() throws CardException;
H A DCardTerminals.java69 * @throws CardException if the card operation failed
71 public List<CardTerminal> list() throws CardException {
100 * @throws CardException if the card operation failed
102 public abstract List<CardTerminal> list(State state) throws CardException;
124 } catch (CardException e) {
138 * @throws CardException if the card operation failed
140 public void waitForChange() throws CardException {
182 * @throws CardException if the card operation failed
184 public abstract boolean waitForChange(long timeout) throws CardException;
H A DCardNotPresentException.java36 public class CardNotPresentException extends CardException {
H A DTerminalFactory.java155 public List<CardTerminal> list(State state) throws CardException {
161 public boolean waitForChange(long timeout) throws CardException {
/openjdk7/jdk/src/share/classes/sun/security/smartcardio/
H A DTerminalImpl.java59 public synchronized Card connect(String protocol) throws CardException {
70 throw new CardException("Cannot connect using " + protocol
84 throw new CardException("connect() failed", e);
89 public boolean isCardPresent() throws CardException {
95 throw new CardException("isCardPresent() failed", e);
99 private boolean waitForCard(boolean wantPresent, long timeout) throws CardException {
130 throw new CardException("waitForCard() failed", e);
135 public boolean waitForCardPresent(long timeout) throws CardException {
139 public boolean waitForCardAbsent(long timeout) throws CardException {
H A DCardImpl.java161 public CardChannel openLogicalChannel() throws CardException {
169 throw new CardException
176 throw new CardException("openLogicalChannel() failed", e);
180 void checkExclusive() throws CardException {
186 throw new CardException("Exclusive access established by another Thread");
190 public synchronized void beginExclusive() throws CardException {
194 throw new CardException
202 throw new CardException("beginExclusive() failed", e);
207 public synchronized void endExclusive() throws CardException {
217 throw new CardException("endExclusiv
[all...]
H A DChannelImpl.java86 public ResponseAPDU transmit(CommandAPDU command) throws CardException {
94 public int transmit(ByteBuffer command, ByteBuffer response) throws CardException {
155 private byte[] doTransmit(byte[] command) throws CardException {
165 throw new CardException
186 throw new CardException("Could not obtain response");
219 throw new CardException(e);
223 private static int getSW(byte[] res) throws CardException {
225 throw new CardException("Invalid response length: " + res.length);
232 private static boolean isOK(byte[] res) throws CardException {
264 public void close() throws CardException {
[all...]
H A DPCSCTerminals.java75 public synchronized List<CardTerminal> list(State state) throws CardException {
121 throw new CardException("Unknown state: " + state);
126 throw new CardException("list() failed", e);
154 public synchronized boolean waitForChange(long timeout) throws CardException {
199 throw new CardException("waitForChange() failed", e);
205 long timeout, boolean wantPresent) throws CardException {
262 throw new CardException("waitForCard() failed", e);
/openjdk7/jdk/test/sun/security/smartcardio/
H A DTestExclusive.java69 } catch (CardException e) {
117 } catch (CardException e) {
125 } catch (CardException e) {
H A DTestControl.java56 } catch (CardException e) {
H A DTestConnectAgain.java62 } catch (CardException e) {

Completed in 2030 milliseconds