io.github.binaryfoo.tlv.PrimitiveBerTlv.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.tlv
import kotlin.collections.listOf
/**
* The V is just some bytes.
*/
class PrimitiveBerTlv(tag: Tag, private val value: ByteArray) : BerTlv(tag) {
override fun getValue(): ByteArray = value
override fun findTlv(tag: Tag): BerTlv? {
return null
}
override fun findTlvs(tag: Tag): List {
return listOf()
}
override fun getChildren(): List {
return listOf()
}
override fun toString(): String = "$tag: ${ISOUtil.hexString(value)}"
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy