parse

fun parse(encodedSignedRical: ByteArray, disableSignatureVerification: Boolean = false): SignedRical

Parses a signed RICAL.

This takes a COSE_Sign1 according to ISO/IEC 18013-5 Second Edition Annex F.

This includes checking that the RICAL is signed by the key in the leaf certificate of the X.509 certificate chain. It is not checked that the certificate chain is well-formed.

Return

a SignedRical instance.

Parameters

encodedSignedRical

the encoded CBOR with the COSE_Sign1 described above.

disableSignatureVerification

set to true to disable signature verification.

Throws

if the passed in signed RICAL is malformed

if signature verification failed.