@Dataformat(value="secureXML")
public class XMLSecurityDataFormat
extends org.apache.camel.support.service.ServiceSupport
implements org.apache.camel.spi.DataFormat, org.apache.camel.spi.DataFormatName, org.apache.camel.CamelContextAware
Constructor and Description |
---|
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 recipientKeyAlias,
String xmlCipherAlgorithm,
String keyCipherAlgorithm,
org.apache.camel.support.jsse.KeyStoreParameters keyOrTrustStoreParameters) |
XMLSecurityDataFormat(String secureTag,
boolean secureTagContents,
String recipientKeyAlias,
String xmlCipherAlgorithm,
String keyCipherAlgorithm,
org.apache.camel.support.jsse.KeyStoreParameters keyOrTrustStoreParameters,
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.support.jsse.KeyStoreParameters keyOrTrustStoreParameters) |
XMLSecurityDataFormat(String secureTag,
Map<String,String> namespaces,
boolean secureTagContents,
String recipientKeyAlias,
String xmlCipherAlgorithm,
String keyCipherAlgorithm,
org.apache.camel.support.jsse.KeyStoreParameters keyOrTrustStoreParameters,
String keyPassword) |
XMLSecurityDataFormat(String secureTag,
Map<String,String> namespaces,
boolean secureTagContents,
String recipientKeyAlias,
String xmlCipherAlgorithm,
String keyCipherAlgorithm,
org.apache.camel.support.jsse.KeyStoreParameters keyOrTrustStoreParameters,
String keyPassword,
String digestAlgorithm) |
Modifier and Type | Method and Description |
---|---|
protected void |
doStart() |
protected void |
doStop() |
org.apache.camel.CamelContext |
getCamelContext() |
String |
getDataFormatName() |
String |
getDigestAlgorithm() |
String |
getKeyCipherAlgorithm() |
org.apache.camel.support.jsse.KeyStoreParameters |
getKeyOrTrustStoreParameters() |
String |
getMgfAlgorithm() |
byte[] |
getPassPhrase() |
String |
getRecipientKeyAlias() |
String |
getSecureTag() |
boolean |
getSecureTagContents() |
String |
getXmlCipherAlgorithm() |
boolean |
isAddKeyValueForEncryptedKey() |
boolean |
isSecureTagContents() |
void |
marshal(org.apache.camel.Exchange exchange,
Object graph,
OutputStream stream) |
void |
setAddKeyValueForEncryptedKey(boolean addKeyValueForEncryptedKey) |
void |
setCamelContext(org.apache.camel.CamelContext camelContext) |
void |
setDigestAlgorithm(String digestAlgorithm) |
void |
setKeyCipherAlgorithm(String keyCipherAlgorithm) |
void |
setKeyOrTrustStoreParameters(org.apache.camel.support.jsse.KeyStoreParameters parameters) |
void |
setKeyPassword(String keyPassword) |
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 |
setXmlCipherAlgorithm(String xmlCipherAlgorithm) |
Object |
unmarshal(org.apache.camel.Exchange exchange,
Document document) |
Object |
unmarshal(org.apache.camel.Exchange exchange,
InputStream stream) |
build, doBuild, doInit, doResume, doShutdown, doSuspend, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
public XMLSecurityDataFormat()
public XMLSecurityDataFormat(String secureTag, boolean secureTagContents)
public XMLSecurityDataFormat(String secureTag, Map<String,String> namespaces, boolean secureTagContents)
public XMLSecurityDataFormat(String secureTag, boolean secureTagContents, byte[] passPhrase)
public XMLSecurityDataFormat(String secureTag, Map<String,String> namespaces, boolean secureTagContents, byte[] passPhrase)
public XMLSecurityDataFormat(String secureTag, boolean secureTagContents, byte[] passPhrase, String xmlCipherAlgorithm)
public XMLSecurityDataFormat(String secureTag, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm, org.apache.camel.support.jsse.KeyStoreParameters keyOrTrustStoreParameters)
public XMLSecurityDataFormat(String secureTag, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm, org.apache.camel.support.jsse.KeyStoreParameters keyOrTrustStoreParameters, String keyPassword)
public XMLSecurityDataFormat(String secureTag, Map<String,String> namespaces, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm, org.apache.camel.support.jsse.KeyStoreParameters keyOrTrustStoreParameters)
public XMLSecurityDataFormat(String secureTag, Map<String,String> namespaces, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm, org.apache.camel.support.jsse.KeyStoreParameters keyOrTrustStoreParameters, String keyPassword)
public XMLSecurityDataFormat(String secureTag, Map<String,String> namespaces, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm, org.apache.camel.support.jsse.KeyStoreParameters keyOrTrustStoreParameters, String keyPassword, String digestAlgorithm)
public String getDataFormatName()
getDataFormatName
in interface org.apache.camel.spi.DataFormatName
public void setCamelContext(org.apache.camel.CamelContext camelContext)
setCamelContext
in interface org.apache.camel.CamelContextAware
public org.apache.camel.CamelContext getCamelContext()
getCamelContext
in interface org.apache.camel.CamelContextAware
protected void doStart() throws Exception
doStart
in class org.apache.camel.support.service.ServiceSupport
Exception
protected void doStop() throws Exception
doStop
in class org.apache.camel.support.service.ServiceSupport
Exception
public void marshal(org.apache.camel.Exchange exchange, Object graph, OutputStream stream) throws Exception
marshal
in interface org.apache.camel.spi.DataFormat
Exception
public Object unmarshal(org.apache.camel.Exchange exchange, Document document) throws Exception
Exception
public Object unmarshal(org.apache.camel.Exchange exchange, InputStream stream) throws Exception
unmarshal
in interface org.apache.camel.spi.DataFormat
Exception
public String getXmlCipherAlgorithm()
public void setXmlCipherAlgorithm(String xmlCipherAlgorithm)
public String getKeyCipherAlgorithm()
public void setKeyCipherAlgorithm(String keyCipherAlgorithm)
public String getRecipientKeyAlias()
public void setRecipientKeyAlias(String recipientKeyAlias)
public byte[] getPassPhrase()
public void setPassPhrase(byte[] passPhrase)
public String getSecureTag()
public void setSecureTag(String secureTag)
public boolean isSecureTagContents()
public boolean getSecureTagContents()
public void setSecureTagContents(boolean secureTagContents)
public void setKeyOrTrustStoreParameters(org.apache.camel.support.jsse.KeyStoreParameters parameters)
public org.apache.camel.support.jsse.KeyStoreParameters getKeyOrTrustStoreParameters()
public void setKeyPassword(String keyPassword)
public String getDigestAlgorithm()
public void setDigestAlgorithm(String digestAlgorithm)
public String getMgfAlgorithm()
public void setMgfAlgorithm(String mgfAlgorithm)
public boolean isAddKeyValueForEncryptedKey()
public void setAddKeyValueForEncryptedKey(boolean addKeyValueForEncryptedKey)
Apache Camel