Apache CXF API

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

java.lang.Object
  extended by org.apache.cxf.phase.AbstractPhaseInterceptor<Message>
      extended by org.apache.cxf.rs.security.xml.AbstractXmlSecOutInterceptor
          extended by org.apache.cxf.rs.security.xml.XmlEncOutInterceptor
All Implemented Interfaces:
Interceptor<Message>, PhaseInterceptor<Message>

public class XmlEncOutInterceptor
extends AbstractXmlSecOutInterceptor


Constructor Summary
XmlEncOutInterceptor()
           
 
Method Summary
protected  Element createCipherValue(Document doc, Element encryptedKey)
           
protected  Element createEncryptedDataElement(Document encryptedDataDoc, String symEncAlgo)
           
protected  Element createEncryptedKeyElement(Document encryptedDataDoc, String keyEncAlgo, String digestAlgo)
           
protected  Document encryptDocument(Message message, Document payloadDoc)
           
protected  byte[] encryptSymmetricKey(byte[] keyBytes, X509Certificate remoteCert, String keyEncAlgo, String digestAlgo)
           
protected  Document processDocument(Message message, Document payloadDoc)
           
 void setDigestAlgorithm(String algo)
           
 void setEncryptionProperties(EncryptionProperties props)
           
 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

setEncryptionProperties

public void setEncryptionProperties(EncryptionProperties props)

setKeyIdentifierType

public void setKeyIdentifierType(String type)

setSymmetricEncAlgorithm

public void setSymmetricEncAlgorithm(String algo)

setKeyEncAlgorithm

public void setKeyEncAlgorithm(String algo)

setDigestAlgorithm

public void setDigestAlgorithm(String algo)

processDocument

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

encryptDocument

protected Document encryptDocument(Message message,
                                   Document payloadDoc)
                            throws Exception
Throws:
Exception

encryptSymmetricKey

protected byte[] encryptSymmetricKey(byte[] keyBytes,
                                     X509Certificate remoteCert,
                                     String keyEncAlgo,
                                     String digestAlgo)
                              throws org.apache.wss4j.common.ext.WSSecurityException
Throws:
org.apache.wss4j.common.ext.WSSecurityException

createCipherValue

protected Element createCipherValue(Document doc,
                                    Element encryptedKey)

createEncryptedKeyElement

protected Element createEncryptedKeyElement(Document encryptedDataDoc,
                                            String keyEncAlgo,
                                            String digestAlgo)

createEncryptedDataElement

protected Element createEncryptedDataElement(Document encryptedDataDoc,
                                             String symEncAlgo)

Apache CXF API

Apache CXF