Package io.anyline.nfc.Reader
Class AbstractReader
-
- All Implemented Interfaces:
public abstract class AbstractReader
-
-
Constructor Summary
Constructors Constructor Description AbstractReader()
-
Method Summary
Modifier and Type Method Description void
incrementSequenceCounter()
void
setProgressListener(WeakReference<Object> progressListener)
void
setMaxBlockSize(int maxBlockSize)
void
setApduWithLe(boolean value)
void
setMutualAuthLe(byte mutualAuthLe)
abstract Array<byte>
encrypt(Array<byte> key, Array<byte> payload)
abstract Array<byte>
decrypt(Array<byte> key, Array<byte> payload)
abstract Array<byte>
calculateMac(Array<byte> macKey, Array<byte> message, boolean addPad)
abstract Array<byte>
calculateMac(Array<byte> macKey, Array<byte> message)
abstract Array<byte>
calculateSequenceCounter(Array<byte> payload)
abstract Array<byte>
padData(Array<byte> data)
abstract Array<byte>
calculateEncryptionKey(Array<byte> seed)
return encryption key Array<byte>
getBacChallenge()
Gets the 8 bytes BAC challenge from passport boolean
initSession()
boolean
initSession(int mutualAuthTimeout)
Step D. void
setBacInfo(BacInfo bacInfo)
Array<byte>
readFile(Array<byte> file)
-
-
Method Detail
-
incrementSequenceCounter
void incrementSequenceCounter()
-
setProgressListener
void setProgressListener(WeakReference<Object> progressListener)
-
setMaxBlockSize
void setMaxBlockSize(int maxBlockSize)
-
setApduWithLe
void setApduWithLe(boolean value)
-
setMutualAuthLe
void setMutualAuthLe(byte mutualAuthLe)
-
calculateMac
abstract Array<byte> calculateMac(Array<byte> macKey, Array<byte> message, boolean addPad)
-
calculateMac
abstract Array<byte> calculateMac(Array<byte> macKey, Array<byte> message)
-
calculateSequenceCounter
abstract Array<byte> calculateSequenceCounter(Array<byte> payload)
-
calculateEncryptionKey
abstract Array<byte> calculateEncryptionKey(Array<byte> seed)
return encryption key
-
getBacChallenge
Array<byte> getBacChallenge()
Gets the 8 bytes BAC challenge from passport
-
initSession
boolean initSession()
-
initSession
boolean initSession(int mutualAuthTimeout)
Step D.3
- Returns:
boolean
-
setBacInfo
void setBacInfo(BacInfo bacInfo)
-
-
-
-