public class AwsProxySecurityContextWriter extends java.lang.Object implements SecurityContextWriter<AwsProxyRequest>
SecurityContextWriter. Creates a SecurityContext object based on an API Gateway
event and the Lambda context. This returns the default AwsProxySecurityContext instance.| Constructor and Description |
|---|
AwsProxySecurityContextWriter() |
| Modifier and Type | Method and Description |
|---|---|
AwsProxySecurityContext |
getCurrentContext() |
javax.ws.rs.core.SecurityContext |
writeSecurityContext(AwsProxyRequest event,
com.amazonaws.services.lambda.runtime.Context lambdaContext)
Called by the container implementation to generate a
SecurityContext given an incoming event. |
public javax.ws.rs.core.SecurityContext writeSecurityContext(AwsProxyRequest event, com.amazonaws.services.lambda.runtime.Context lambdaContext)
SecurityContextWriterSecurityContext given an incoming event. The
library includes a default implementation that reads from the AWS_PROXY integration events.writeSecurityContext in interface SecurityContextWriter<AwsProxyRequest>event - The incoming Lambda eventlambdaContext - The context for the AWS Lambda functionAwsProxySecurityContextWriter,
AwsProxyRequestpublic AwsProxySecurityContext getCurrentContext()
Copyright © 2018. All Rights Reserved.