Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions components/camel-pqc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@
<groupId>org.apache.camel</groupId>
<artifactId>camel-support</artifactId>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-health</artifactId>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk18on</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ public boolean configure(CamelContext camelContext, Object obj, String name, Obj
case "signaturealgorithm":
case "signatureAlgorithm": getOrCreateConfiguration(target).setSignatureAlgorithm(property(camelContext, java.lang.String.class, value)); return true;
case "signer": getOrCreateConfiguration(target).setSigner(property(camelContext, java.security.Signature.class, value)); return true;
case "statefulkeywarningthreshold":
case "statefulKeyWarningThreshold": getOrCreateConfiguration(target).setStatefulKeyWarningThreshold(property(camelContext, double.class, value)); return true;
case "storeextractedsecretkeyasheader":
case "storeExtractedSecretKeyAsHeader": getOrCreateConfiguration(target).setStoreExtractedSecretKeyAsHeader(property(camelContext, boolean.class, value)); return true;
case "strictkeylifecycle":
Expand Down Expand Up @@ -128,6 +130,8 @@ public Class<?> getOptionType(String name, boolean ignoreCase) {
case "signaturealgorithm":
case "signatureAlgorithm": return java.lang.String.class;
case "signer": return java.security.Signature.class;
case "statefulkeywarningthreshold":
case "statefulKeyWarningThreshold": return double.class;
case "storeextractedsecretkeyasheader":
case "storeExtractedSecretKeyAsHeader": return boolean.class;
case "strictkeylifecycle":
Expand Down Expand Up @@ -183,6 +187,8 @@ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
case "signaturealgorithm":
case "signatureAlgorithm": return getOrCreateConfiguration(target).getSignatureAlgorithm();
case "signer": return getOrCreateConfiguration(target).getSigner();
case "statefulkeywarningthreshold":
case "statefulKeyWarningThreshold": return getOrCreateConfiguration(target).getStatefulKeyWarningThreshold();
case "storeextractedsecretkeyasheader":
case "storeExtractedSecretKeyAsHeader": return getOrCreateConfiguration(target).isStoreExtractedSecretKeyAsHeader();
case "strictkeylifecycle":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ public boolean configure(CamelContext camelContext, Object obj, String name, Obj
case "signaturealgorithm":
case "signatureAlgorithm": target.getConfiguration().setSignatureAlgorithm(property(camelContext, java.lang.String.class, value)); return true;
case "signer": target.getConfiguration().setSigner(property(camelContext, java.security.Signature.class, value)); return true;
case "statefulkeywarningthreshold":
case "statefulKeyWarningThreshold": target.getConfiguration().setStatefulKeyWarningThreshold(property(camelContext, double.class, value)); return true;
case "storeextractedsecretkeyasheader":
case "storeExtractedSecretKeyAsHeader": target.getConfiguration().setStoreExtractedSecretKeyAsHeader(property(camelContext, boolean.class, value)); return true;
case "strictkeylifecycle":
Expand Down Expand Up @@ -107,6 +109,8 @@ public Class<?> getOptionType(String name, boolean ignoreCase) {
case "signaturealgorithm":
case "signatureAlgorithm": return java.lang.String.class;
case "signer": return java.security.Signature.class;
case "statefulkeywarningthreshold":
case "statefulKeyWarningThreshold": return double.class;
case "storeextractedsecretkeyasheader":
case "storeExtractedSecretKeyAsHeader": return boolean.class;
case "strictkeylifecycle":
Expand Down Expand Up @@ -155,6 +159,8 @@ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
case "signaturealgorithm":
case "signatureAlgorithm": return target.getConfiguration().getSignatureAlgorithm();
case "signer": return target.getConfiguration().getSigner();
case "statefulkeywarningthreshold":
case "statefulKeyWarningThreshold": return target.getConfiguration().getStatefulKeyWarningThreshold();
case "storeextractedsecretkeyasheader":
case "storeExtractedSecretKeyAsHeader": return target.getConfiguration().isStoreExtractedSecretKeyAsHeader();
case "strictkeylifecycle":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class PQCEndpointUriFactory extends org.apache.camel.support.component.En
private static final Set<String> SECRET_PROPERTY_NAMES;
private static final Map<String, String> MULTI_VALUE_PREFIXES;
static {
Set<String> props = new HashSet<>(22);
Set<String> props = new HashSet<>(23);
props.add("classicalKEMAlgorithm");
props.add("classicalKeyAgreement");
props.add("classicalKeyPair");
Expand All @@ -42,6 +42,7 @@ public class PQCEndpointUriFactory extends org.apache.camel.support.component.En
props.add("operation");
props.add("signatureAlgorithm");
props.add("signer");
props.add("statefulKeyWarningThreshold");
props.add("storeExtractedSecretKeyAsHeader");
props.add("strictKeyLifecycle");
props.add("symmetricKeyAlgorithm");
Expand Down
Loading
Loading