public class SecurityConstraint extends Object implements MethodInvokerFilter
| Constructor and Description |
|---|
SecurityConstraint() |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(GenericMethodResource method,
Object[] params)
Check does method contains one on of security annotations PermitAll, DenyAll, RolesAllowed.
|
public void accept(GenericMethodResource method, Object[] params) throws javax.ws.rs.WebApplicationException
accept in interface MethodInvokerFiltermethod - See GenericMethodResourceparams - actual method parameters that were created from requestjavax.ws.rs.WebApplicationException - if method can not be invoked cause current environment context, e.g. for current user, with current request attributes, etc.
Actual context can be obtained as next ApplicationContextImpl.getCurrent(). WebApplicationException should contain
Response with corresponded status and message.PermitAll,
DenyAll,
RolesAllowedCopyright © 2015. All rights reserved.