Apache CXF API

org.apache.cxf.rs.security.xml
Class AbstractXmlEncInHandler

java.lang.Object
  extended by org.apache.cxf.rs.security.xml.AbstractXmlSecInHandler
      extended by org.apache.cxf.rs.security.xml.AbstractXmlEncInHandler
Direct Known Subclasses:
XmlEncInHandler, XmlEncInInterceptor

public abstract class AbstractXmlEncInHandler
extends AbstractXmlSecInHandler


Constructor Summary
AbstractXmlEncInHandler()
           
 
Method Summary
 void decryptContent(Message message)
           
protected  byte[] decryptPayload(Element root, byte[] secretKeyBytes, String symEncAlgo)
           
protected  byte[] decryptSymmetricKey(String base64EncodedKey, X509Certificate cert, org.apache.wss4j.common.crypto.Crypto crypto, String keyEncAlgo, Message message)
           
protected  byte[] decryptSymmetricKey(String base64EncodedKey, X509Certificate cert, org.apache.wss4j.common.crypto.Crypto crypto, String keyEncAlgo, String digestAlgo, Message message)
           
protected  byte[] getSymmetricKeyBytes(Message message, Element encDataElement)
           
 void setEncryptionProperties(EncryptionProperties properties)
           
 
Methods inherited from class org.apache.cxf.rs.security.xml.AbstractXmlSecInHandler
getDocument, getNode, setAllowEmptyBody, throwFault
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractXmlEncInHandler

public AbstractXmlEncInHandler()
Method Detail

decryptContent

public void decryptContent(Message message)

getSymmetricKeyBytes

protected byte[] getSymmetricKeyBytes(Message message,
                                      Element encDataElement)

decryptSymmetricKey

protected byte[] decryptSymmetricKey(String base64EncodedKey,
                                     X509Certificate cert,
                                     org.apache.wss4j.common.crypto.Crypto crypto,
                                     String keyEncAlgo,
                                     Message message)
                              throws org.apache.wss4j.common.ext.WSSecurityException
Throws:
org.apache.wss4j.common.ext.WSSecurityException

decryptSymmetricKey

protected byte[] decryptSymmetricKey(String base64EncodedKey,
                                     X509Certificate cert,
                                     org.apache.wss4j.common.crypto.Crypto crypto,
                                     String keyEncAlgo,
                                     String digestAlgo,
                                     Message message)
                              throws org.apache.wss4j.common.ext.WSSecurityException
Throws:
org.apache.wss4j.common.ext.WSSecurityException

decryptPayload

protected byte[] decryptPayload(Element root,
                                byte[] secretKeyBytes,
                                String symEncAlgo)
                         throws org.apache.wss4j.common.ext.WSSecurityException
Throws:
org.apache.wss4j.common.ext.WSSecurityException

setEncryptionProperties

public void setEncryptionProperties(EncryptionProperties properties)

Apache CXF API

Apache CXF