io.github.binaryfoo.crypto.RecoveredPublicKeyCertificate.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.crypto
import io.github.binaryfoo.DecodedData
/**
* Covers both Issuer and ICC (chip card) cases.
*/
public data class RecoveredPublicKeyCertificate(
val owner: String,
val detail: List,
val exponentLength: String,
val leftKeyPart: String,
var rightKeyPart: String? = null) : PublicKeyCertificate {
public override var exponent: String? = null
public override val modulus: String
get() = leftKeyPart + (rightKeyPart ?: "")
public override val name: String
get() = "${owner} public key"
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy