Apache CXF API

org.apache.cxf.ws.security.wss4j
Class SamlTokenInterceptor

java.lang.Object
  extended by org.apache.cxf.phase.AbstractPhaseInterceptor<SoapMessage>
      extended by org.apache.cxf.binding.soap.interceptor.AbstractSoapInterceptor
          extended by org.apache.cxf.ws.security.wss4j.SamlTokenInterceptor
All Implemented Interfaces:
SoapInterceptor, Interceptor<SoapMessage>, PhaseInterceptor<SoapMessage>

public class SamlTokenInterceptor
extends AbstractSoapInterceptor

An interceptor to create and add a SAML token to the security header of an outbound request, and to process a SAML Token on an inbound request.


Constructor Summary
SamlTokenInterceptor()
           
 
Method Summary
 String getPassword(String userName, SamlToken info, int type, SoapMessage message)
           
 Set<QName> getUnderstoodHeaders()
           
 void handleMessage(SoapMessage message)
          Intercepts a message.
protected  void policyNotAsserted(SamlToken assertion, Exception reason, SoapMessage message)
           
protected  void policyNotAsserted(SamlToken assertion, String reason, SoapMessage message)
           
 
Methods inherited from class org.apache.cxf.binding.soap.interceptor.AbstractSoapInterceptor
getFaultCodePrefix, getRoles, prepareStackTrace
 
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
 
Methods inherited from interface org.apache.cxf.interceptor.Interceptor
handleFault
 

Constructor Detail

SamlTokenInterceptor

public SamlTokenInterceptor()
Parameters:
p -
Method Detail

getUnderstoodHeaders

public Set<QName> getUnderstoodHeaders()
Specified by:
getUnderstoodHeaders in interface SoapInterceptor
Overrides:
getUnderstoodHeaders in class AbstractSoapInterceptor

handleMessage

public void handleMessage(SoapMessage message)
                   throws Fault
Description copied from interface: Interceptor
Intercepts a message. Interceptors should NOT invoke handleMessage or handleFault on the next interceptor - the interceptor chain will take care of this.

Throws:
Fault

getPassword

public String getPassword(String userName,
                          SamlToken info,
                          int type,
                          SoapMessage message)

policyNotAsserted

protected void policyNotAsserted(SamlToken assertion,
                                 String reason,
                                 SoapMessage message)

policyNotAsserted

protected void policyNotAsserted(SamlToken assertion,
                                 Exception reason,
                                 SoapMessage message)

Apache CXF API

Apache CXF