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
SecurityContext
interface act like a normal class? - And what has the
@Context
have to do with it?