Asn1Decodable
Interface providing convenience methods to decode from ASN.1. Especially useful when companion objects of classes implementing Asn1Encodable implement it.
Inheritors
Functions
Link copied to clipboard
fun <A : Asn1Element, T : Asn1Encodable<A>> Asn1Decodable<A, T>.decodeFromDer(src: ByteArray, assertTag: Asn1Element.Tag? = null): T
Convenience method, directly DER-decoding a byte array to T
fun <A : Asn1Element, T : Asn1Encodable<A>> Asn1Decodable<A, T>.decodeFromDer(src: Source<*>, assertTag: Asn1Element.Tag? = null): T
Link copied to clipboard
fun <A : Asn1Element, T : Asn1Encodable<A>> Asn1Decodable<A, T>.decodeFromDerOrNull(src: ByteArray, assertTag: Asn1Element.Tag? = null): T?
Exception-free version of decodeFromDer
Link copied to clipboard
Link copied to clipboard
fun <A : Asn1Element, T : Asn1Encodable<A>> Asn1Decodable<A, T>.decodeFromTlvOrNull(src: A, assertTag: Asn1Element.Tag? = null): T?
Exception-free version of Asn1Decodable.decodeFromTlv
Link copied to clipboard
Specify assertTag for verifying implicitly tagged elements' tags (and better not override this function).