From 02ce6f98ef33e1a86caa8ba9a7e5912e8f6f8480 Mon Sep 17 00:00:00 2001 From: Rostislav Svoboda Date: Wed, 30 Nov 2022 14:40:40 +0100 Subject: [PATCH] Follow the recommendation to add the name for the credential provider --- .../main/java/io/quarkus/it/bouncycastle/SecretProvider.java | 2 ++ .../bouncycastle-jsse/src/main/resources/application.properties | 1 + 2 files changed, 3 insertions(+) diff --git a/integration-tests/bouncycastle-jsse/src/main/java/io/quarkus/it/bouncycastle/SecretProvider.java b/integration-tests/bouncycastle-jsse/src/main/java/io/quarkus/it/bouncycastle/SecretProvider.java index ba0332d277ffd..076df4ca65a37 100644 --- a/integration-tests/bouncycastle-jsse/src/main/java/io/quarkus/it/bouncycastle/SecretProvider.java +++ b/integration-tests/bouncycastle-jsse/src/main/java/io/quarkus/it/bouncycastle/SecretProvider.java @@ -4,12 +4,14 @@ import java.util.Map; import javax.enterprise.context.ApplicationScoped; +import javax.inject.Named; import io.quarkus.arc.Unremovable; import io.quarkus.credentials.CredentialsProvider; @ApplicationScoped @Unremovable +@Named("custom-secret-provider") public class SecretProvider implements CredentialsProvider { @Override diff --git a/integration-tests/bouncycastle-jsse/src/main/resources/application.properties b/integration-tests/bouncycastle-jsse/src/main/resources/application.properties index 3a28e5d45804b..960a134f4a1a6 100644 --- a/integration-tests/bouncycastle-jsse/src/main/resources/application.properties +++ b/integration-tests/bouncycastle-jsse/src/main/resources/application.properties @@ -5,6 +5,7 @@ quarkus.http.ssl.certificate.key-store-password-key=keystore-password quarkus.http.ssl.certificate.trust-store-file=server-truststore.jks quarkus.http.ssl.certificate.trust-store-password-key=truststore-password quarkus.http.ssl.certificate.credentials-provider=custom +quarkus.http.ssl.certificate.credentials-provider-name=custom-secret-provider quarkus.http.ssl.client-auth=REQUIRED quarkus.native.additional-build-args=-H:IncludeResources=.*\\.jks