Class InternalEnrollmentTokenGenerator

java.lang.Object
org.elasticsearch.xpack.security.enrollment.BaseEnrollmentTokenGenerator
org.elasticsearch.xpack.security.enrollment.InternalEnrollmentTokenGenerator

public class InternalEnrollmentTokenGenerator extends BaseEnrollmentTokenGenerator
  • Constructor Details

    • InternalEnrollmentTokenGenerator

      public InternalEnrollmentTokenGenerator(Environment environment, SSLService sslService, Client client)
  • Method Details

    • maybeCreateNodeEnrollmentToken

      public void maybeCreateNodeEnrollmentToken(Consumer<String> consumer, Iterator<org.elasticsearch.core.TimeValue> backoff)
      Tries to create an enrollment token for Elasticsearch nodes enrolling to the current node. If node is bound only on localhost for either the transport or the HTTPS interface, no token is generated, in which case an empty string token is returned. In case of errors, including due to issues with the node's configuration, a null token is returned, and the exception is logged but no exception is thrown.
    • createKibanaEnrollmentToken

      public void createKibanaEnrollmentToken(Consumer<EnrollmentToken> consumer, Iterator<org.elasticsearch.core.TimeValue> backoff)
      Creates an enrollment token for Kibana instances enrolling to the current node. In case of errors, including due to issues with the node's configuration, a null token is returned, and the exception is logged but no exception is thrown.
    • getHttpsCaFingerprint

      public String getHttpsCaFingerprint() throws Exception
      Throws:
      Exception