You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2023/04/05 14:33:47 UTC
[camel] 01/05: CAMEL-18625 - Provide an option to pass specific AWS SAML Profile
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 6f1a547806c2a17a86d569747fdc9efb147cf395
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Apr 5 14:45:41 2023 +0200
CAMEL-18625 - Provide an option to pass specific AWS SAML Profile
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
.../apache/camel/vault/AwsVaultConfiguration.java | 26 ++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/core/camel-api/src/main/java/org/apache/camel/vault/AwsVaultConfiguration.java b/core/camel-api/src/main/java/org/apache/camel/vault/AwsVaultConfiguration.java
index 5ad4b67752a..e686031d21a 100644
--- a/core/camel-api/src/main/java/org/apache/camel/vault/AwsVaultConfiguration.java
+++ b/core/camel-api/src/main/java/org/apache/camel/vault/AwsVaultConfiguration.java
@@ -32,6 +32,10 @@ public class AwsVaultConfiguration extends VaultConfiguration {
@Metadata
private boolean defaultCredentialsProvider;
@Metadata
+ private boolean profileCredentialsProvider;
+ @Metadata
+ private String profileName;
+ @Metadata
private boolean refreshEnabled;
@Metadata(defaultValue = "30000")
private long refreshPeriod = 30000;
@@ -82,6 +86,28 @@ public class AwsVaultConfiguration extends VaultConfiguration {
this.defaultCredentialsProvider = defaultCredentialsProvider;
}
+ public boolean isProfileCredentialsProvider() {
+ return profileCredentialsProvider;
+ }
+
+ /**
+ * Define if we want to use the AWS Profile Credentials Provider or not
+ */
+ public void setProfileCredentialsProvider(boolean profileCredentialsProvider) {
+ this.profileCredentialsProvider = profileCredentialsProvider;
+ }
+
+ public String getProfileName() {
+ return profileName;
+ }
+
+ /**
+ * Define the profile name to use if Profile Credentials Provider is selected
+ */
+ public void setProfileName(String profileName) {
+ this.profileName = profileName;
+ }
+
public boolean isRefreshEnabled() {
return refreshEnabled;
}