Tuesday, 20 August 2013

What does the @Secure annotation do and what package is it apart of

What does the @Secure annotation do and what package is it apart of

I'm writing an API using Java EE, JAX-RS, Jersey. In doing this I've
implemented my own security context and security filter.
Looking at questions like this one (How to get mime type of uploaded file
in Jersey) I've seen the @Secure annotation but what does it do? My hope
was that is was an annotation that queries the isSecure method of the
security context in the same way that @RolesAllowed does for checking if a
user has the right to access a particular method. If so is there such a
way of doing so with annotations or am I stuck to using the @Context to
get the security context and just from that.

No comments:

Post a Comment