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.ws.security.components.crypto.Crypto crypto, String keyEncAlgo, Message message)
           
protected  byte[] decryptSymmetricKey(String base64EncodedKey, X509Certificate cert, org.apache.ws.security.components.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.ws.security.components.crypto.Crypto crypto,
                                     String keyEncAlgo,
                                     Message message)
                              throws org.apache.ws.security.WSSecurityException
Throws:
org.apache.ws.security.WSSecurityException

decryptSymmetricKey

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

decryptPayload

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

setEncryptionProperties

public void setEncryptionProperties(EncryptionProperties properties)

Apache CXF API

Apache CXF