From 0316d4a24ff4b1ebf832f3ca9847771580eeac2f Mon Sep 17 00:00:00 2001 From: Nick Pelly Date: Tue, 18 Jan 2011 18:52:37 -0800 Subject: [PATCH] Change signature of MifareClassic.authenticate*() to throw IOException. Update API for this and the previous commit. Change-Id: I19275a5d00081bd0f00afea59a2b673344a32954 --- api/current.xml | 57 ++++++++++++++----- .../android/nfc/technology/MifareClassic.java | 4 +- 2 files changed, 46 insertions(+), 15 deletions(-) diff --git a/api/current.xml b/api/current.xml index 5883381806858..6631b85c4c38d 100644 --- a/api/current.xml +++ b/api/current.xml @@ -101070,6 +101070,33 @@ > + + + + + + + + @@ -101184,6 +101211,19 @@ visibility="public" > + + + + - - - - + + + + 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. *

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);