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 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, InputStream stream)
Object
unmarshal(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:
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.CamelContextAware
-
doStart
protected void doStart() throws Exception
- Overrides:
doStart
in classorg.apache.camel.support.service.BaseService
- Throws:
Exception
-
doStop
protected void doStop() throws Exception
- 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
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 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)
-
-