I have the below configuration for spring data elastic search.
<elasticsearch:transport-client id="client" cluster-name="elasticsearch"
cluster-nodes="localhost:9300" />
<bean name="elasticsearchTemplate"
class="org.springframework.data.elasticsearch.core.ElasticsearchTemplate">
<constructor-arg name="client" ref="client" />
</bean>
I am planning to secure the elastic search data using Shield.
In that case, how do we change the above configuration to pass the username and password?