Commits

Charles O'Farrell  committed fc89205

Extract getAuthenticationParams for Bamboo

  • Participants
  • Parent commits 553395c

Comments (0)

Files changed (1)

File src/main/java/com/atlassian/bamboo/plugins/confdeploy/Product.java

 
     public HttpEntity getWebSudoAuthenticationEntity(String username, String password) throws UnsupportedEncodingException
     {
+        return new UrlEncodedFormEntity(getAuthenticationParams(username, password), ENCODING);
+    }
+
+    protected List<BasicNameValuePair> getAuthenticationParams(String username, String password)
+    {
         List<BasicNameValuePair> values = new ArrayList<BasicNameValuePair>();
         values.add(new BasicNameValuePair(passwordFieldName, password));
         values.add(new BasicNameValuePair("authenticate", "Confirm"));
-
-        return new UrlEncodedFormEntity(values, ENCODING);
+        return values;
     }
 }