Package akka.javasdk
Interface SpiffeContext
@DoNotInherit
public interface SpiffeContext
SPIFFE identity information available during request processing. Provides access to the
component's own identity and, for HTTP/gRPC endpoints, the optional identity of the calling
component.
Not for user extension, implementation provided by the SDK.
-
Method Summary
Modifier and TypeMethodDescriptionThe SPIFFE identity of the calling component, if the caller included the_kalix-caller-spiffeheader.The SPIFFE ID assigned to this component, e.g.
-
Method Details
-
getSpiffeId
String getSpiffeId()The SPIFFE ID assigned to this component, e.g.spiffe://trust/svc/service/http-endpoint/MyEndpoint. -
getCallerContext
Optional<CallerSpiffeContext> getCallerContext()The SPIFFE identity of the calling component, if the caller included the_kalix-caller-spiffeheader. Present only when an Akka service in the same project called this endpoint. Empty for external/internet callers.
-