TrustEntryViewer

fun TrustEntryViewer(trustManagerModel: TrustManagerModel, trustEntryId: String, justImported: Boolean, imageLoader: ImageLoader, onViewSignerCertificateChain: (certificateChain: X509CertChain) -> Unit, onViewVicalEntry: (vicalCertNum: Int) -> Unit, onViewRicalEntry: (ricalCertNum: Int) -> Unit)

A Composable that displays the full details of a specific trust entry.

It conditionally renders detailed UI components based on the type of the trust entry (Single X.509 Certificate, VICAL list, or RICAL list). It also provides informational banners for newly imported entries reminding the user to verify the provider.

Parameters

trustManagerModel

The presentation model holding the trust entries.

trustEntryId

The unique identifier of the trust entry to display.

justImported

True if the entry was recently added, triggering an informational banner.

imageLoader

a ImageLoader.

onViewSignerCertificateChain

Callback invoked to view the signer's certificate chain for a VICAL or RICAL.

onViewVicalEntry

Callback invoked to navigate to a specific certificate within a VICAL.

onViewRicalEntry

Callback invoked to navigate to a specific certificate within a RICAL.