Hello Diana,
Unfortunately, this did not work. I am not sure what annotations to use. In all cases either of them is injecting nothing, and the reference is null.
@Context and @Inject does not inject anything.
@Resource, is the SecurityContext considered a resource ? In either cases, this was not attainable.
If I can retrieve a reference to Elytron, then I might be able to make it available through Spring. But this did not work.