parseFromDerHexString

fun parseFromDerHexString(derEncoded: String, limit: Long? = null): Asn1Element(source)

Convenience method to directly parse a HEX-string representation of DER-encoded data. Ignores and strips all whitespace.

Parameters

limit

the maximum allowed total number of encoded DER bytes to consume. Defaults to null to use allow reading the full contents of the string. This limit is enforced before reading or peeking from the underlying source.

Throws

all sorts of errors on invalid input