Package 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>
-
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected ElementcreateCipherValue(Document doc, Element encryptedKey) protected ElementcreateEncryptedDataElement(Document encryptedDataDoc, String symEncAlgo) protected ElementcreateEncryptedKeyElement(Document encryptedDataDoc, String keyEncAlgo, String digestAlgo) protected DocumentencryptDocument(Message message, Document payloadDoc) protected byte[]encryptSymmetricKey(byte[] keyBytes, X509Certificate remoteCert, String keyEncAlgo, String digestAlgo) protected DocumentprocessDocument(Message message, Document payloadDoc) voidsetDigestAlgorithm(String algo) voidvoidsetKeyEncAlgorithm(String algo) voidsetKeyIdentifierType(String type) voidMethods inherited from class org.apache.cxf.rs.security.xml.AbstractXmlSecOutInterceptor
handleMessageMethods inherited from class org.apache.cxf.phase.AbstractPhaseInterceptor
addAfter, addAfter, addBefore, addBefore, getAdditionalInterceptors, getAfter, getBefore, getId, getPhase, handleFault, isGET, isRequestor, setAfter, setBefore
-
Constructor Details
-
XmlEncOutInterceptor
public XmlEncOutInterceptor()
-
-
Method Details
-
setEncryptionProperties
-
setKeyIdentifierType
-
setSymmetricEncAlgorithm
-
setKeyEncAlgorithm
-
setDigestAlgorithm
-
processDocument
- Specified by:
processDocumentin classAbstractXmlSecOutInterceptor- Throws:
Exception
-
encryptDocument
- 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
-
createEncryptedKeyElement
-
createEncryptedDataElement
-