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
          Deprecated. Use XMLSecurityDataFormat(String, Map, boolean, String, String, String, KeyStoreParameters) instead.
static String XML_ENC_KEY_STORE_PASSWORD
          Deprecated. Use XMLSecurityDataFormat(String, Map, boolean, String, String, String, KeyStoreParameters) instead.
static String XML_ENC_KEY_STORE_URL
          Deprecated. Use XMLSecurityDataFormat(String, Map, boolean, String, String, String, KeyStoreParameters) instead.
static String XML_ENC_RECIPIENT_ALIAS
          Deprecated. Use XMLSecurityDataFormat(String, Map, boolean, String, String, String, KeyStoreParameters) instead.
static String XML_ENC_TRUST_STORE_PASSWORD
          Deprecated. Use XMLSecurityDataFormat(String, Map, boolean, String, String, String, KeyStoreParameters) instead.
static String XML_ENC_TRUST_STORE_URL
          Deprecated. Use XMLSecurityDataFormat(String, Map, boolean, String, String, String, KeyStoreParameters) instead.
 
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)
          Deprecated. use XMLSecurityDataFormat(String, Map, boolean, String, String, String, String) or XMLSecurityDataFormat(String, Map, boolean, String, String, String, KeyStoreParameters) instead.
XMLSecurityDataFormat(String secureTag, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm)
          Deprecated. use XMLSecurityDataFormat(String, Map, boolean, String, String, String, String) or XMLSecurityDataFormat(String, Map, boolean, String, String, String, KeyStoreParameters) instead.
XMLSecurityDataFormat(String secureTag, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm, org.apache.camel.util.jsse.KeyStoreParameters keyOrTrustStoreParameters)
           
XMLSecurityDataFormat(String secureTag, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm, org.apache.camel.util.jsse.KeyStoreParameters keyOrTrustStoreParameters, String keyPassword)
           
XMLSecurityDataFormat(String secureTag, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm, String keyOrTrustStoreParametersId)
           
XMLSecurityDataFormat(String secureTag, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm, String keyOrTrustStoreParametersId, String keyPassword)
           
XMLSecurityDataFormat(String secureTag, Map<String,String> namespaces, boolean secureTagContents)
           
XMLSecurityDataFormat(String secureTag, Map<String,String> namespaces, boolean secureTagContents, byte[] passPhrase)
           
XMLSecurityDataFormat(String secureTag, Map<String,String> namespaces, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm, org.apache.camel.util.jsse.KeyStoreParameters keyOrTrustStoreParameters)
           
XMLSecurityDataFormat(String secureTag, Map<String,String> namespaces, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm, org.apache.camel.util.jsse.KeyStoreParameters keyOrTrustStoreParameters, String keyPassword)
           
XMLSecurityDataFormat(String secureTag, Map<String,String> namespaces, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm, org.apache.camel.util.jsse.KeyStoreParameters keyOrTrustStoreParameters, String keyPassword, String digestAlgorithm)
           
XMLSecurityDataFormat(String secureTag, Map<String,String> namespaces, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm, String keyOrTrustStoreParametersId)
           
XMLSecurityDataFormat(String secureTag, Map<String,String> namespaces, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm, String keyOrTrustStoreParametersId, String keyPassword)
           
 
Method Summary
 org.apache.camel.CamelContext getCamelContext()
           
 String getDigestAlgorithm()
           
 String getKeyCipherAlgorithm()
           
 String getKeyCyperAlgorithm()
          Deprecated. 
 org.apache.camel.util.jsse.KeyStoreParameters getKeyOrTrustStoreParameters()
           
 String getKeyOrTrustStoreParametersId()
           
 KeyStore getKeyStore()
          Deprecated. Will change to private access in the future.
 String getKeyStorePassword()
          Deprecated. Will change to private access in the future. Use getKeyOrTrustStoreParameters() instead.
 String getMgfAlgorithm()
           
 byte[] getPassPhrase()
           
 String getRecipientKeyAlias()
           
 String getSecureTag()
           
 boolean getSecureTagContents()
           
 KeyStore getTrustStore()
          Deprecated. Will change to private access in the future. Use getKeyOrTrustStoreParameters() instead.
 String getTrustStorePassword()
          Deprecated. Will change to private access in the future. Use #setKeyOrTrustStoreParameters() instead.
 String getXmlCipherAlgorithm()
           
 boolean isSecureTagContents()
           
 void marshal(org.apache.camel.Exchange exchange, Object graph, OutputStream stream)
           
 void setCamelContext(org.apache.camel.CamelContext camelContext)
           
 void setDigestAlgorithm(String digestAlgorithm)
           
 void setKeyCipherAlgorithm(String keyCipherAlgorithm)
           
 void setKeyOrTrustStoreParameters(org.apache.camel.util.jsse.KeyStoreParameters parameters)
           
 void setKeyOrTrustStoreParametersId(String registryId)
           
 void setKeyPassword(String keyPassword)
           
 void setKeyStore(KeyStore keyStore)
          Deprecated. Use getKeyOrTrustStoreParameters() instead.
 void setKeyStorePassword(String keyStorePassword)
          Deprecated. Use #setKeyOrTrustStoreParameters() instead.
 void setMgfAlgorithm(String mgfAlgorithm)
           
 void setNamespaces(Map<String,String> namespaces)
           
 void setPassPhrase(byte[] passPhrase)
           
 void setRecipientKeyAlias(String recipientKeyAlias)
           
 void setSecureTag(String secureTag)
           
 void setSecureTagContents(boolean secureTagContents)
           
 void setTrustStore(KeyStore trustStore)
          Deprecated. Use #setKeyOrTrustStoreParameters() instead.
 void setTrustStorePassword(String trustStorePassword)
          Deprecated. Use #setKeyOrTrustStoreParameters() instead.
 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

