org.kuali.student.security.cxf.interceptors
Class SamlTokenCxfOutInterceptor

java.lang.Object
  extended by org.apache.ws.security.handler.WSHandler
      extended by org.apache.cxf.ws.security.wss4j.AbstractWSS4JInterceptor
          extended by org.kuali.student.security.cxf.interceptors.SamlTokenCxfOutInterceptor
All Implemented Interfaces:
SoapInterceptor, Interceptor<SoapMessage>, PhaseInterceptor<SoapMessage>

public class SamlTokenCxfOutInterceptor
extends AbstractWSS4JInterceptor


Nested Class Summary
(package private)  class SamlTokenCxfOutInterceptor.SamlTokenCxfOutInterceptorInternal
           
 
Field Summary
private  SamlTokenCxfOutInterceptor.SamlTokenCxfOutInterceptorInternal ending
           
private static Logger LOG
           
private  boolean mtomEnabled
           
private  SAAJOutInterceptor saajOut
           
private  ThreadLocal<org.opensaml.SAMLAssertion> samlAssertionHolder
           
private  ThreadLocal<Map<String,String>> samlPropertiesHolder
           
private static Logger TIME_LOG
           
 
Fields inherited from class org.apache.ws.security.handler.WSHandler
cryptos, DONE, secEngine
 
Constructor Summary
SamlTokenCxfOutInterceptor()
           
SamlTokenCxfOutInterceptor(Map<String,Object> props)
           
 
Method Summary
 SamlTokenCxfOutInterceptor.SamlTokenCxfOutInterceptorInternal createEndingInterceptor()
           
 org.opensaml.SAMLAssertion getSamlAssertion()
           
 Map<String,String> getSamlProperties()
           
 void handleFault(SoapMessage message)
           
 void handleMessage(SoapMessage mc)
           
 boolean isAllowMTOM()
           
 void setAllowMTOM(boolean allowMTOM)
          Enable or disable mtom with WS-Security.
 void setSamlAssertion(org.opensaml.SAMLAssertion samlAssertion)
           
 void setSamlProperties(Map<String,String> samlProperties)
           
 
Methods inherited from class org.apache.cxf.ws.security.wss4j.AbstractWSS4JInterceptor
decodeEnableSignatureConfirmation, getAfter, getBefore, getId, getOption, getPassword, getPhase, getProperties, getProperty, getRoles, getUnderstoodHeaders, isRequestor, loadDecryptionCrypto, loadEncryptionCrypto, loadSignatureCrypto, postHandleMessage, setAfter, setBefore, setId, setPassword, setPhase, setProperties, setProperty, setProperty
 
Methods inherited from class org.apache.ws.security.handler.WSHandler
checkReceiverResults, checkReceiverResultsAnyOrder, checkSignatureConfirmation, decodeCustomPasswordTypes, decodeDecryptionParameter, decodeEncryptionParameter, decodeMustUnderstand, decodeNamespaceQualifiedPasswordTypes, decodeSignatureParameter, decodeSignatureParameter2, decodeTimestampPrecision, decodeTimestampStrict, decodeTimeToLive, decodeUTParameter, doReceiverAction, doSenderAction, getClassLoader, getPassword, getPasswordCB, getString, getStringOption, verifyTimestamp, verifyTrust
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

private static final Logger LOG

TIME_LOG

private static final Logger TIME_LOG

ending

private SamlTokenCxfOutInterceptor.SamlTokenCxfOutInterceptorInternal ending

saajOut

private SAAJOutInterceptor saajOut

mtomEnabled

private boolean mtomEnabled

samlPropertiesHolder

private ThreadLocal<Map<String,String>> samlPropertiesHolder

samlAssertionHolder

private ThreadLocal<org.opensaml.SAMLAssertion> samlAssertionHolder
Constructor Detail

SamlTokenCxfOutInterceptor

public SamlTokenCxfOutInterceptor()

SamlTokenCxfOutInterceptor

public SamlTokenCxfOutInterceptor(Map<String,Object> props)
Method Detail

isAllowMTOM

public boolean isAllowMTOM()

setAllowMTOM

public void setAllowMTOM(boolean allowMTOM)
Enable or disable mtom with WS-Security. By default MTOM is disabled as attachments would not get encrypted or be part of the signature.

Parameters:
mtomEnabled -

handleMessage

public void handleMessage(SoapMessage mc)
                   throws Fault
Throws:
Fault

handleFault

public void handleFault(SoapMessage message)
Specified by:
handleFault in interface Interceptor<SoapMessage>
Overrides:
handleFault in class AbstractWSS4JInterceptor

createEndingInterceptor

public final SamlTokenCxfOutInterceptor.SamlTokenCxfOutInterceptorInternal createEndingInterceptor()

setSamlProperties

public void setSamlProperties(Map<String,String> samlProperties)

getSamlProperties

public Map<String,String> getSamlProperties()

getSamlAssertion

public org.opensaml.SAMLAssertion getSamlAssertion()

setSamlAssertion

public void setSamlAssertion(org.opensaml.SAMLAssertion samlAssertion)


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.