InvocationOrigin - corda

corda / net.corda.core.context / InvocationOrigin

# InvocationOrigin

`sealed class InvocationOrigin`

Represents the source of an action such as a flow start, an RPC, a shell command etc.

### Types

#### Peer | Origin was a message sent by a Peer. `data class Peer : InvocationOrigin`
#### RPC | Origin was an RPC call. `data class RPC : InvocationOrigin`
#### Scheduled | Origin was a scheduled activity. `data class Scheduled : InvocationOrigin`
#### Service | Origin was a Corda Service. `data class Service : InvocationOrigin`
#### Shell | Origin was the Shell. `object Shell : InvocationOrigin`

### Functions

#### principal | Returns the Principal for a given Actor. `abstract fun principal(): Principal`