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 voiddoStart()protected voiddoStop()org.apache.camel.CamelContextorg.apache.camel.support.jsse.KeyStoreParametersbyte[]booleanbooleanbooleanvoidmarshal(org.apache.camel.Exchange exchange, Object graph, OutputStream stream) voidsetAddKeyValueForEncryptedKey(boolean addKeyValueForEncryptedKey) voidsetCamelContext(org.apache.camel.CamelContext camelContext) voidsetDigestAlgorithm(String digestAlgorithm) voidsetKeyCipherAlgorithm(String keyCipherAlgorithm) voidsetKeyOrTrustStoreParameters(org.apache.camel.support.jsse.KeyStoreParameters parameters) voidsetKeyPassword(String keyPassword) voidsetMgfAlgorithm(String mgfAlgorithm) voidsetNamespaces(Map<String, String> namespaces) voidsetPassPhrase(byte[] passPhrase) voidsetRecipientKeyAlias(String recipientKeyAlias) voidsetSecureTag(String secureTag) voidsetSecureTagContents(boolean secureTagContents) voidsetXmlCipherAlgorithm(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, getInternalLock, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.camel.spi.DataFormat
unmarshalMethods inherited from interface org.apache.camel.Service
build, close, init, start, stopMethods inherited from interface org.apache.camel.ShutdownableService
shutdownMethods inherited from interface org.apache.camel.StatefulService
getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspendingMethods 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:
getDataFormatNamein interfaceorg.apache.camel.spi.DataFormatName
-
setCamelContext
public void setCamelContext(org.apache.camel.CamelContext camelContext) - Specified by:
setCamelContextin interfaceorg.apache.camel.CamelContextAware
-
getCamelContext
public org.apache.camel.CamelContext getCamelContext()- Specified by:
getCamelContextin interfaceorg.apache.camel.spi.HasCamelContext
-
doStart
- Overrides:
doStartin classorg.apache.camel.support.service.BaseService- Throws:
Exception
-
doStop
- Overrides:
doStopin 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:
marshalin interfaceorg.apache.camel.spi.DataFormat- Throws:
Exception
-
unmarshal
- Throws:
Exception
-
unmarshal
- Specified by:
unmarshalin 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() -
getKeyPassword
-
setKeyPassword
-
getDigestAlgorithm
-
setDigestAlgorithm
-
getMgfAlgorithm
-
setMgfAlgorithm
-
isAddKeyValueForEncryptedKey
public boolean isAddKeyValueForEncryptedKey() -
setAddKeyValueForEncryptedKey
public void setAddKeyValueForEncryptedKey(boolean addKeyValueForEncryptedKey) -
getNamespaces
-
setNamespaces
-