public class XmlEncOutInterceptor extends AbstractXmlSecOutInterceptor
ENC_NS, ENC_PREFIX, SIG_NS, SIG_PREFIX, WSU_NS
Constructor and Description |
---|
XmlEncOutInterceptor() |
Modifier and Type | Method and Description |
---|---|
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) |
handleMessage
addAfter, addAfter, addBefore, addBefore, getAdditionalInterceptors, getAfter, getBefore, getId, getPhase, handleFault, isGET, isRequestor, setAfter, setBefore
public void setEncryptionProperties(EncryptionProperties props)
public void setKeyIdentifierType(String type)
public void setSymmetricEncAlgorithm(String algo)
public void setKeyEncAlgorithm(String algo)
public void setDigestAlgorithm(String algo)
protected Document processDocument(Message message, Document payloadDoc) throws Exception
processDocument
in class AbstractXmlSecOutInterceptor
Exception
protected Document encryptDocument(Message message, Document payloadDoc) throws Exception
Exception
protected byte[] encryptSymmetricKey(byte[] keyBytes, X509Certificate remoteCert, String keyEncAlgo, String digestAlgo) throws org.apache.wss4j.common.ext.WSSecurityException
org.apache.wss4j.common.ext.WSSecurityException
protected Element createEncryptedKeyElement(Document encryptedDataDoc, String keyEncAlgo, String digestAlgo)
Apache CXF