withPrincipal

fun Seam.withPrincipal(principal: Principal?): Seam

Returns a Seam that reports principal via PrincipalAttested. When principal is null the receiver is returned unchanged — an unauthenticated connection carries no attestation and is never wrapped.