@Test public void write_noAuth_emptySecurityContext() { AwsProxyRequest request = new AwsProxyRequestBuilder("/test").build(); SecurityContext context = writer.writeSecurityContext(request, null); assertNotNull(context); assertNull(context.getAuthenticationScheme()); assertFalse(context.isSecure()); }
@Override public SecurityContext writeSecurityContext(AwsProxyRequest event, Context lambdaContext) { currentContext = new AwsProxySecurityContext(lambdaContext, event); return currentContext; }
AwsProxySecurityContextWriter implements SecurityContextWriter<AwsProxyRequest> { @Override public SecurityContext writeSecurityContext(AwsProxyRequest event, Context lambdaContext) { currentContext = new AwsProxySecurityContext(lambdaContext, event); return currentContext; } }
AwsProxySecurityContextWriter implements SecurityContextWriter<AwsProxyRequest> { @Override public SecurityContext writeSecurityContext(AwsProxyRequest event, Context lambdaContext) { currentContext = new AwsProxySecurityContext(lambdaContext, event); return currentContext; }  }
AwsProxySecurityContextWriter implements SecurityContextWriter<AwsProxyRequest> { @Override public SecurityContext writeSecurityContext(AwsProxyRequest event, Context lambdaContext) { currentContext = new AwsProxySecurityContext(lambdaContext, event); return currentContext; }  @Override SecurityContext writeSecurityContext(AwsProxyRequest event, Context lambdaContext); AwsProxySecurityContext getCurrentContext(); }
AwsProxySecurityContextWriter implements SecurityContextWriter<AwsProxyRequest> { @Override public SecurityContext writeSecurityContext(AwsProxyRequest event, Context lambdaContext) { currentContext = new AwsProxySecurityContext(lambdaContext, event); return currentContext; }  @Override SecurityContext writeSecurityContext(AwsProxyRequest event, Context lambdaContext); AwsProxySecurityContext getCurrentContext();  }