Revert "Remove unused private constructor"
This reverts commit 57750b161e.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user