title: How to use Apache camel RAW(value) for password
body: <p>When we configure Camel endpoints using URIs then the parameter values gets url encoded by default. This can be a problem when we want to configure passwords as is.</p>
  
  <p>To do that we can tell Camel to use the raw value, by enclosing the value with RAW(value).
  <a href="http://camel.apache.org/how-do-i-configure-endpoints.html" rel="nofollow noreferrer">http://camel.apache.org/how-do-i-configure-endpoints.html</a></p>
  
  <p>But this is not working for mail endpoint URI.</p>
  
  <p>Here is the code.</p>
  
  <pre><code> public String getURL()
  {
      String url = "";
      try{
          URI uri = new URI(this.emailServer.toString());
  
          url = "imaps://"+uri.getHost()+"?username="+this.username+"&amp;password=RAW("+this.password+")&amp;folderName="+this.getMailBox()+"&amp;copyTo="+this.getMailBox()";
      } catch (Exception ex){
          ex.printStackTrace();
      }
      return url;
          }
  </code></pre>
  
  <p>But it is working fine aws endpoint</p>
  
  <pre><code> public String getURL(){
  
      String fromURL = "";
  
          fromURL = "aws-sqs://" + getQueueName() + "?accessKey=" + getS3AccessKey() + "&amp;secretKey=RAW(" + getS3SecretKey() + ")&amp;region=" + getQueueRegion() + "&amp;queueOwnerAWSAccountId=" + getS3SQSAWSClientID();
  
      return  fromURL;
  }
  </code></pre>
  
  <p>Any idea?</p>