Companion

object Companion

Properties

Link copied to clipboard

An unauthenticated caller: the default tenant, no scope, no subject.

Link copied to clipboard
const val APP: String

The standard attribute naming the caller's app.

Link copied to clipboard

The tenant of a principal that has none.

Link copied to clipboard

The subject of a service identity: SERVICE_SUBJECT_PREFIX and the service's name.

Functions

Link copied to clipboard
fun of(tenantId: String = DEFAULT_TENANT, scope: Scope = Scope.NONE, subject: String? = null, crossScope: Boolean = false, attributes: Map<String, List<String>> = emptyMap(), service: Boolean = false): Caller

A Caller of the given fields; parameters added later come last, with a default.

Link copied to clipboard
fun ofService(name: String, tenantId: String = DEFAULT_TENANT): Caller

The service identity of the service named name in tenantId: what a service calls and reads another service as for a commit of its own (a saga's call, a subscription handler's read of a peer), and what that peer resolves from the service's name on its internal port.