Skip to content

Commit

Permalink
Revert "Remove unused private constructor"
Browse files Browse the repository at this point in the history
This reverts commit 57750b1.
  • Loading branch information
rwinch committed May 22, 2024
1 parent 57750b1 commit 8e465f9
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,23 @@ public KerberosRestTemplate(String keyTabLocation, String userPrincipal, String
this(keyTabLocation, userPrincipal, password, loginOptions, buildHttpClient());
}

/**
* Instantiates a new kerberos rest template.
*
* @param keyTabLocation the key tab location
* @param userPrincipal the user principal
* @param password the password
* @param loginOptions the login options
* @param httpClient the http client
*/
private KerberosRestTemplate(String keyTabLocation, String userPrincipal, String password, Map<String, Object> loginOptions, HttpClient httpClient) {
super(new HttpComponentsClientHttpRequestFactory(httpClient));
this.keyTabLocation = keyTabLocation;
this.userPrincipal = userPrincipal;
this.password = password;
this.loginOptions = loginOptions;
}

/**
* Builds the default instance of {@link HttpClient} having kerberos
* support.
Expand Down

0 comments on commit 8e465f9

Please sign in to comment.