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 Type
    Method
    Description
    jakarta.ws.rs.core.SecurityContext
    writeSecurityContext(RequestType event, com.amazonaws.services.lambda.runtime.Context lambdaContext)
    Called by the container implementation to generate a SecurityContext given 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 a SecurityContext given an incoming event. The library includes a default implementation that reads from the AWS_PROXY integration events.
      Parameters:
      event - The incoming Lambda event
      lambdaContext - The context for the AWS Lambda function
      Returns:
      A populated SecurityContext object
      See Also: