org.apache.cxf.rs.security.xml
Class XmlEncOutInterceptor
java.lang.Object
org.apache.cxf.phase.AbstractPhaseInterceptor<Message>
org.apache.cxf.rs.security.xml.AbstractXmlSecOutInterceptor
org.apache.cxf.rs.security.xml.XmlEncOutInterceptor
- All Implemented Interfaces:
- Interceptor<Message>, PhaseInterceptor<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()
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.ws.security.WSSecurityException
- Throws:
org.apache.ws.security.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