read

fun read(file: ByteArray, roots: List<TrustAnchor> = emptyList()): MasterListRead

Reads file, a master list as CMS SignedData in DER (or BER), and checks its signature.

Return

MasterListRead.Read with the list, or MasterListRead.Unreadable. Never throws for bad data.

Parameters

roots

roots to check the list's signer against; with none, that check is CheckOutcome.NotRun with MasterListCheckReason.NO_ROOTS_SUPPLIED.