public class InvocationContext
Models the information needed to trace an invocation in Corda. Includes initiating actor, origin, trace information, and optional external trace information to correlate clients' IDs.
Modifier and Type | Class and Description |
---|---|
static class |
InvocationContext.Companion |
Modifier and Type | Field and Description |
---|---|
static InvocationContext.Companion |
Companion |
Constructor and Description |
---|
InvocationContext(InvocationOrigin origin,
Trace trace,
Actor actor,
Trace externalTrace,
Actor impersonatedActor,
java.util.List<? extends java.lang.Object> arguments,
java.lang.String clientId)
Models the information needed to trace an invocation in Corda.
Includes initiating actor, origin, trace information, and optional external trace information to correlate clients' IDs.
|
InvocationContext(InvocationOrigin origin,
Trace trace,
Actor actor,
Trace externalTrace,
Actor impersonatedActor) |
Modifier and Type | Method and Description |
---|---|
InvocationOrigin |
component1()
Origin of the invocation.
|
Trace |
component2()
Corda invocation trace.
|
Actor |
component3()
Acting agent of the invocation,
|
Trace |
component4()
Optional external invocation trace for cross-system logs correlation.
|
Actor |
component5()
Optional impersonated actor,
|
java.util.List<java.lang.Object> |
component6() |
java.lang.String |
component7() |
InvocationContext |
copy(InvocationOrigin origin,
Trace trace,
Actor actor,
Trace externalTrace,
Actor impersonatedActor) |
InvocationContext |
copy(InvocationOrigin origin,
Trace trace,
Actor actor,
Trace externalTrace,
Actor impersonatedActor,
java.util.List<? extends java.lang.Object> arguments,
java.lang.String clientId)
Models the information needed to trace an invocation in Corda.
Includes initiating actor, origin, trace information, and optional external trace information to correlate clients' IDs.
|
boolean |
equals(java.lang.Object p) |
Actor |
getActor()
Acting agent of the invocation,
|
java.util.List<java.lang.Object> |
getArguments() |
java.lang.String |
getClientId() |
Trace |
getExternalTrace()
Optional external invocation trace for cross-system logs correlation.
|
Actor |
getImpersonatedActor()
Optional impersonated actor,
|
InvocationOrigin |
getOrigin()
Origin of the invocation.
|
Trace |
getTrace()
Corda invocation trace.
|
int |
hashCode() |
java.security.Principal |
principal()
Associated security principal.
|
java.lang.String |
toString() |
public static InvocationContext.Companion Companion
public InvocationContext(InvocationOrigin origin, Trace trace, Actor actor, Trace externalTrace, Actor impersonatedActor, java.util.List<? extends java.lang.Object> arguments, java.lang.String clientId)
Models the information needed to trace an invocation in Corda. Includes initiating actor, origin, trace information, and optional external trace information to correlate clients' IDs.
origin
- Origin of the invocation.trace
- Corda invocation trace.actor
- Acting agent of the invocation, used to derive the security principal.externalTrace
- Optional external invocation trace for cross-system logs correlation.impersonatedActor
- Optional impersonated actor, used for logging but not for authorisation.public InvocationContext(InvocationOrigin origin, Trace trace, Actor actor, Trace externalTrace, Actor impersonatedActor)
public java.security.Principal principal()
Associated security principal.
public InvocationContext copy(InvocationOrigin origin, Trace trace, Actor actor, Trace externalTrace, Actor impersonatedActor)
public InvocationOrigin getOrigin()
Origin of the invocation.
public Trace getTrace()
Corda invocation trace.
public Actor getActor()
Acting agent of the invocation,
used to derive the security principal.
public Trace getExternalTrace()
Optional external invocation trace for cross-system logs correlation.
public Actor getImpersonatedActor()
Optional impersonated actor,
used for logging but not for authorisation.
public java.util.List<java.lang.Object> getArguments()
public java.lang.String getClientId()
public InvocationOrigin component1()
Origin of the invocation.
public Trace component2()
Corda invocation trace.
public Actor component3()
Acting agent of the invocation,
used to derive the security principal.
public Trace component4()
Optional external invocation trace for cross-system logs correlation.
public Actor component5()
Optional impersonated actor,
used for logging but not for authorisation.
public java.util.List<java.lang.Object> component6()
public java.lang.String component7()
public InvocationContext copy(InvocationOrigin origin, Trace trace, Actor actor, Trace externalTrace, Actor impersonatedActor, java.util.List<? extends java.lang.Object> arguments, java.lang.String clientId)
Models the information needed to trace an invocation in Corda. Includes initiating actor, origin, trace information, and optional external trace information to correlate clients' IDs.
public java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object p)