Nokia Extensions for JSR-257

com.nokia.nfc.nxp.mfstd
Class MFKey

java.lang.Object
  extended by com.nokia.nfc.nxp.mfstd.MFKey
Direct Known Subclasses:
MFKey.KeyA, MFKey.KeyB

public abstract class MFKey
extends java.lang.Object

A class representing a Mifare Standard Card authentication key. There are two types of authentication keys: A and B. Those are represented by the subclasses MFKey.KeyA and MFKey.KeyB.


Nested Class Summary
static class MFKey.KeyA
          A class representing a Mifare Standard Card authentication key type A.
static class MFKey.KeyB
          A class representing a Mifare Standard Card authentication key type B.
 
Field Summary
static int KEY_LENGTH
          Defines the authentication key length in bytes.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Compares the given object to this MFKey object.
 byte[] getKey()
          Returns the authentication key as a byte array.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY_LENGTH

public static final int KEY_LENGTH
Defines the authentication key length in bytes.

See Also:
Constant Field Values
Method Detail

getKey

public byte[] getKey()
Returns the authentication key as a byte array.

Returns:
a byte array containing the authentication key.

equals

public boolean equals(java.lang.Object obj)
Compares the given object to this MFKey object. Two MFKey objects are considered equal if they are of the same type and have the exact same authentication key.

Overrides:
equals in class java.lang.Object
Returns:
true if the objects are equal and false if not.
See Also:
Object.equals(java.lang.Object)

Nokia Extensions for JSR-257

Copyright � 2010 Nokia Corporation. All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.