@Metadata(label="dataformat,transformation", title="XML Security") public class XMLSecurityDataFormat extends DataFormatDefinition implements NamespaceAware
Constructor and Description |
---|
XMLSecurityDataFormat() |
XMLSecurityDataFormat(String secureTag,
boolean secureTagContents)
Deprecated.
|
XMLSecurityDataFormat(String secureTag,
boolean secureTagContents,
String passPhrase)
Deprecated.
|
XMLSecurityDataFormat(String secureTag,
boolean secureTagContents,
String passPhrase,
String xmlCipherAlgorithm)
Deprecated.
|
XMLSecurityDataFormat(String secureTag,
boolean secureTagContents,
String recipientKeyAlias,
String xmlCipherAlgorithm,
String keyCipherAlgorithm)
|
XMLSecurityDataFormat(String secureTag,
boolean secureTagContents,
String recipientKeyAlias,
String xmlCipherAlgorithm,
String keyCipherAlgorithm,
KeyStoreParameters keyOrTrustStoreParameters)
Deprecated.
|
XMLSecurityDataFormat(String secureTag,
boolean secureTagContents,
String recipientKeyAlias,
String xmlCipherAlgorithm,
String keyCipherAlgorithm,
KeyStoreParameters keyOrTrustStoreParameters,
String keyPassword)
Deprecated.
|
XMLSecurityDataFormat(String secureTag,
boolean secureTagContents,
String recipientKeyAlias,
String xmlCipherAlgorithm,
String keyCipherAlgorithm,
String keyOrTrustStoreParametersId)
Deprecated.
|
XMLSecurityDataFormat(String secureTag,
boolean secureTagContents,
String recipientKeyAlias,
String xmlCipherAlgorithm,
String keyCipherAlgorithm,
String keyOrTrustStoreParametersId,
String keyPassword)
Deprecated.
|
XMLSecurityDataFormat(String secureTag,
Map<String,String> namespaces,
boolean secureTagContents)
Deprecated.
|
XMLSecurityDataFormat(String secureTag,
Map<String,String> namespaces,
boolean secureTagContents,
String passPhrase)
Deprecated.
|
XMLSecurityDataFormat(String secureTag,
Map<String,String> namespaces,
boolean secureTagContents,
String passPhrase,
String xmlCipherAlgorithm)
Deprecated.
|
XMLSecurityDataFormat(String secureTag,
Map<String,String> namespaces,
boolean secureTagContents,
String recipientKeyAlias,
String xmlCipherAlgorithm,
String keyCipherAlgorithm)
|
XMLSecurityDataFormat(String secureTag,
Map<String,String> namespaces,
boolean secureTagContents,
String recipientKeyAlias,
String xmlCipherAlgorithm,
String keyCipherAlgorithm,
KeyStoreParameters keyOrTrustStoreParameters)
Deprecated.
|
XMLSecurityDataFormat(String secureTag,
Map<String,String> namespaces,
boolean secureTagContents,
String recipientKeyAlias,
String xmlCipherAlgorithm,
String keyCipherAlgorithm,
KeyStoreParameters keyOrTrustStoreParameters,
String keyPassword)
Deprecated.
|
XMLSecurityDataFormat(String secureTag,
Map<String,String> namespaces,
boolean secureTagContents,
String recipientKeyAlias,
String xmlCipherAlgorithm,
String keyCipherAlgorithm,
KeyStoreParameters keyOrTrustStoreParameters,
String keyPassword,
String digestAlgorithm)
Deprecated.
|
XMLSecurityDataFormat(String secureTag,
Map<String,String> namespaces,
boolean secureTagContents,
String recipientKeyAlias,
String xmlCipherAlgorithm,
String keyCipherAlgorithm,
String keyOrTrustStoreParametersId)
Deprecated.
|
XMLSecurityDataFormat(String secureTag,
Map<String,String> namespaces,
boolean secureTagContents,
String recipientKeyAlias,
String xmlCipherAlgorithm,
String keyCipherAlgorithm,
String keyOrTrustStoreParametersId,
String keyPassword)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
configureDataFormat(DataFormat dataFormat,
CamelContext camelContext)
Allows derived classes to customize the data format
|
Boolean |
getAddKeyValueForEncryptedKey() |
String |
getDigestAlgorithm() |
String |
getKeyCipherAlgorithm() |
KeyStoreParameters |
getKeyOrTrustStoreParameters() |
String |
getKeyOrTrustStoreParametersId() |
String |
getKeyPassword() |
String |
getMgfAlgorithm() |
String |
getPassPhrase() |
String |
getRecipientKeyAlias() |
String |
getSecureTag() |
Boolean |
getSecureTagContents() |
String |
getXmlCipherAlgorithm() |
void |
setAddKeyValueForEncryptedKey(Boolean addKeyValueForEncryptedKey)
Whether to add the public key used to encrypt the session key as a KeyValue in the EncryptedKey structure or not.
|
void |
setDigestAlgorithm(String digestAlgorithm)
The digest algorithm to use with the RSA OAEP algorithm.
|
void |
setKeyCipherAlgorithm(String keyCipherAlgorithm)
The cipher algorithm to be used for encryption/decryption of the asymmetric key.
|
void |
setKeyOrTrustStoreParametersId(String id)
Refers to a KeyStore instance to lookup in the registry, which is used for
configuration options for creating and loading a KeyStore instance that represents the sender's trustStore or recipient's keyStore.
|
void |
setKeyPassword(String keyPassword)
The password to be used for retrieving the private key from the KeyStore.
|
void |
setMgfAlgorithm(String mgfAlgorithm)
The MGF Algorithm to use with the RSA OAEP algorithm.
|
void |
setNamespaces(Map<String,String> nspaces)
Injects the XML Namespaces of prefix -> uri mappings
|
void |
setPassPhrase(String passPhrase)
A String used as passPhrase to encrypt/decrypt content.
|
void |
setRecipientKeyAlias(String recipientKeyAlias)
The key alias to be used when retrieving the recipient's public or private key from a KeyStore when performing asymmetric key encryption or decryption.
|
void |
setSecureTag(String secureTag)
The XPath reference to the XML Element selected for encryption/decryption.
|
void |
setSecureTagContents(Boolean secureTagContents)
A boolean value to specify whether the XML Element is to be encrypted or the contents of the XML Element
false = Element Level
true = Element Content Level
|
void |
setXmlCipherAlgorithm(String xmlCipherAlgorithm)
The cipher algorithm to be used for encryption/decryption of the XML message content.
|
configureDataFormat, createDataFormat, getDataFormat, getDataFormat, getDataFormat, getDataFormatName, getShortName, setDataFormat, setDataFormatName, setProperty, setProperty
getId, setId
public XMLSecurityDataFormat()
@Deprecated public XMLSecurityDataFormat(String secureTag, boolean secureTagContents)
@Deprecated public XMLSecurityDataFormat(String secureTag, Map<String,String> namespaces, boolean secureTagContents)
@Deprecated public XMLSecurityDataFormat(String secureTag, boolean secureTagContents, String passPhrase)
@Deprecated public XMLSecurityDataFormat(String secureTag, Map<String,String> namespaces, boolean secureTagContents, String passPhrase)
@Deprecated public XMLSecurityDataFormat(String secureTag, boolean secureTagContents, String passPhrase, String xmlCipherAlgorithm)
@Deprecated public XMLSecurityDataFormat(String secureTag, Map<String,String> namespaces, boolean secureTagContents, String passPhrase, String xmlCipherAlgorithm)
@Deprecated public XMLSecurityDataFormat(String secureTag, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm)
@Deprecated public XMLSecurityDataFormat(String secureTag, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm, String keyOrTrustStoreParametersId)
@Deprecated public XMLSecurityDataFormat(String secureTag, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm, KeyStoreParameters keyOrTrustStoreParameters)
@Deprecated public XMLSecurityDataFormat(String secureTag, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm, String keyOrTrustStoreParametersId, String keyPassword)
@Deprecated public XMLSecurityDataFormat(String secureTag, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm, KeyStoreParameters keyOrTrustStoreParameters, String keyPassword)
@Deprecated public XMLSecurityDataFormat(String secureTag, Map<String,String> namespaces, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm)
@Deprecated public XMLSecurityDataFormat(String secureTag, Map<String,String> namespaces, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm, String keyOrTrustStoreParametersId)
@Deprecated public XMLSecurityDataFormat(String secureTag, Map<String,String> namespaces, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm, KeyStoreParameters keyOrTrustStoreParameters)
@Deprecated public XMLSecurityDataFormat(String secureTag, Map<String,String> namespaces, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm, String keyOrTrustStoreParametersId, String keyPassword)
@Deprecated public XMLSecurityDataFormat(String secureTag, Map<String,String> namespaces, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm, KeyStoreParameters keyOrTrustStoreParameters, String keyPassword)
@Deprecated public XMLSecurityDataFormat(String secureTag, Map<String,String> namespaces, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm, KeyStoreParameters keyOrTrustStoreParameters, String keyPassword, String digestAlgorithm)
protected void configureDataFormat(DataFormat dataFormat, CamelContext camelContext)
DataFormatDefinition
configureDataFormat
in class DataFormatDefinition
public String getXmlCipherAlgorithm()
public void setXmlCipherAlgorithm(String xmlCipherAlgorithm)
public String getPassPhrase()
public void setPassPhrase(String passPhrase)
public String getSecureTag()
public void setSecureTag(String secureTag)
public Boolean getSecureTagContents()
public void setSecureTagContents(Boolean secureTagContents)
public void setKeyCipherAlgorithm(String keyCipherAlgorithm)
public String getKeyCipherAlgorithm()
public void setRecipientKeyAlias(String recipientKeyAlias)
public String getRecipientKeyAlias()
public void setKeyOrTrustStoreParametersId(String id)
public String getKeyOrTrustStoreParametersId()
public KeyStoreParameters getKeyOrTrustStoreParameters()
public String getKeyPassword()
public void setKeyPassword(String keyPassword)
public String getDigestAlgorithm()
public void setDigestAlgorithm(String digestAlgorithm)
public String getMgfAlgorithm()
public void setMgfAlgorithm(String mgfAlgorithm)
public Boolean getAddKeyValueForEncryptedKey()
public void setAddKeyValueForEncryptedKey(Boolean addKeyValueForEncryptedKey)
public void setNamespaces(Map<String,String> nspaces)
NamespaceAware
setNamespaces
in interface NamespaceAware
nspaces
- the XML namespaces with the key of prefixes and the value the URIsApache Camel