|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cxf.phase.AbstractPhaseInterceptor<org.apache.cxf.message.Message>
org.jboss.fuse.examples.cxf.jaxws.security.client.CustomSecurityInterceptor
public class CustomSecurityInterceptor
CXF Interceptors are a very powerful and flexible mechanism to add custom logic to the default CXF processing, both when using CXF on the client side and on the server side. With this custom security interceptor, we will configure the default WSS4J interceptor in the client to provide the required credentials to perform our web service invocation.
| Constructor Summary | |
|---|---|
CustomSecurityInterceptor()
Configuring the interceptor to be used in the 'setup' phase. |
|
| Method Summary | |
|---|---|
void |
handleMessage(org.apache.cxf.message.Message message)
This is the actual implementation for our interceptor - we define the necessary properties for doing the authentication and then iterate over the rest of the interceptor chain to find the WSS4J interceptor and configure it properly. |
| Methods inherited from class org.apache.cxf.phase.AbstractPhaseInterceptor |
|---|
addAfter, addAfter, addBefore, addBefore, getAdditionalInterceptors, getAfter, getBefore, getId, getPhase, handleFault, isGET, isRequestor, setAfter, setBefore |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CustomSecurityInterceptor()
| Method Detail |
|---|
public void handleMessage(org.apache.cxf.message.Message message)
throws org.apache.cxf.interceptor.Fault
org.apache.cxf.interceptor.Fault
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||