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

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


Constructor Summary
XmlEncOutInterceptor()
           
 
Method Summary
protected  Element createCipherValue(Document doc, Element encryptedKey)
           
protected  Element createEncryptedDataElement(Document encryptedDataDoc)
           
protected  Element createEncryptedKeyElement(Document encryptedDataDoc)
           
protected  Document encryptDocument(org.apache.cxf.message.Message message, Document payloadDoc)
           
protected  byte[] encryptSymmetricKey(byte[] keyBytes, X509Certificate remoteCert, org.apache.ws.security.components.crypto.Crypto crypto)
           
protected  Document processDocument(org.apache.cxf.message.Message message, Document payloadDoc)
           
 void setKeyEncAlgorithm(String algo)
           
 void setKeyIdentifierType(String type)
           
 void setSymmetricEncAlgorithm(String algo)
           
 
Methods inherited from class org.apache.cxf.rs.security.xml.AbstractXmlSecOutInterceptor
handleMessage
 
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

XmlEncOutInterceptor

public XmlEncOutInterceptor()
Method Detail

setKeyIdentifierType

public void setKeyIdentifierType(String type)

setSymmetricEncAlgorithm

public void setSymmetricEncAlgorithm(String algo)

setKeyEncAlgorithm

public void setKeyEncAlgorithm(String algo)

processDocument

protected Document processDocument(org.apache.cxf.message.Message message,
                                   Document payloadDoc)
                            throws Exception
Specified by:
processDocument in class AbstractXmlSecOutInterceptor
Throws:
Exception

encryptDocument

protected Document encryptDocument(org.apache.cxf.message.Message message,
                                   Document payloadDoc)
                            throws Exception
Throws:
Exception

encryptSymmetricKey

protected byte[] encryptSymmetricKey(byte[] keyBytes,
                                     X509Certificate remoteCert,
                                     org.apache.ws.security.components.crypto.Crypto crypto)
                              throws org.apache.ws.security.WSSecurityException
Throws:
org.apache.ws.security.WSSecurityException

createCipherValue

protected Element createCipherValue(Document doc,
                                    Element encryptedKey)

createEncryptedKeyElement

protected Element createEncryptedKeyElement(Document encryptedDataDoc)

createEncryptedDataElement

protected Element createEncryptedDataElement(Document encryptedDataDoc)


Apache CXF