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.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
-
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoStart()protected voiddoStop()org.apache.camel.CamelContextgetCamelContext()StringgetDataFormatName()StringgetDigestAlgorithm()StringgetKeyCipherAlgorithm()org.apache.camel.support.jsse.KeyStoreParametersgetKeyOrTrustStoreParameters()StringgetMgfAlgorithm()byte[]getPassPhrase()StringgetRecipientKeyAlias()StringgetSecureTag()booleangetSecureTagContents()StringgetXmlCipherAlgorithm()booleanisAddKeyValueForEncryptedKey()booleanisSecureTagContents()voidmarshal(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)Objectunmarshal(org.apache.camel.Exchange exchange, InputStream stream)Objectunmarshal(org.apache.camel.Exchange exchange, Document document)-
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
-
-
-
-
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
public XMLSecurityDataFormat(String secureTag, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm, org.apache.camel.support.jsse.KeyStoreParameters keyOrTrustStoreParameters)
-
XMLSecurityDataFormat
public XMLSecurityDataFormat(String secureTag, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm, org.apache.camel.support.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.support.jsse.KeyStoreParameters keyOrTrustStoreParameters)
-
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)
-
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 Detail
-
getDataFormatName
public String 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.CamelContextAware
-
doStart
protected void doStart() throws Exception- Overrides:
doStartin classorg.apache.camel.support.service.BaseService- Throws:
Exception
-
doStop
protected void doStop() throws Exception- 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
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:
unmarshalin interfaceorg.apache.camel.spi.DataFormat- Throws:
Exception
-
getXmlCipherAlgorithm
public String getXmlCipherAlgorithm()
-
setXmlCipherAlgorithm
public void setXmlCipherAlgorithm(String xmlCipherAlgorithm)
-
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)
-
setKeyOrTrustStoreParameters
public void setKeyOrTrustStoreParameters(org.apache.camel.support.jsse.KeyStoreParameters parameters)
-
getKeyOrTrustStoreParameters
public org.apache.camel.support.jsse.KeyStoreParameters getKeyOrTrustStoreParameters()
-
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)
-
isAddKeyValueForEncryptedKey
public boolean isAddKeyValueForEncryptedKey()
-
setAddKeyValueForEncryptedKey
public void setAddKeyValueForEncryptedKey(boolean addKeyValueForEncryptedKey)
-
-