- All Implemented Interfaces:
- org.apache.cxf.interceptor.Interceptor<org.apache.cxf.message.Message>, org.apache.cxf.phase.PhaseInterceptor<org.apache.cxf.message.Message>
public class SecurityOutFaultInterceptor
extends org.apache.cxf.phase.AbstractPhaseInterceptor<org.apache.cxf.message.Message>
Outgoing fault interceptor mapping HTTP status code 500, which is returned in case of missing authorizations in the
SecureAnnotationsInterceptor, to the correct HTTP status code (401 or 403).
This basically corresponds to the existing interceptor that is not yet available in the currently used CXF version:
https://github.com/apache/cxf/blob/master/systests/jaxrs/src/test/java/org/apache/cxf/systest
/jaxrs/security/SecurityOutFaultInterceptor.java