FAQ
CAMEL-10044: Add support for defining an option as secret.


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/d6f4266f
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/d6f4266f
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/d6f4266f

Branch: refs/heads/master
Commit: d6f4266f6d14cb4dd8cc09d591ed8fce474385ad
Parents: e9ae7b3
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Sat Jun 11 14:50:25 2016 +0200
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Sat Jun 11 14:50:25 2016 +0200

----------------------------------------------------------------------
  components/camel-box/src/main/docs/box.adoc | 4 +++-
  .../camel/component/box/BoxConfiguration.java | 10 ++++----
  .../component/consul/ConsulConfiguration.java | 11 ++++-----
  .../crypto/DigitalSignatureConfiguration.java | 8 +++----
  .../apache/camel/component/cxf/CxfEndpoint.java | 4 ++--
  .../camel/component/etcd/EtcdConfiguration.java | 4 ++--
  .../facebook/config/FacebookConfiguration.java | 6 ++---
  .../component/file/remote/FtpConfiguration.java | 2 +-
  .../file/remote/RemoteFileConfiguration.java | 4 ++--
  .../file/remote/SftpConfiguration.java | 16 ++++++-------
  .../camel/component/irc/IrcConfiguration.java | 6 ++---
  .../camel/component/jbpm/JBPMConfiguration.java | 4 ++--
  .../apache/camel/component/jmx/JMXEndpoint.java | 4 ++--
  .../camel/component/scp/ScpConfiguration.java | 6 ++---
  .../kubernetes/KubernetesConfiguration.java | 24 ++++++++++----------
  .../camel/component/mail/MailConfiguration.java | 4 ++--
  .../component/rabbitmq/RabbitMQEndpoint.java | 4 ++--
  .../servicenow/ServiceNowConfiguration.java | 12 +++++-----
  .../camel/component/smpp/SmppConfiguration.java | 4 ++--
  .../camel/component/snmp/SnmpEndpoint.java | 8 +++----
  .../camel/component/stomp/StompComponent.java | 3 +++
  .../component/stomp/StompConfiguration.java | 4 ++--
  .../component/xmlrpc/XmlRpcConfiguration.java | 4 ++--
  .../camel/component/xmpp/XmppEndpoint.java | 4 ++--
  24 files changed, 81 insertions(+), 79 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/d6f4266f/components/camel-box/src/main/docs/box.adoc
----------------------------------------------------------------------
diff --git a/components/camel-box/src/main/docs/box.adoc b/components/camel-box/src/main/docs/box.adoc
index dc28888..9d03522 100644
--- a/components/camel-box/src/main/docs/box.adoc
+++ b/components/camel-box/src/main/docs/box.adoc
@@ -54,6 +54,7 @@ The Box component supports 1 options which are listed below.



+
  // endpoint options: START
  The Box component supports 21 endpoint options which are listed below:

@@ -64,7 +65,6 @@ The Box component supports 21 endpoint options which are listed below:
apiName | common | | BoxApiName | *Required* What kind of operation to perform
methodName | common | | String | *Required* What sub operation to use for the selected operation
clientId | common | | String | Box application client ID
-| clientSecret | common | | String | Box application client secret
inBody | common | | String | Sets the name of a parameter to be passed in the exchange In Body
loginTimeout | common | 30 | int | Amount of time the component will wait for a response from Box.com default is 30 seconds
revokeOnShutdown | common | false | boolean | Flag to revoke OAuth refresh token on route shutdown default false. Will require a fresh refresh token on restart using either a custom IAuthSecureStorage or automatic component login by providing a user password
@@ -79,6 +79,7 @@ The Box component supports 21 endpoint options which are listed below:
refreshListener | advanced | | OAuthRefreshListener | OAuth listener for token updates if the Camel application needs to use the access token outside the route
synchronous | advanced | false | boolean | Sets whether synchronous processing should be strictly used or Camel is allowed to use asynchronous processing (if supported).
authSecureStorage | security | | IAuthSecureStorage | OAuth Secure Storage callback can be used to provide and or save OAuth tokens. The callback may return null on first call to allow the component to login and authorize application and obtain an OAuth token which can then be saved in the secure storage. For the component to be able to create a token automatically a user password must be provided.
+| clientSecret | security | | String | Box application client secret
sslContextParameters | security | | SSLContextParameters | To configure security using SSLContextParameters.
userName | security | | String | Box user name MUST be provided
userPassword | security | | String | Box user password MUST be provided if authSecureStorage is not set or returns null on first call
@@ -87,6 +88,7 @@ The Box component supports 21 endpoint options which are listed below:
  // endpoint options: END


