org.apache.camel.dataformat.xmlsecurity
Class XMLSecurityDataFormat

java.lang.Object
  extended by org.apache.camel.dataformat.xmlsecurity.XMLSecurityDataFormat
All Implemented Interfaces:
org.apache.camel.CamelContextAware, org.apache.camel.spi.DataFormat

public class XMLSecurityDataFormat
extends Object
implements org.apache.camel.spi.DataFormat, org.apache.camel.CamelContextAware


Field Summary
static String XML_ENC_KEY_STORE_ALIAS
           
static String XML_ENC_KEY_STORE_PASSWORD
           
static String XML_ENC_KEY_STORE_URL
           
static String XML_ENC_RECIPIENT_ALIAS
           
static String XML_ENC_TRUST_STORE_PASSWORD
           
static String XML_ENC_TRUST_STORE_URL
           
 
Constructor Summary
XMLSecurityDataFormat()
           
XMLSecurityDataFormat(String secureTag, boolean secureTagContents)
           
XMLSecurityDataFormat(String secureTag, boolean secureTagContents, byte[] passPhrase)
           
XMLSecurityDataFormat(String secureTag, boolean secureTagContents, byte[] passPhrase, String xmlCipherAlgorithm)
           
XMLSecurityDataFormat(String secureTag, boolean secureTagContents, String xmlCipherAlgorithm, String keyCipherAlgorithm)
           
XMLSecurityDataFormat(String secureTag, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm)
           
 
Method Summary
 org.apache.camel.CamelContext getCamelContext()
           
 String getKeyCyperAlgorithm()
           
 KeyStore getKeyStore()
           
 String getKeyStoreAlias()
           
 String getKeyStorePassword()
           
 byte[] getPassPhrase()
           
 String getRecipientKeyAlias()
           
 String getSecureTag()
           
 boolean getSecureTagContents()
           
 KeyStore getTrustStore()
           
 String getTrustStorePassowrd()
           
 String getXmlCipherAlgorithm()
           
 boolean isSecureTagContents()
           
 void marshal(org.apache.camel.Exchange exchange, Object graph, OutputStream stream)
           
 void setCamelContext(org.apache.camel.CamelContext camelContext)
           
 void setKeyCipherAlgorithm(String keyCipherAlgorithm)
           
 void setKeyStore(KeyStore keyStore)
           
 void setKeyStoreAlias(String keyStoreAlias)
           
 void setKeyStorePassword(String keyStorePassword)
           
 void setPassPhrase(byte[] passPhrase)
           
 void setRecipientKeyAlias(String recipientKeyAlias)
           
 void setSecureTag(String secureTag)
           
 void setSecureTagContents(boolean secureTagContents)
           
 void setTrustStore(KeyStore trustStore)
           
 void setTrustStorePassword(String trustStorePassword)
           
 void setXmlCipherAlgorithm(String xmlCipherAlgorithm)
           
 Object unmarshal(org.apache.camel.Exchange exchange, Document document)
           
 Object unmarshal(org.apache.camel.Exchange exchange, InputStream stream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XML_ENC_RECIPIENT_ALIAS

public static final String XML_ENC_RECIPIENT_ALIAS
See Also:
Constant Field Values

XML_ENC_TRUST_STORE_URL

public static final String XML_ENC_TRUST_STORE_URL
See Also:
Constant Field Values

XML_ENC_TRUST_STORE_PASSWORD

public static final String XML_ENC_TRUST_STORE_PASSWORD
See Also:
Constant Field Values

XML_ENC_KEY_STORE_URL

public static final String XML_ENC_KEY_STORE_URL
See Also:
Constant Field Values

XML_ENC_KEY_STORE_PASSWORD

public static final String XML_ENC_KEY_STORE_PASSWORD
See Also:
Constant Field Values

XML_ENC_KEY_STORE_ALIAS

public static final String XML_ENC_KEY_STORE_ALIAS
See Also:
Constant Field Values
Constructor Detail

XMLSecurityDataFormat

public XMLSecurityDataFormat()

XMLSecurityDataFormat

public XMLSecurityDataFormat(String secureTag,
                             boolean secureTagContents)

XMLSecurityDataFormat

public XMLSecurityDataFormat(String secureTag,
                             boolean secureTagContents,
                             byte[] passPhrase)

XMLSecurityDataFormat

public XMLSecurityDataFormat(String secureTag,
                             boolean secureTagContents,
                             byte[] passPhrase,
                             String xmlCipherAlgorithm)

XMLSecurityDataFormat

public XMLSecurityDataFormat(String secureTag,
                             boolean secureTagContents,
                             String xmlCipherAlgorithm,
                             String keyCipherAlgorithm)

XMLSecurityDataFormat

public XMLSecurityDataFormat(String secureTag,
                             boolean secureTagContents,
                             String recipientKeyAlias,
                             String xmlCipherAlgorithm,
                             String keyCipherAlgorithm)
Method Detail

setCamelContext

public void setCamelContext(org.apache.camel.CamelContext camelContext)
Specified by:
setCamelContext in interface org.apache.camel.CamelContextAware

getCamelContext

public org.apache.camel.CamelContext getCamelContext()
Specified by:
getCamelContext in interface org.apache.camel.CamelContextAware

marshal

public void marshal(org.apache.camel.Exchange exchange,
                    Object graph,
                    OutputStream stream)
             throws Exception
Specified by:
marshal in interface org.apache.camel.spi.DataFormat
Throws:
Exception

unmarshal

public Object unmarshal(org.apache.camel.Exchange exchange,
                        Document document)
                 throws Exception
Throws:
Exception

unmarshal

public Object unmarshal(org.apache.camel.Exchange exchange,
                        InputStream stream)
                 throws Exception
Specified by:
unmarshal in interface org.apache.camel.spi.DataFormat
Throws:
Exception

getXmlCipherAlgorithm

public String getXmlCipherAlgorithm()

setXmlCipherAlgorithm

public void setXmlCipherAlgorithm(String xmlCipherAlgorithm)

getKeyCyperAlgorithm

public String getKeyCyperAlgorithm()

setKeyCipherAlgorithm

public void setKeyCipherAlgorithm(String keyCipherAlgorithm)

getRecipientKeyAlias

public String getRecipientKeyAlias()

setRecipientKeyAlias

public void setRecipientKeyAlias(String recipientKeyAlias)

getPassPhrase

public byte[] getPassPhrase()

setPassPhrase

public void setPassPhrase(byte[] passPhrase)

getSecureTag

public String getSecureTag()

setSecureTag

public void setSecureTag(String secureTag)

isSecureTagContents

public boolean isSecureTagContents()

getSecureTagContents

public boolean getSecureTagContents()

setSecureTagContents

public void setSecureTagContents(boolean secureTagContents)

getKeyStore

public KeyStore getKeyStore()

setKeyStore

public void setKeyStore(KeyStore keyStore)

getTrustStore

public KeyStore getTrustStore()

setTrustStore

public void setTrustStore(KeyStore trustStore)

getKeyStoreAlias

public String getKeyStoreAlias()

setKeyStoreAlias

public void setKeyStoreAlias(String keyStoreAlias)

getKeyStorePassword

public String getKeyStorePassword()

setKeyStorePassword

public void setKeyStorePassword(String keyStorePassword)

getTrustStorePassowrd

public String getTrustStorePassowrd()

setTrustStorePassword

public void setTrustStorePassword(String trustStorePassword)


Apache CAMEL