public interface RestClientAuthenticator
extends org.elasticsearch.client.RestClientBuilder.HttpClientConfigCallback, org.elasticsearch.client.RestClientBuilder.RequestConfigCallback
A class instance implementing this interface may customize some aspects of JanusGraph Elasticsearch REST client to implement a custom authentication method.
An implementation must provide a constructor that accepts a String[]. It will receive
the value(s) from ElasticSearchIndex.ES_HTTP_AUTHENTICATOR_ARGS.
If no authenticator arguments are provided, a zero-size array is passed to the
constructor. The constructor must not perform any blocking operations.
| Modifier and Type | Method and Description |
|---|---|
void |
init()
Initializes the authenticator.
|
void init() throws IOException
IOException - in case there was an exception during I/O operations.Copyright © 2012–2024. All rights reserved.