@Deprecated
public static final String XML_ENC_RECIPIENT_ALIAS
Deprecated. Use XMLSecurityDataFormat(String, Map, boolean, String, String, String, KeyStoreParameters) instead.
See Also:
Constant Field Values

XML_ENC_TRUST_STORE_URL

@Deprecated
public static final String XML_ENC_TRUST_STORE_URL
Deprecated. Use XMLSecurityDataFormat(String, Map, boolean, String, String, String, KeyStoreParameters) instead.
See Also:
Constant Field Values

XML_ENC_TRUST_STORE_PASSWORD

@Deprecated
public static final String XML_ENC_TRUST_STORE_PASSWORD
Deprecated. Use XMLSecurityDataFormat(String, Map, boolean, String, String, String, KeyStoreParameters) instead.
See Also:
Constant Field Values

XML_ENC_KEY_STORE_URL

@Deprecated
public static final String XML_ENC_KEY_STORE_URL
Deprecated. Use XMLSecurityDataFormat(String, Map, boolean, String, String, String, KeyStoreParameters) instead.
See Also:
Constant Field Values

XML_ENC_KEY_STORE_PASSWORD

@Deprecated
public static final String XML_ENC_KEY_STORE_PASSWORD
Deprecated. Use XMLSecurityDataFormat(String, Map, boolean, String, String, String, KeyStoreParameters) instead.
See Also:
Constant Field Values

XML_ENC_KEY_STORE_ALIAS

@Deprecated
public static final String XML_ENC_KEY_STORE_ALIAS
Deprecated. Use XMLSecurityDataFormat(String, Map, boolean, String, String, String, KeyStoreParameters) instead.
See Also:
Constant Field Values
Constructor Detail

XMLSecurityDataFormat

public XMLSecurityDataFormat()

XMLSecurityDataFormat

public XMLSecurityDataFormat(String secureTag,
                             boolean secureTagContents)

XMLSecurityDataFormat

public XMLSecurityDataFormat(String secureTag,
                             Map<String,String> namespaces,
                             boolean secureTagContents)

XMLSecurityDataFormat

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

XMLSecurityDataFormat

public XMLSecurityDataFormat(String secureTag,
                             Map<String,String> namespaces,
                             boolean secureTagContents,
                             byte[] passPhrase)

XMLSecurityDataFormat

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

XMLSecurityDataFormat

@Deprecated
public XMLSecurityDataFormat(String secureTag,
                                        boolean secureTagContents,
                                        String xmlCipherAlgorithm,
                                        String keyCipherAlgorithm)
Deprecated. use XMLSecurityDataFormat(String, Map, boolean, String, String, String, String) or XMLSecurityDataFormat(String, Map, boolean, String, String, String, KeyStoreParameters) instead.


XMLSecurityDataFormat

@Deprecated
public XMLSecurityDataFormat(String secureTag,
                                        boolean secureTagContents,
                                        String recipientKeyAlias,
                                        String xmlCipherAlgorithm,
                                        String keyCipherAlgorithm)
Deprecated. use XMLSecurityDataFormat(String, Map, boolean, String, String, String, String) or XMLSecurityDataFormat(String, Map, boolean, String, String, String, KeyStoreParameters) instead.


XMLSecurityDataFormat

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

XMLSecurityDataFormat

public XMLSecurityDataFormat(String secureTag,
                             boolean secureTagContents,
                             String recipientKeyAlias,
                             String xmlCipherAlgorithm,
                             String keyCipherAlgorithm,
                             String keyOrTrustStoreParametersId,
                             String keyPassword)

XMLSecurityDataFormat

public XMLSecurityDataFormat(String secureTag,
                             Map<String,String> namespaces,
                             boolean secureTagContents,
                             String recipientKeyAlias,
                             String xmlCipherAlgorithm,
                             String keyCipherAlgorithm,
                             String keyOrTrustStoreParametersId)

