Revert "Remove unused private constructor"

This reverts commit 57750b161e.
This commit is contained in:
Rob Winch
2024-05-22 13:50:41 -05:00
parent 57750b161e
commit 8e465f9c45

View File

@@ -163,6 +163,23 @@ public class KerberosRestTemplate extends RestTemplate {
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.