org.apache.cxf.rs.security.xml
Class XmlEncOutInterceptor
java.lang.Object
org.apache.cxf.phase.AbstractPhaseInterceptor<org.apache.cxf.message.Message>
org.apache.cxf.rs.security.xml.AbstractXmlSecOutInterceptor
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
| 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 |
XmlEncOutInterceptor
public XmlEncOutInterceptor()
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