io.github.binaryfoo.decoders.apdu.GetChallengeAPDUDecoder.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of emv-bertlv Show documentation
Show all versions of emv-bertlv Show documentation
Some decoders for the data used in EMV credit card transactions.
package io.github.binaryfoo.decoders.apdu
import io.github.binaryfoo.DecodedData
import io.github.binaryfoo.decoders.DecodeSession
class GetChallengeAPDUDecoder : CommandAPDUDecoder {
override fun getCommand(): APDUCommand {
return APDUCommand.GetChallenge
}
override fun decode(input: String, startIndexInBytes: Int, session: DecodeSession): DecodedData {
return DecodedData(null, "C-APDU: Get Challenge", "", startIndexInBytes, startIndexInBytes + 5)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy