I wanted to implement some security into a JAX-RS web service. As a result I used Basic Authentication with TLS. Everything works fine, but now I wanna know what's behind that "magic".
- How can the
SecurityContextinterface act like a normal class? - And what has the
@Contexthave to do with it?