Interface CryptoComponentBuilderFactory.CryptoComponentBuilder
-
- All Superinterfaces:
ComponentBuilder<org.apache.camel.component.crypto.DigitalSignatureComponent>
- All Known Implementing Classes:
CryptoComponentBuilderFactory.CryptoComponentBuilderImpl
- Enclosing interface:
- CryptoComponentBuilderFactory
public static interface CryptoComponentBuilderFactory.CryptoComponentBuilder extends ComponentBuilder<org.apache.camel.component.crypto.DigitalSignatureComponent>
Builder for the Crypto (JCE) component.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default CryptoComponentBuilderFactory.CryptoComponentBuilderalgorithm(String algorithm)Sets the JCE name of the Algorithm that should be used for the signer.default CryptoComponentBuilderFactory.CryptoComponentBuilderalias(String alias)Sets the alias used to query the KeyStore for keys and {link java.security.cert.Certificate Certificates} to be used in signing and verifying exchanges.default CryptoComponentBuilderFactory.CryptoComponentBuilderbasicPropertyBinding(boolean basicPropertyBinding)Whether the component should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities.default CryptoComponentBuilderFactory.CryptoComponentBuilderbufferSize(Integer bufferSize)Set the size of the buffer used to read in the Exchange payload data.default CryptoComponentBuilderFactory.CryptoComponentBuildercertificate(Certificate certificate)Set the Certificate that should be used to verify the signature in the exchange based on its payload.default CryptoComponentBuilderFactory.CryptoComponentBuildercertificateName(String certificateName)Sets the reference name for a PrivateKey that can be found in the registry.default CryptoComponentBuilderFactory.CryptoComponentBuilderclearHeaders(boolean clearHeaders)Determines if the Signature specific headers be cleared after signing and verification.default CryptoComponentBuilderFactory.CryptoComponentBuilderconfiguration(org.apache.camel.component.crypto.DigitalSignatureConfiguration configuration)To use the shared DigitalSignatureConfiguration as configuration.default CryptoComponentBuilderFactory.CryptoComponentBuilderkeystore(KeyStore keystore)Sets the KeyStore that can contain keys and Certficates for use in signing and verifying exchanges.default CryptoComponentBuilderFactory.CryptoComponentBuilderkeystoreName(String keystoreName)Sets the reference name for a Keystore that can be found in the registry.default CryptoComponentBuilderFactory.CryptoComponentBuilderkeyStoreParameters(org.apache.camel.support.jsse.KeyStoreParameters keyStoreParameters)Sets the KeyStore that can contain keys and Certficates for use in signing and verifying exchanges based on the given KeyStoreParameters.default CryptoComponentBuilderFactory.CryptoComponentBuilderlazyStartProducer(boolean lazyStartProducer)Whether the producer should be started lazy (on the first message).default CryptoComponentBuilderFactory.CryptoComponentBuilderpassword(String password)Sets the password used to access an aliased PrivateKey in the KeyStore.default CryptoComponentBuilderFactory.CryptoComponentBuilderprivateKey(PrivateKey privateKey)Set the PrivateKey that should be used to sign the exchange.default CryptoComponentBuilderFactory.CryptoComponentBuilderprivateKeyName(String privateKeyName)Sets the reference name for a PrivateKey that can be found in the registry.default CryptoComponentBuilderFactory.CryptoComponentBuilderprovider(String provider)Set the id of the security provider that provides the configured Signature algorithm.default CryptoComponentBuilderFactory.CryptoComponentBuilderpublicKey(PublicKey publicKey)Set the PublicKey that should be used to verify the signature in the exchange.default CryptoComponentBuilderFactory.CryptoComponentBuilderpublicKeyName(String publicKeyName)references that should be resolved when the context changes.default CryptoComponentBuilderFactory.CryptoComponentBuildersecureRandom(SecureRandom secureRandom)Set the SecureRandom used to initialize the Signature service.default CryptoComponentBuilderFactory.CryptoComponentBuildersecureRandomName(String secureRandomName)Sets the reference name for a SecureRandom that can be found in the registry.default CryptoComponentBuilderFactory.CryptoComponentBuildersignatureHeaderName(String signatureHeaderName)Set the name of the message header that should be used to store the base64 encoded signature.-
Methods inherited from interface org.apache.camel.builder.component.ComponentBuilder
build, build, doSetProperty, register
-
-
-
-
Method Detail
-
algorithm
default CryptoComponentBuilderFactory.CryptoComponentBuilder algorithm(String algorithm)
Sets the JCE name of the Algorithm that should be used for the signer. The option is a:java.lang.Stringtype. Default: SHA256withRSA Group: producer
-
alias
default CryptoComponentBuilderFactory.CryptoComponentBuilder alias(String alias)
Sets the alias used to query the KeyStore for keys and {link java.security.cert.Certificate Certificates} to be used in signing and verifying exchanges. This value can be provided at runtime via the message header org.apache.camel.component.crypto.DigitalSignatureConstants#KEYSTORE_ALIAS. The option is a:java.lang.Stringtype. Group: producer
-
certificateName
default CryptoComponentBuilderFactory.CryptoComponentBuilder certificateName(String certificateName)
Sets the reference name for a PrivateKey that can be found in the registry. The option is a:java.lang.Stringtype. Group: producer
-
keystore
default CryptoComponentBuilderFactory.CryptoComponentBuilder keystore(KeyStore keystore)
Sets the KeyStore that can contain keys and Certficates for use in signing and verifying exchanges. A KeyStore is typically used with an alias, either one supplied in the Route definition or dynamically via the message header CamelSignatureKeyStoreAlias. If no alias is supplied and there is only a single entry in the Keystore, then this single entry will be used. The option is a:java.security.KeyStoretype. Group: producer
-
keystoreName
default CryptoComponentBuilderFactory.CryptoComponentBuilder keystoreName(String keystoreName)
Sets the reference name for a Keystore that can be found in the registry. The option is a:java.lang.Stringtype. Group: producer
-
lazyStartProducer
default CryptoComponentBuilderFactory.CryptoComponentBuilder lazyStartProducer(boolean lazyStartProducer)
Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. The option is a:booleantype. Default: false Group: producer
-
privateKey
default CryptoComponentBuilderFactory.CryptoComponentBuilder privateKey(PrivateKey privateKey)
Set the PrivateKey that should be used to sign the exchange. The option is a:java.security.PrivateKeytype. Group: producer
-
privateKeyName
default CryptoComponentBuilderFactory.CryptoComponentBuilder privateKeyName(String privateKeyName)
Sets the reference name for a PrivateKey that can be found in the registry. The option is a:java.lang.Stringtype. Group: producer
-
provider
default CryptoComponentBuilderFactory.CryptoComponentBuilder provider(String provider)
Set the id of the security provider that provides the configured Signature algorithm. The option is a:java.lang.Stringtype. Group: producer
-
publicKeyName
default CryptoComponentBuilderFactory.CryptoComponentBuilder publicKeyName(String publicKeyName)
references that should be resolved when the context changes. The option is a:java.lang.Stringtype. Group: producer
-
secureRandomName
default CryptoComponentBuilderFactory.CryptoComponentBuilder secureRandomName(String secureRandomName)
Sets the reference name for a SecureRandom that can be found in the registry. The option is a:java.lang.Stringtype. Group: producer
-
signatureHeaderName
default CryptoComponentBuilderFactory.CryptoComponentBuilder signatureHeaderName(String signatureHeaderName)
Set the name of the message header that should be used to store the base64 encoded signature. This defaults to 'CamelDigitalSignature'. The option is a:java.lang.Stringtype. Group: producer
-
basicPropertyBinding
default CryptoComponentBuilderFactory.CryptoComponentBuilder basicPropertyBinding(boolean basicPropertyBinding)
Whether the component should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities. The option is a:booleantype. Default: false Group: advanced
-
bufferSize
default CryptoComponentBuilderFactory.CryptoComponentBuilder bufferSize(Integer bufferSize)
Set the size of the buffer used to read in the Exchange payload data. The option is a:java.lang.Integertype. Default: 2048 Group: advanced
-
certificate
default CryptoComponentBuilderFactory.CryptoComponentBuilder certificate(Certificate certificate)
Set the Certificate that should be used to verify the signature in the exchange based on its payload. The option is a:java.security.cert.Certificatetype. Group: advanced
-
clearHeaders
default CryptoComponentBuilderFactory.CryptoComponentBuilder clearHeaders(boolean clearHeaders)
Determines if the Signature specific headers be cleared after signing and verification. Defaults to true, and should only be made otherwise at your extreme peril as vital private information such as Keys and passwords may escape if unset. The option is a:booleantype. Default: true Group: advanced
-
configuration
default CryptoComponentBuilderFactory.CryptoComponentBuilder configuration(org.apache.camel.component.crypto.DigitalSignatureConfiguration configuration)
To use the shared DigitalSignatureConfiguration as configuration. The option is a:org.apache.camel.component.crypto.DigitalSignatureConfigurationtype. Group: advanced
-
keyStoreParameters
default CryptoComponentBuilderFactory.CryptoComponentBuilder keyStoreParameters(org.apache.camel.support.jsse.KeyStoreParameters keyStoreParameters)
Sets the KeyStore that can contain keys and Certficates for use in signing and verifying exchanges based on the given KeyStoreParameters. A KeyStore is typically used with an alias, either one supplied in the Route definition or dynamically via the message header CamelSignatureKeyStoreAlias. If no alias is supplied and there is only a single entry in the Keystore, then this single entry will be used. The option is a:org.apache.camel.support.jsse.KeyStoreParameterstype. Group: advanced
-
publicKey
default CryptoComponentBuilderFactory.CryptoComponentBuilder publicKey(PublicKey publicKey)
Set the PublicKey that should be used to verify the signature in the exchange. The option is a:java.security.PublicKeytype. Group: advanced
-
secureRandom
default CryptoComponentBuilderFactory.CryptoComponentBuilder secureRandom(SecureRandom secureRandom)
Set the SecureRandom used to initialize the Signature service. The option is a:java.security.SecureRandomtype. Group: advanced
-
password
default CryptoComponentBuilderFactory.CryptoComponentBuilder password(String password)
Sets the password used to access an aliased PrivateKey in the KeyStore. The option is a:java.lang.Stringtype. Group: security
-
-