org.apache.cxf.rs.security.xml
Class XmlSecInInterceptor

java.lang.Object
  extended by org.apache.cxf.rs.security.xml.XmlSecInInterceptor
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 XmlSecInInterceptor
extends Object
implements org.apache.cxf.phase.PhaseInterceptor<org.apache.cxf.message.Message>

A new StAX-based interceptor for processing messages with XML Signature + Encryption content.


Constructor Summary
XmlSecInInterceptor()
           
 
Method Summary
protected  org.apache.xml.security.stax.securityEvent.SecurityEventListener configureSecurityEventListener(org.apache.wss4j.common.crypto.Crypto sigCrypto, org.apache.cxf.message.Message msg, org.apache.xml.security.stax.ext.XMLSecurityProperties securityProperties)
           
 Collection<org.apache.cxf.phase.PhaseInterceptor<? extends org.apache.cxf.message.Message>> getAdditionalInterceptors()
           
 Set<String> getAfter()
           
 Set<String> getBefore()
           
 String getDecryptionAlias()
           
 String getId()
           
 String getPhase()
           
 String getSignatureVerificationAlias()
           
 void handleFault(org.apache.cxf.message.Message message)
           
 void handleMessage(org.apache.cxf.message.Message message)
           
 void setAfter(Set<String> after)
           
 void setBefore(Set<String> before)
           
 void setDecryptionAlias(String decryptionAlias)
           
 void setEncryptionProperties(EncryptionProperties properties)
           
 void setPhase(String phase)
           
 void setSignatureProperties(SignatureProperties properties)
           
 void setSignatureVerificationAlias(String signatureVerificationAlias)
           
protected  void throwFault(String error, Exception ex)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlSecInInterceptor

public XmlSecInInterceptor()
Method Detail

handleFault

public void handleFault(org.apache.cxf.message.Message message)
Specified by:
handleFault in interface org.apache.cxf.interceptor.Interceptor<org.apache.cxf.message.Message>

handleMessage

public void handleMessage(org.apache.cxf.message.Message message)
                   throws org.apache.cxf.interceptor.Fault
Specified by:
handleMessage in interface org.apache.cxf.interceptor.Interceptor<org.apache.cxf.message.Message>
Throws:
org.apache.cxf.interceptor.Fault

configureSecurityEventListener

protected org.apache.xml.security.stax.securityEvent.SecurityEventListener configureSecurityEventListener(org.apache.wss4j.common.crypto.Crypto sigCrypto,
                                                                                                          org.apache.cxf.message.Message msg,
                                                                                                          org.apache.xml.security.stax.ext.XMLSecurityProperties securityProperties)

throwFault

protected void throwFault(String error,
                          Exception ex)

getAdditionalInterceptors

public Collection<org.apache.cxf.phase.PhaseInterceptor<? extends org.apache.cxf.message.Message>> getAdditionalInterceptors()
Specified by:
getAdditionalInterceptors in interface org.apache.cxf.phase.PhaseInterceptor<org.apache.cxf.message.Message>

getAfter

public Set<String> getAfter()
Specified by:
getAfter in interface org.apache.cxf.phase.PhaseInterceptor<org.apache.cxf.message.Message>

setAfter

public void setAfter(Set<String> after)

getBefore

public Set<String> getBefore()
Specified by:
getBefore in interface org.apache.cxf.phase.PhaseInterceptor<org.apache.cxf.message.Message>

setBefore

public void setBefore(Set<String> before)

getId

public String getId()
Specified by:
getId in interface org.apache.cxf.phase.PhaseInterceptor<org.apache.cxf.message.Message>

getPhase

public String getPhase()
Specified by:
getPhase in interface org.apache.cxf.phase.PhaseInterceptor<org.apache.cxf.message.Message>

setPhase

public void setPhase(String phase)

setEncryptionProperties

public void setEncryptionProperties(EncryptionProperties properties)

setSignatureProperties

public void setSignatureProperties(SignatureProperties properties)

getDecryptionAlias

public String getDecryptionAlias()

setDecryptionAlias

public void setDecryptionAlias(String decryptionAlias)

getSignatureVerificationAlias

public String getSignatureVerificationAlias()

setSignatureVerificationAlias

public void setSignatureVerificationAlias(String signatureVerificationAlias)


Apache CXF