Android.Nfc.Tech.MifareClassic.AuthenticateSectorWithKeyB Method
Authenticate a sector with key B.

Syntax

[Android.Runtime.Register("authenticateSectorWithKeyB", "(I[B)Z", "")]
public bool AuthenticateSectorWithKeyB (int p0, byte[] p1)

Parameters

sectorIndex
index of sector to authenticate, starting from 0
key
6-byte authentication key

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Android.Nfc.TagLostExceptionif the tag leaves the field
Java.IO.IOExceptionif there is an I/O failure, or the operation is canceled

Remarks

Authenticate a sector with key B.

Successful authentication of a sector with key B enables other I/O operations on that sector. The set of operations granted by key B depends on the ACL bits set in that sector. For more information see the MIFARE Classic specification on .

A failed authentication attempt causes an implicit reconnection to the tag, so authentication to other sectors will be lost.

This is an I/O operation and will block until complete. It must not be called from the main application thread. A blocked call will be canceled with Java.IO.IOException if MifareClassic.Close is called from another thread.

Requires the NoType:android/Manifest$permission;Href=../../../../reference/android/Manifest.permission.html#NFC permission.

[Android Documentation]

Requirements

Namespace: Android.Nfc.Tech
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 10