Class SecurityConfigurationProperties
java.lang.Object
org.apache.camel.main.SecurityConfigurationProperties
- All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.camel.spi.BootstrapCloseable
@Configurer(extended=true)
public class SecurityConfigurationProperties
extends Object
implements org.apache.camel.spi.BootstrapCloseable
Security policy configuration for Camel applications.
Controls how Camel reacts to insecure configuration at startup. Policies can be set globally or per security category:
allow— no warnings, allow the configurationwarn— log a warning at startup (default)fail— throw an exception and prevent startup
- Since:
- 4.19.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()end()Returns the allowed properties as a set.booleanWhether the given property key is in the allowed list.resolvePolicy(String category) Resolve the effective policy for a given security category.voidsetAllowedProperties(String allowedProperties) Comma-separated list of property keys to exclude from security policy checks.voidsetInsecureDevPolicy(String insecureDevPolicy) Security policy for development-only features.voidsetInsecureSerializationPolicy(String insecureSerializationPolicy) Security policy for insecure deserialization configuration.voidsetInsecureSslPolicy(String insecureSslPolicy) Security policy for insecure SSL/TLS configuration.voidGlobal security policy applied to all categories unless overridden.voidsetSecretPolicy(String secretPolicy) Security policy for plain-text secrets.
-
Constructor Details
-
SecurityConfigurationProperties
-
-
Method Details
-
end
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
getPolicy
-
setPolicy
Global security policy applied to all categories unless overridden. Controls how Camel reacts when insecure configuration is detected at startup. -
getSecretPolicy
-
setSecretPolicy
Security policy for plain-text secrets. When set, overrides the global policy for properties that contain sensitive values configured as plain text. -
getInsecureSslPolicy
-
setInsecureSslPolicy
Security policy for insecure SSL/TLS configuration. When set, overrides the global policy for options that disable certificate validation or hostname verification. -
getInsecureSerializationPolicy
-
setInsecureSerializationPolicy
Security policy for insecure deserialization configuration. When set, overrides the global policy for options that enable dangerous deserialization of untrusted data. -
getInsecureDevPolicy
-
setInsecureDevPolicy
Security policy for development-only features. When set, overrides the global policy for options intended only for development environments. -
getAllowedProperties
-
setAllowedProperties
Comma-separated list of property keys to exclude from security policy checks. Use full property paths to allow specific properties regardless of the configured policy. -
resolvePolicy
-
isAllowed
Whether the given property key is in the allowed list. -
getAllowedPropertySet
-