summaryrefslogtreecommitdiffstats
path: root/core/java/android/nfc
diff options
context:
space:
mode:
authorNick Pelly <npelly@google.com>2011-01-18 18:52:37 -0800
committerNick Pelly <npelly@google.com>2011-01-18 18:52:37 -0800
commit0316d4a24ff4b1ebf832f3ca9847771580eeac2f (patch)
tree5a0f24e07c5fe43b430c1e0ef74337b3c36d8282 /core/java/android/nfc
parentbf34061bb4af12aa9efaab653ae413f2bce4a240 (diff)
downloadframeworks_base-0316d4a24ff4b1ebf832f3ca9847771580eeac2f.zip
frameworks_base-0316d4a24ff4b1ebf832f3ca9847771580eeac2f.tar.gz
frameworks_base-0316d4a24ff4b1ebf832f3ca9847771580eeac2f.tar.bz2
Change signature of MifareClassic.authenticate*() to throw IOException.
Update API for this and the previous commit. Change-Id: I19275a5d00081bd0f00afea59a2b673344a32954
Diffstat (limited to 'core/java/android/nfc')
-rw-r--r--core/java/android/nfc/technology/MifareClassic.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/nfc/technology/MifareClassic.java b/core/java/android/nfc/technology/MifareClassic.java
index ac87919..a2abaa3 100644
--- a/core/java/android/nfc/technology/MifareClassic.java
+++ b/core/java/android/nfc/technology/MifareClassic.java
@@ -249,7 +249,7 @@ public final class MifareClassic extends BasicTagTechnology {
* Authenticate the entire sector that the given block resides in.
* <p>This requires a that the tag be connected.
*/
- public boolean authenticateBlock(int block, byte[] key, boolean keyA) throws TagLostException {
+ public boolean authenticateBlock(int block, byte[] key, boolean keyA) throws IOException {
checkConnected();
byte[] cmd = new byte[12];
@@ -287,7 +287,7 @@ public final class MifareClassic extends BasicTagTechnology {
* Authenticate for a given sector.
* <p>This requires a that the tag be connected.
*/
- public boolean authenticateSector(int sector, byte[] key, boolean keyA) throws TagLostException {
+ public boolean authenticateSector(int sector, byte[] key, boolean keyA) throws IOException {
checkConnected();
byte addr = (byte) ((firstBlockInSector(sector)) & 0xff);