Class XMLSecurityDataFormat
java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.dataformat.xmlsecurity.XMLSecurityDataFormat
- All Implemented Interfaces:
AutoCloseable
,org.apache.camel.CamelContextAware
,org.apache.camel.Service
,org.apache.camel.ShutdownableService
,org.apache.camel.spi.DataFormat
,org.apache.camel.spi.DataFormatName
,org.apache.camel.spi.HasCamelContext
,org.apache.camel.StatefulService
,org.apache.camel.SuspendableService
@Dataformat("xmlSecurity")
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
-
Field Summary
Fields inherited from class org.apache.camel.support.service.BaseService
BUILT, FAILED, INITIALIZED, INITIALIZING, lock, NEW, SHUTDOWN, SHUTTING_DOWN, STARTED, STARTING, status, STOPPED, STOPPING, SUSPENDED, SUSPENDING
-
Constructor Summary
ConstructorsConstructorDescriptionXMLSecurityDataFormat
(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) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doStart()
protected void
doStop()
org.apache.camel.CamelContext
org.apache.camel.support.jsse.KeyStoreParameters
byte[]
boolean
boolean
boolean
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) unmarshal
(org.apache.camel.Exchange exchange, InputStream stream) Methods inherited from class org.apache.camel.support.service.BaseService
build, doBuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.camel.spi.DataFormat
unmarshal
Methods inherited from interface org.apache.camel.Service
build, close, init, start, stop
Methods inherited from interface org.apache.camel.ShutdownableService
shutdown
Methods inherited from interface org.apache.camel.StatefulService
getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspending
Methods inherited from interface org.apache.camel.SuspendableService
isSuspended, resume, suspend
-
Constructor Details
-
XMLSecurityDataFormat
public XMLSecurityDataFormat() -
XMLSecurityDataFormat
-
XMLSecurityDataFormat
-
XMLSecurityDataFormat
-
XMLSecurityDataFormat
-
XMLSecurityDataFormat
-
XMLSecurityDataFormat
-
XMLSecurityDataFormat
-
XMLSecurityDataFormat
-
XMLSecurityDataFormat
-
XMLSecurityDataFormat
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)
-
-
Method Details
-
getDataFormatName
- Specified by:
getDataFormatName
in interfaceorg.apache.camel.spi.DataFormatName
-
setCamelContext
public void setCamelContext(org.apache.camel.CamelContext camelContext) - Specified by:
setCamelContext
in interfaceorg.apache.camel.CamelContextAware
-
getCamelContext
public org.apache.camel.CamelContext getCamelContext()- Specified by:
getCamelContext
in interfaceorg.apache.camel.spi.HasCamelContext
-
doStart
- Overrides:
doStart
in classorg.apache.camel.support.service.BaseService
- Throws:
Exception
-
doStop
- Overrides:
doStop
in classorg.apache.camel.support.service.BaseService
- Throws:
Exception
-
marshal
public void marshal(org.apache.camel.Exchange exchange, Object graph, OutputStream stream) throws Exception - Specified by:
marshal
in interfaceorg.apache.camel.spi.DataFormat
- Throws:
Exception
-
unmarshal
- Throws:
Exception
-
unmarshal
- Specified by:
unmarshal
in interfaceorg.apache.camel.spi.DataFormat
- Throws:
Exception
-
getXmlCipherAlgorithm
-
setXmlCipherAlgorithm
-
getKeyCipherAlgorithm
-
setKeyCipherAlgorithm
-
getRecipientKeyAlias
-
setRecipientKeyAlias
-
getPassPhrase
public byte[] getPassPhrase() -
setPassPhrase
public void setPassPhrase(byte[] passPhrase) -
getSecureTag
-
setSecureTag
-
isSecureTagContents
public boolean isSecureTagContents() -
getSecureTagContents
public boolean getSecureTagContents() -
setSecureTagContents
public void setSecureTagContents(boolean secureTagContents) -
setKeyOrTrustStoreParameters
public void setKeyOrTrustStoreParameters(org.apache.camel.support.jsse.KeyStoreParameters parameters) -
getKeyOrTrustStoreParameters
public org.apache.camel.support.jsse.KeyStoreParameters getKeyOrTrustStoreParameters() -
setNamespaces
-
setKeyPassword
-
getDigestAlgorithm
-
setDigestAlgorithm
-
getMgfAlgorithm
-
setMgfAlgorithm
-
isAddKeyValueForEncryptedKey
public boolean isAddKeyValueForEncryptedKey() -
setAddKeyValueForEncryptedKey
public void setAddKeyValueForEncryptedKey(boolean addKeyValueForEncryptedKey)
-