public class SecurityAnnotationInvokerPreprocessor extends Object implements InvokerPreprocessor
This InvokerPreprocessor
implementation checks the security annotations of the target operation
and return a 403 Forbidden error message when not authorized for the operation by the annotation.
Constructor and Description |
---|
SecurityAnnotationInvokerPreprocessor() |
Modifier and Type | Method and Description |
---|---|
protected javax.ws.rs.core.SecurityContext |
getSecurityContext(org.apache.cxf.message.Exchange exchange) |
protected boolean |
isForbiddenOperation(org.apache.cxf.message.Exchange exchange) |
Object |
preprocoess(org.apache.cxf.message.Exchange exchange,
Object request)
If this preprocessor is able to decide a return message before continuing with the default JAXRS processing,
then this method should return a message object.
|
public SecurityAnnotationInvokerPreprocessor()
public Object preprocoess(org.apache.cxf.message.Exchange exchange, Object request)
InvokerPreprocessor
preprocoess
in interface InvokerPreprocessor
protected boolean isForbiddenOperation(org.apache.cxf.message.Exchange exchange)
protected javax.ws.rs.core.SecurityContext getSecurityContext(org.apache.cxf.message.Exchange exchange)
Copyright © 2008–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.