Functions

Link copied to clipboard

Tries to decode src into an X509Certificate, by parsing the bytes directly as ASN.1 structure, or by decoding from Base64, or by decoding to a String, stripping PEM headers (-----BEGIN CERTIFICATE-----) and then decoding from Base64.

Link copied to clipboard

Convenience method, directly DER-decoding a byte array to T

Link copied to clipboard

Exception-free version of decodeFromDer

Link copied to clipboard
open fun decodeFromDerSafe(src: ByteArray): KmmResult<X509Certificate>

Safe version of decodeFromDer, wrapping the result into a KmmResult

Link copied to clipboard
open override fun decodeFromTlv(src: Asn1Sequence): X509Certificate

Processes an A, parsing it into an instance of T

Link copied to clipboard

Exception-free version of decodeFromTlv

Link copied to clipboard

Safe version of decodeFromTlv, wrapping the result into a KmmResult