XMLSecurityDataFormat

public XMLSecurityDataFormat(String secureTag,
                             Map<String,String> namespaces,
                             boolean secureTagContents,
                             String recipientKeyAlias,
                             String xmlCipherAlgorithm,
                             String keyCipherAlgorithm,
                             String keyOrTrustStoreParametersId,
                             String keyPassword)

XMLSecurityDataFormat

public XMLSecurityDataFormat(String secureTag,
                             boolean secureTagContents,
                             String recipientKeyAlias,
                             String xmlCipherAlgorithm,
                             String keyCipherAlgorithm,
                             org.apache.camel.util.jsse.KeyStoreParameters keyOrTrustStoreParameters)

XMLSecurityDataFormat

public XMLSecurityDataFormat(String secureTag,
                             boolean secureTagContents,
                             String recipientKeyAlias,
                             String xmlCipherAlgorithm,
                             String keyCipherAlgorithm,
                             org.apache.camel.util.jsse.KeyStoreParameters keyOrTrustStoreParameters,
                             String keyPassword)

XMLSecurityDataFormat

public XMLSecurityDataFormat(String secureTag,
                             Map<String,String> namespaces,
                             boolean secureTagContents,
                             String recipientKeyAlias,
                             String xmlCipherAlgorithm,
                             String keyCipherAlgorithm,
                             org.apache.camel.util.jsse.KeyStoreParameters keyOrTrustStoreParameters)

XMLSecurityDataFormat

public XMLSecurityDataFormat(String secureTag,
                             Map<String,String> namespaces,
                             boolean secureTagContents,
                             String recipientKeyAlias,
                             String xmlCipherAlgorithm,
                             String keyCipherAlgorithm,
                             org.apache.camel.util.jsse.KeyStoreParameters keyOrTrustStoreParameters,
                             String keyPassword)

XMLSecurityDataFormat

public XMLSecurityDataFormat(String secureTag,
                             Map<String,String> namespaces,
                             boolean secureTagContents,
                             String recipientKeyAlias,
                             String xmlCipherAlgorithm,
                             String keyCipherAlgorithm,
                             org.apache.camel.util.jsse.KeyStoreParameters keyOrTrustStoreParameters,
                             String keyPassword,
                             String digestAlgorithm)
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

@Deprecated
public String getKeyCyperAlgorithm()
Deprecated. 


getKeyCipherAlgorithm

public String getKeyCipherAlgorithm()

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

@Deprecated
public KeyStore getKeyStore()
Deprecated. Will change to private access in the future.

Gets the KeyStore configured for this data format.


setKeyStore

@Deprecated
public void setKeyStore(KeyStore keyStore)
Deprecated. Use getKeyOrTrustStoreParameters() instead.


getTrustStore

@Deprecated
public KeyStore getTrustStore()
Deprecated. Will change to private access in the future. Use getKeyOrTrustStoreParameters() instead.


setTrustStore

@Deprecated
public void setTrustStore(KeyStore trustStore)
Deprecated. Use #setKeyOrTrustStoreParameters() instead.


getKeyStorePassword

@Deprecated
public String getKeyStorePassword()
Deprecated. Will change to private access in the future. Use getKeyOrTrustStoreParameters() instead.


setKeyStorePassword

@Deprecated
public void setKeyStorePassword(String keyStorePassword)
Deprecated. Use #setKeyOrTrustStoreParameters() instead.


getTrustStorePassword

@Deprecated
public String getTrustStorePassword()
Deprecated. Will change to private access in the future. Use #setKeyOrTrustStoreParameters() instead.


setTrustStorePassword

@Deprecated
public void setTrustStorePassword(String trustStorePassword)
Deprecated. Use #setKeyOrTrustStoreParameters() instead.


setKeyOrTrustStoreParameters

public void setKeyOrTrustStoreParameters(org.apache.camel.util.jsse.KeyStoreParameters parameters)

getKeyOrTrustStoreParameters

public org.apache.camel.util.jsse.KeyStoreParameters getKeyOrTrustStoreParameters()

setKeyOrTrustStoreParametersId

public void setKeyOrTrustStoreParametersId(String registryId)

getKeyOrTrustStoreParametersId

public String getKeyOrTrustStoreParametersId()

setNamespaces

public void setNamespaces(Map<String,String> namespaces)

setKeyPassword

public void setKeyPassword(String keyPassword)

getDigestAlgorithm

public String getDigestAlgorithm()

setDigestAlgorithm

public void setDigestAlgorithm(String digestAlgorithm)

getMgfAlgorithm

public String getMgfAlgorithm()

setMgfAlgorithm

public void setMgfAlgorithm(String mgfAlgorithm)


Apache Camel