Class 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 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 interface org.apache.camel.spi.DataFormatName
      • setCamelContext

        public void setCamelContext​(org.apache.camel.CamelContext camelContext)
        Specified by:
        setCamelContext in interface org.apache.camel.CamelContextAware
      • getCamelContext

        public org.apache.camel.CamelContext getCamelContext()
        Specified by:
        getCamelContext in interface org.apache.camel.CamelContextAware
      • doStart

        protected void doStart()
                        throws Exception
        Overrides:
        doStart in class org.apache.camel.support.service.BaseService
        Throws:
        Exception
      • doStop

        protected void doStop()
                       throws Exception
        Overrides:
        doStop in class org.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 interface org.apache.camel.spi.DataFormat
        Throws:
        Exception
      • unmarshal

        public Object unmarshal​(org.apache.camel.Exchange exchange,
                                InputStream stream)
                         throws Exception
        Specified by:
        unmarshal in interface org.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()
      • setNamespaces

        public void setNamespaces​(Map<String,​String> namespaces)
      • 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)