Package com.amazonaws.serverless.proxy
Interface SecurityContextWriter<RequestType>
- Type Parameters:
RequestType- The AWS Lambda event type
- All Known Implementing Classes:
AwsHttpApiV2SecurityContextWriter,AwsProxySecurityContextWriter
public interface SecurityContextWriter<RequestType>
This object is used by the container implementation to generated a Jax-Rs
SecurityContext object from the
incoming AWS Lambda event.-
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.SecurityContextwriteSecurityContext(RequestType event, com.amazonaws.services.lambda.runtime.Context lambdaContext) Called by the container implementation to generate aSecurityContextgiven an incoming event.
-
Method Details
-
writeSecurityContext
jakarta.ws.rs.core.SecurityContext writeSecurityContext(RequestType event, com.amazonaws.services.lambda.runtime.Context lambdaContext) Called by the container implementation to generate aSecurityContextgiven an incoming event. The library includes a default implementation that reads from the AWS_PROXY integration events.- Parameters:
event- The incoming Lambda eventlambdaContext- The context for the AWS Lambda function- Returns:
- A populated SecurityContext object
- See Also:
-