Package 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
-
-
Field Summary
-
Fields inherited from class org.apache.cxf.rs.security.xml.AbstractXmlSecOutInterceptor
ENC_NS, ENC_PREFIX, SIG_NS, SIG_PREFIX, WSU_NS
-
-
Constructor Summary
Constructors Constructor Description XmlEncOutInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ElementcreateCipherValue(Document doc, Element encryptedKey)protected ElementcreateEncryptedDataElement(Document encryptedDataDoc, String symEncAlgo)protected ElementcreateEncryptedKeyElement(Document encryptedDataDoc, String keyEncAlgo, String digestAlgo)protected DocumentencryptDocument(org.apache.cxf.message.Message message, Document payloadDoc)protected byte[]encryptSymmetricKey(byte[] keyBytes, X509Certificate remoteCert, String keyEncAlgo, String digestAlgo)protected DocumentprocessDocument(org.apache.cxf.message.Message message, Document payloadDoc)voidsetDigestAlgorithm(String algo)voidsetEncryptionProperties(EncryptionProperties props)voidsetKeyEncAlgorithm(String algo)voidsetKeyIdentifierType(String type)voidsetSymmetricEncAlgorithm(String algo)-
Methods inherited from class org.apache.cxf.rs.security.xml.AbstractXmlSecOutInterceptor
handleMessage
-
-
-
-
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(org.apache.cxf.message.Message message, Document payloadDoc) throws Exception
- Specified by:
processDocumentin classAbstractXmlSecOutInterceptor- 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, String keyEncAlgo, String digestAlgo) throws org.apache.wss4j.common.ext.WSSecurityException- Throws:
org.apache.wss4j.common.ext.WSSecurityException
-
createEncryptedKeyElement
protected Element createEncryptedKeyElement(Document encryptedDataDoc, String keyEncAlgo, String digestAlgo)
-
-