org.talend.esb.security.saml
Class STSRESTOutInterceptor

java.lang.Object
  extended by org.apache.cxf.phase.AbstractPhaseInterceptor<org.apache.cxf.message.Message>
      extended by org.talend.esb.security.saml.STSRESTOutInterceptor
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 STSRESTOutInterceptor
extends org.apache.cxf.phase.AbstractPhaseInterceptor<org.apache.cxf.message.Message>

An outbound REST interceptor which uses the STSClient to obtain a token from a STS. It then stores the DOM Element on the message context so that the REST SAML interceptors can retrieve it and send it in a form, header, etc. It caches a token and attempts to "renew" it if it has expired.


Constructor Summary
STSRESTOutInterceptor()
           
 
Method Summary
 org.apache.cxf.ws.security.trust.STSClient getStsClient()
           
 void handleMessage(org.apache.cxf.message.Message message)
           
 void setStsClient(org.apache.cxf.ws.security.trust.STSClient stsClient)
          Set the STSClient object.
 
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

STSRESTOutInterceptor

public STSRESTOutInterceptor()
Method Detail

handleMessage

public void handleMessage(org.apache.cxf.message.Message message)
                   throws org.apache.cxf.interceptor.Fault
Throws:
org.apache.cxf.interceptor.Fault

getStsClient

public org.apache.cxf.ws.security.trust.STSClient getStsClient()

setStsClient

public void setStsClient(org.apache.cxf.ws.security.trust.STSClient stsClient)
Set the STSClient object. This does the heavy lifting to get a (SAML) Token from the STS.

Parameters:
stsClient - the STSClient object.


Copyright © 2011–2014 Talend Inc.. All rights reserved.