I am trying to create a solr client using solrj api for kerberised solr. And as per the documentation of solrj, it is required to set HttpClientUtil.setConfigurer(new Krb5HttpClientConfigurer());
in code.
But the solrj api jar do not have the function setConfigurer
inside the HttpClientUtil
class. I am using the below dependency from maven.
<dependency>
<groupId>org.apache.solr</groupId>
<artifactId>solr-solrj</artifactId>
<version>7.2.1</version>
</dependency>
Is it possible to create solr client using new HttpSolrClient.Builder
and enable kerberisation to read the jaas.config
file to do the authentication and authorization.
Currently i am creating the solr client like below;
new HttpSolrClient.Builder("solrUrlString").build()
But i do not see a option to enable Krb5HttpClientConfigurer
in the above way