Package akka.javasdk.grpc
Interface GrpcRequestContext
- All Superinterfaces:
Context
Not for user extension, can be injected as constructor parameter into gRPC endpoint components
-
Method Summary
Modifier and TypeMethodDescriptionGet the principals associated with this request.The SPIFFE context for this endpoint, including the caller's identity if the request came from another Akka service in the same project.akka.grpc.javadsl.Metadatametadata()tracing()Access to tracing for custom app specific tracing.Methods inherited from interface akka.javasdk.Context
selfRegion
-
Method Details
-
getPrincipals
Principals getPrincipals()Get the principals associated with this request.- Returns:
- The principals associated with this request.
-
getJwtClaims
JwtClaims getJwtClaims()- Returns:
- The JWT claims, if any, associated with this request.
-
metadata
akka.grpc.javadsl.Metadata metadata()- Returns:
- The metadata associated with the request being processed
-
tracing
Tracing tracing()Access to tracing for custom app specific tracing. -
getSpiffeContext
Optional<SpiffeContext> getSpiffeContext()The SPIFFE context for this endpoint, including the caller's identity if the request came from another Akka service in the same project. Empty when SPIFFE is disabled.
-