+
  [[Box-URIformat]]
  URI format
  ^^^^^^^^^^

http://git-wip-us.apache.org/repos/asf/camel/blob/d6f4266f/components/camel-box/src/main/java/org/apache/camel/component/box/BoxConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-box/src/main/java/org/apache/camel/component/box/BoxConfiguration.java b/components/camel-box/src/main/java/org/apache/camel/component/box/BoxConfiguration.java
index f52973c..807d072 100644
--- a/components/camel-box/src/main/java/org/apache/camel/component/box/BoxConfiguration.java
+++ b/components/camel-box/src/main/java/org/apache/camel/component/box/BoxConfiguration.java
@@ -42,14 +42,14 @@ public class BoxConfiguration {
      private String methodName;
      @UriParam
      private String clientId;
- @UriParam
+ @UriParam(label = "security", secret = true)
      private String clientSecret;
- @UriParam(label = "security")
- private IAuthSecureStorage authSecureStorage;
- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private String userName;
- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private String userPassword;
+ @UriParam(label = "advanced,security")
+ private IAuthSecureStorage authSecureStorage;
      @UriParam(label = "advanced")
      private OAuthRefreshListener refreshListener;
      @UriParam

http://git-wip-us.apache.org/repos/asf/camel/blob/d6f4266f/components/camel-consul/src/main/java/org/apache/camel/component/consul/ConsulConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-consul/src/main/java/org/apache/camel/component/consul/ConsulConfiguration.java b/components/camel-consul/src/main/java/org/apache/camel/component/consul/ConsulConfiguration.java
index b9df9b1..4a93266 100644
--- a/components/camel-consul/src/main/java/org/apache/camel/component/consul/ConsulConfiguration.java
+++ b/components/camel-consul/src/main/java/org/apache/camel/component/consul/ConsulConfiguration.java
@@ -38,11 +38,11 @@ public class ConsulConfiguration {

      @UriParam(label = "security")
      private SSLContextParameters sslContextParameters;
- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private String aclToken;
- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private String userName;
- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private String password;

      @UriParam
@@ -104,15 +104,12 @@ public class ConsulConfiguration {
          return tags;
      }

- /**
- * Set tags
- */
      public void setTags(Set<String> tags) {
          this.tags = tags;
      }

      /**
- * Set tags
+ * Set tags. You can separate multiple tags by comma.
       */
      public void setTags(String tagsAsString) {
          this.tags = new HashSet<>();

http://git-wip-us.apache.org/repos/asf/camel/blob/d6f4266f/components/camel-crypto/src/main/java/org/apache/camel/component/crypto/DigitalSignatureConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-crypto/src/main/java/org/apache/camel/component/crypto/DigitalSignatureConfiguration.java b/components/camel-crypto/src/main/java/org/apache/camel/component/crypto/DigitalSignatureConfiguration.java
index 901d952..34b5ed3 100644
--- a/components/camel-crypto/src/main/java/org/apache/camel/component/crypto/DigitalSignatureConfiguration.java
+++ b/components/camel-crypto/src/main/java/org/apache/camel/component/crypto/DigitalSignatureConfiguration.java
@@ -41,13 +41,13 @@ public class DigitalSignatureConfiguration implements Cloneable, CamelContextAwa
      private CryptoOperation cryptoOperation;
      @UriPath @Metadata(required = "true")
      private String name;
- @UriParam
+ @UriParam(secret = true)
      private PrivateKey privateKey;
      @UriParam
      private KeyStoreParameters keyStoreParameters;
      @UriParam
      private KeyStore keystore;
- @UriParam
+ @UriParam(secret = true)
      private SecureRandom secureRandom;
      @UriParam(defaultValue = "SHA1WithDSA")
      private String algorithm = "SHA1WithDSA";
@@ -59,7 +59,7 @@ public class DigitalSignatureConfiguration implements Cloneable, CamelContextAwa
      private String signatureHeaderName;
      @UriParam
      private String alias;
- @UriParam(javaType = "java.lang.String")
+ @UriParam(javaType = "java.lang.String", secret = true)
      private char[] password;
      @UriParam
      private PublicKey publicKey;
@@ -71,7 +71,7 @@ public class DigitalSignatureConfiguration implements Cloneable, CamelContextAwa
      private String publicKeyName;
      @UriParam
      private String certificateName;
- @UriParam
+ @UriParam(secret = true)
      private String privateKeyName;
      @UriParam
      private String keystoreName;

http://git-wip-us.apache.org/repos/asf/camel/blob/d6f4266f/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfEndpoint.java
----------------------------------------------------------------------
diff --git a/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfEndpoint.java b/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfEndpoint.java
index 853a6e2..11edd4e 100644
--- a/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfEndpoint.java
+++ b/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfEndpoint.java
@@ -195,9 +195,9 @@ public class CxfEndpoint extends DefaultEndpoint implements AsyncEndpoint, Heade
      private CxfEndpointConfigurer cxfEndpointConfigurer;
      @UriParam(label = "advanced", defaultValue = "30000")
      private long continuationTimeout = 30000;
- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private String username;
- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private String password;
      @UriParam(label = "advanced", prefix = "properties.", multiValue = true)
      private Map<String, Object> properties;

http://git-wip-us.apache.org/repos/asf/camel/blob/d6f4266f/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/EtcdConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/EtcdConfiguration.java b/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/EtcdConfiguration.java
index 2f80e8d..263f0b4 100644
--- a/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/EtcdConfiguration.java
+++ b/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/EtcdConfiguration.java
@@ -32,9 +32,9 @@ public class EtcdConfiguration {
      private String uris = EtcdConstants.ETCD_DEFAULT_URIS;
      @UriParam(label = "security")
      private SSLContextParameters sslContextParameters;
- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private String userName;
- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private String password;
      @UriParam(label = "consumer")
      private boolean sendEmptyExchangeOnTimeout;

http://git-wip-us.apache.org/repos/asf/camel/blob/d6f4266f/components/camel-facebook/src/main/java/org/apache/camel/component/facebook/config/FacebookConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-facebook/src/main/java/org/apache/camel/component/facebook/config/FacebookConfiguration.java b/components/camel-facebook/src/main/java/org/apache/camel/component/facebook/config/FacebookConfiguration.java
index f3ebb0a..aaeb967 100644
--- a/components/camel-facebook/src/main/java/org/apache/camel/component/facebook/config/FacebookConfiguration.java
+++ b/components/camel-facebook/src/main/java/org/apache/camel/component/facebook/config/FacebookConfiguration.java
@@ -35,11 +35,11 @@ public class FacebookConfiguration implements Cloneable {

      private static final Logger LOG = LoggerFactory.getLogger(FacebookConfiguration.class);

- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private String oAuthAppId;
- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private String oAuthAppSecret;
- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private String oAuthAccessToken;
      @UriParam(label = "security", defaultValue = "https://www.facebook.com/dialog/oauth")
      private String oAuthAuthorizationURL;

http://git-wip-us.apache.org/repos/asf/camel/blob/d6f4266f/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpConfiguration.java b/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpConfiguration.java
index 9e5aeb0..85fcb2f 100644
--- a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpConfiguration.java
+++ b/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpConfiguration.java
@@ -29,7 +29,7 @@ public class FtpConfiguration extends RemoteFileConfiguration {

      public static final int DEFAULT_FTP_PORT = 21;

- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private String account;

      public FtpConfiguration() {

http://git-wip-us.apache.org/repos/asf/camel/blob/d6f4266f/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/RemoteFileConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/RemoteFileConfiguration.java b/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/RemoteFileConfiguration.java
index 0edb15d..6e7fb1a 100644
--- a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/RemoteFileConfiguration.java
+++ b/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/RemoteFileConfiguration.java
@@ -46,9 +46,9 @@ public abstract class RemoteFileConfiguration extends GenericFileConfiguration {
      private int port;
      @UriPath(name = "directoryName")
      private String directoryName;
- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private String username;
- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private String password;
      @UriParam
      private boolean binary;

http://git-wip-us.apache.org/repos/asf/camel/blob/d6f4266f/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpConfiguration.java b/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpConfiguration.java
index 4b5bbd3..8fc377a 100644
--- a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpConfiguration.java
+++ b/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpConfiguration.java
@@ -31,23 +31,23 @@ public class SftpConfiguration extends RemoteFileConfiguration {

      public static final int DEFAULT_SFTP_PORT = 22;

- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private String knownHostsFile;
      @UriParam(label = "security", defaultValue = "true")
      private boolean useUserKnownHostsFile = true;
- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private String knownHostsUri;
- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private byte[] knownHosts;
- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private String privateKeyFile;
- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private String privateKeyUri;
- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private byte[] privateKey;
- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private String privateKeyPassphrase;
- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private KeyPair keyPair;
      @UriParam(defaultValue = "no", enums = "no,yes", label = "security")
      private String strictHostKeyChecking = "no";

http://git-wip-us.apache.org/repos/asf/camel/blob/d6f4266f/components/camel-irc/src/main/java/org/apache/camel/component/irc/IrcConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-irc/src/main/java/org/apache/camel/component/irc/IrcConfiguration.java b/components/camel-irc/src/main/java/org/apache/camel/component/irc/IrcConfiguration.java
index c8206be..beebf81 100644
--- a/components/camel-irc/src/main/java/org/apache/camel/component/irc/IrcConfiguration.java
+++ b/components/camel-irc/src/main/java/org/apache/camel/component/irc/IrcConfiguration.java
@@ -51,13 +51,13 @@ public class IrcConfiguration implements Cloneable {
      @UriPath(defaultValue = "6667,6668,6669")
      private int port;
      private int[] ports = {6667, 6668, 6669};
- @UriParam
+ @UriParam(label = "security", secret = true)
      private String password;
      @UriParam
      private String nickname;
      @UriParam
      private String realname;
- @UriParam
+ @UriParam(label = "security", secret = true)
      private String username;
      @UriParam(label = "security")
      private SSLTrustManager trustManager = new SSLDefaultTrustManager();
@@ -90,7 +90,7 @@ public class IrcConfiguration implements Cloneable {
      private boolean namesOnJoin;
      @UriParam(label = "security")
      private SSLContextParameters sslContextParameters;
- @UriParam
+ @UriParam(label = "security", secret = true)
      private String nickPassword;

      public IrcConfiguration() {

http://git-wip-us.apache.org/repos/asf/camel/blob/d6f4266f/components/camel-jbpm/src/main/java/org/apache/camel/component/jbpm/JBPMConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-jbpm/src/main/java/org/apache/camel/component/jbpm/JBPMConfiguration.java b/components/camel-jbpm/src/main/java/org/apache/camel/component/jbpm/JBPMConfiguration.java
index fd4e01b..c4a30c7 100644
--- a/components/camel-jbpm/src/main/java/org/apache/camel/component/jbpm/JBPMConfiguration.java
+++ b/components/camel-jbpm/src/main/java/org/apache/camel/component/jbpm/JBPMConfiguration.java
@@ -71,9 +71,9 @@ public class JBPMConfiguration {
      private List<OrganizationalEntity> entities;
      @UriParam(label = "filter")
      private List<Status> statuses;
- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private String userName;
- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private String password;
      @UriParam
      private Integer timeout;

http://git-wip-us.apache.org/repos/asf/camel/blob/d6f4266f/components/camel-jmx/src/main/java/org/apache/camel/component/jmx/JMXEndpoint.java
----------------------------------------------------------------------
diff --git a/components/camel-jmx/src/main/java/org/apache/camel/component/jmx/JMXEndpoint.java b/components/camel-jmx/src/main/java/org/apache/camel/component/jmx/JMXEndpoint.java
index 04ca715..1fd2a51 100644
--- a/components/camel-jmx/src/main/java/org/apache/camel/component/jmx/JMXEndpoint.java
+++ b/components/camel-jmx/src/main/java/org/apache/camel/component/jmx/JMXEndpoint.java
@@ -158,13 +158,13 @@ public class JMXEndpoint extends DefaultEndpoint {
      /**
       * URI Property: credentials for making a remote connection
       */
- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private String user;

      /**
       * URI Property: credentials for making a remote connection
       */
- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private String password;

      /**

http://git-wip-us.apache.org/repos/asf/camel/blob/d6f4266f/components/camel-jsch/src/main/java/org/apache/camel/component/scp/ScpConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-jsch/src/main/java/org/apache/camel/component/scp/ScpConfiguration.java b/components/camel-jsch/src/main/java/org/apache/camel/component/scp/ScpConfiguration.java
index b3cba39..ad48ac7 100644
--- a/components/camel-jsch/src/main/java/org/apache/camel/component/scp/ScpConfiguration.java
+++ b/components/camel-jsch/src/main/java/org/apache/camel/component/scp/ScpConfiguration.java
@@ -32,11 +32,11 @@ public class ScpConfiguration extends RemoteFileConfiguration {
      public static final String DEFAULT_MOD = "664";
      @UriParam(label = "security", defaultValue = "true")
      private boolean useUserKnownHostsFile = true;
- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private String knownHostsFile;
- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private String privateKeyFile;
- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private String privateKeyFilePassphrase;
      @UriParam(enums = "no,yes", defaultValue = "no")
      private String strictHostKeyChecking;

http://git-wip-us.apache.org/repos/asf/camel/blob/d6f4266f/components/camel-kubernetes/src/main/java/org/apache/camel/component/kubernetes/KubernetesConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-kubernetes/src/main/java/org/apache/camel/component/kubernetes/KubernetesConfiguration.java b/components/camel-kubernetes/src/main/java/org/apache/camel/component/kubernetes/KubernetesConfiguration.java
index 31c29a2..e082933 100644
--- a/components/camel-kubernetes/src/main/java/org/apache/camel/component/kubernetes/KubernetesConfiguration.java
+++ b/components/camel-kubernetes/src/main/java/org/apache/camel/component/kubernetes/KubernetesConfiguration.java
@@ -37,10 +37,10 @@ public class KubernetesConfiguration {
      @UriParam
      private DefaultKubernetesClient kubernetesClient;

- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private String username;

- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private String password;

      @UriParam(label = "producer", enums = "listNamespaces,listNamespacesByLabels,getNamespace,createNamespace,deleteNamespace,listServices,listServicesByLabels,getService,createService,"
@@ -55,34 +55,34 @@ public class KubernetesConfiguration {
      @UriParam
      private String apiVersion;

- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private String caCertData;

- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private String caCertFile;

- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private String clientCertData;

- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private String clientCertFile;

- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private String clientKeyAlgo;

- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private String clientKeyData;

- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private String clientKeyFile;

- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private String clientKeyPassphrase;

- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private String oauthToken;

- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private Boolean trustCerts;

      @UriParam(label = "consumer")

http://git-wip-us.apache.org/repos/asf/camel/blob/d6f4266f/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailConfiguration.java b/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailConfiguration.java
index 93b7a94..8fee016 100644
--- a/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailConfiguration.java
+++ b/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailConfiguration.java
@@ -51,9 +51,9 @@ public class MailConfiguration implements Cloneable {
      private String host;
      @UriPath
      private int port = -1;
- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private String username;
- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private String password;
      @UriParam @Metadata(label = "producer")
      private String subject;

http://git-wip-us.apache.org/repos/asf/camel/blob/d6f4266f/components/camel-rabbitmq/src/main/java/org/apache/camel/component/rabbitmq/RabbitMQEndpoint.java
----------------------------------------------------------------------
diff --git a/components/camel-rabbitmq/src/main/java/org/apache/camel/component/rabbitmq/RabbitMQEndpoint.java b/components/camel-rabbitmq/src/main/java/org/apache/camel/component/rabbitmq/RabbitMQEndpoint.java
index 310180b..53262f2 100644
--- a/components/camel-rabbitmq/src/main/java/org/apache/camel/component/rabbitmq/RabbitMQEndpoint.java
+++ b/components/camel-rabbitmq/src/main/java/org/apache/camel/component/rabbitmq/RabbitMQEndpoint.java
@@ -56,9 +56,9 @@ public class RabbitMQEndpoint extends DefaultEndpoint implements AsyncEndpoint {
      private int portNumber;
      @UriPath @Metadata(required = "true")
      private String exchangeName;
- @UriParam(label = "security", defaultValue = ConnectionFactory.DEFAULT_USER)
+ @UriParam(label = "security", defaultValue = ConnectionFactory.DEFAULT_USER, secret = true)
      private String username = ConnectionFactory.DEFAULT_USER;
- @UriParam(label = "security", defaultValue = ConnectionFactory.DEFAULT_PASS)
+ @UriParam(label = "security", defaultValue = ConnectionFactory.DEFAULT_PASS, secret = true)
      private String password = ConnectionFactory.DEFAULT_PASS;
      @UriParam(defaultValue = ConnectionFactory.DEFAULT_VHOST)
      private String vhost = ConnectionFactory.DEFAULT_VHOST;

http://git-wip-us.apache.org/repos/asf/camel/blob/d6f4266f/components/camel-servicenow/src/main/java/org/apache/camel/component/servicenow/ServiceNowConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-servicenow/src/main/java/org/apache/camel/component/servicenow/ServiceNowConfiguration.java b/components/camel-servicenow/src/main/java/org/apache/camel/component/servicenow/ServiceNowConfiguration.java
index ddf83d8..8a465d5 100644
--- a/components/camel-servicenow/src/main/java/org/apache/camel/component/servicenow/ServiceNowConfiguration.java
+++ b/components/camel-servicenow/src/main/java/org/apache/camel/component/servicenow/ServiceNowConfiguration.java
@@ -38,17 +38,17 @@ public class ServiceNowConfiguration {
              JsonInclude.Include.NON_NULL
          );

- @UriParam @Metadata(required = "true")
+ @UriParam(label = "security", secret = true) @Metadata(required = "true")
      private String userName;
- @UriParam @Metadata(required = "true")
+ @UriParam(label = "security", secret = true) @Metadata(required = "true")
      private String password;
- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private String oauthClientId;
- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private String oauthClientSecret;
- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private String oauthTokenUrl;
- @UriParam(label = "advanced")
+ @UriParam(label = "security")
      private String apiUrl;
      @UriParam
      private String resource;

http://git-wip-us.apache.org/repos/asf/camel/blob/d6f4266f/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppConfiguration.java b/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppConfiguration.java
index 57fa2a4..b6cd5e6 100644
--- a/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppConfiguration.java
+++ b/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppConfiguration.java
@@ -46,9 +46,9 @@ public class SmppConfiguration implements Cloneable {
      private String host = "localhost";
      @UriPath(defaultValue = "2775")
      private Integer port = 2775;
- @UriParam(label = "security", defaultValue = "smppclient")
+ @UriParam(label = "security", defaultValue = "smppclient", secret = true)
      private String systemId = "smppclient";
- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private String password = "password";
      @UriParam(label = "common", defaultValue = "cp")
      private String systemType = "cp";

http://git-wip-us.apache.org/repos/asf/camel/blob/d6f4266f/components/camel-snmp/src/main/java/org/apache/camel/component/snmp/SnmpEndpoint.java
----------------------------------------------------------------------
diff --git a/components/camel-snmp/src/main/java/org/apache/camel/component/snmp/SnmpEndpoint.java b/components/camel-snmp/src/main/java/org/apache/camel/component/snmp/SnmpEndpoint.java
index 9401e05..ebb2f63 100644
--- a/components/camel-snmp/src/main/java/org/apache/camel/component/snmp/SnmpEndpoint.java
+++ b/components/camel-snmp/src/main/java/org/apache/camel/component/snmp/SnmpEndpoint.java
@@ -69,15 +69,15 @@ public class SnmpEndpoint extends DefaultPollingEndpoint {
      private long delay = 60000;
      @UriParam(defaultValue = "" + SecurityLevel.AUTH_PRIV, enums = "1,2,3", label = "security")
      private int securityLevel = SecurityLevel.AUTH_PRIV;
- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private String securityName;
      @UriParam(enums = "MD5,SHA1", label = "security")
      private String authenticationProtocol;
- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private String authenticationPassphrase;
- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private String privacyProtocol;
- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private String privacyPassphrase;
      @UriParam
      private String snmpContextName;

http://git-wip-us.apache.org/repos/asf/camel/blob/d6f4266f/components/camel-stomp/src/main/java/org/apache/camel/component/stomp/StompComponent.java
----------------------------------------------------------------------
diff --git a/components/camel-stomp/src/main/java/org/apache/camel/component/stomp/StompComponent.java b/components/camel-stomp/src/main/java/org/apache/camel/component/stomp/StompComponent.java
index 7355f31..d27c16a 100644
--- a/components/camel-stomp/src/main/java/org/apache/camel/component/stomp/StompComponent.java
+++ b/components/camel-stomp/src/main/java/org/apache/camel/component/stomp/StompComponent.java
@@ -20,6 +20,7 @@ import java.util.Map;

  import org.apache.camel.Endpoint;
  import org.apache.camel.impl.UriEndpointComponent;
+import org.apache.camel.spi.Metadata;

  public class StompComponent extends UriEndpointComponent {

@@ -36,11 +37,13 @@ public class StompComponent extends UriEndpointComponent {
      /**
       * The username
       */
+ @Metadata(label = "security", secret = true)
      private String login;

      /**
       * The password
       */
+ @Metadata(label = "security", secret = true)
      private String passcode;

      /**

http://git-wip-us.apache.org/repos/asf/camel/blob/d6f4266f/components/camel-stomp/src/main/java/org/apache/camel/component/stomp/StompConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-stomp/src/main/java/org/apache/camel/component/stomp/StompConfiguration.java b/components/camel-stomp/src/main/java/org/apache/camel/component/stomp/StompConfiguration.java
index 5365699..61ddd0d 100644
--- a/components/camel-stomp/src/main/java/org/apache/camel/component/stomp/StompConfiguration.java
+++ b/components/camel-stomp/src/main/java/org/apache/camel/component/stomp/StompConfiguration.java
@@ -27,9 +27,9 @@ public class StompConfiguration implements Cloneable {
      @UriParam(defaultValue = "tcp://localhost:61613")
      @Metadata(required = "true")
      private String brokerURL = "tcp://localhost:61613";
- @UriParam
+ @UriParam(label = "security", secret = true)
      private String login;
- @UriParam
+ @UriParam(label = "security", secret = true)
      private String passcode;
      @UriParam
      private String host;

http://git-wip-us.apache.org/repos/asf/camel/blob/d6f4266f/components/camel-xmlrpc/src/main/java/org/apache/camel/component/xmlrpc/XmlRpcConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-xmlrpc/src/main/java/org/apache/camel/component/xmlrpc/XmlRpcConfiguration.java b/components/camel-xmlrpc/src/main/java/org/apache/camel/component/xmlrpc/XmlRpcConfiguration.java
index 8ed5401..433bb9f 100644
--- a/components/camel-xmlrpc/src/main/java/org/apache/camel/component/xmlrpc/XmlRpcConfiguration.java
+++ b/components/camel-xmlrpc/src/main/java/org/apache/camel/component/xmlrpc/XmlRpcConfiguration.java
@@ -39,9 +39,9 @@ public class XmlRpcConfiguration {
      private boolean gzipCompressing;
      @UriParam
      private boolean gzipRequesting;
- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private String basicUserName;
- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private String basicPassword;
      @UriParam
      private int connectionTimeout;

http://git-wip-us.apache.org/repos/asf/camel/blob/d6f4266f/components/camel-xmpp/src/main/java/org/apache/camel/component/xmpp/XmppEndpoint.java
----------------------------------------------------------------------
diff --git a/components/camel-xmpp/src/main/java/org/apache/camel/component/xmpp/XmppEndpoint.java b/components/camel-xmpp/src/main/java/org/apache/camel/component/xmpp/XmppEndpoint.java
index 6fa7093..1def69d 100644
--- a/components/camel-xmpp/src/main/java/org/apache/camel/component/xmpp/XmppEndpoint.java
+++ b/components/camel-xmpp/src/main/java/org/apache/camel/component/xmpp/XmppEndpoint.java
@@ -63,9 +63,9 @@ public class XmppEndpoint extends DefaultEndpoint implements HeaderFilterStrateg
      private int port;
      @UriPath(label = "common")
      private String participant;
- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private String user;
- @UriParam(label = "security")
+ @UriParam(label = "security", secret = true)
      private String password;
      @UriParam(label = "common,advanced", defaultValue = "Camel")
      private String resource = "Camel";

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 3 of 3 | next ›
Discussion Overview
groupcommits @
categoriescamel
postedJun 11, '16 at 2:27p
activeJun 11, '16 at 2:27p
posts3
users1
websitecamel.apache.org

1 user in discussion

Davsclaus: 3 posts

People

Translate

site design / logo © 2017 Grokbase