Class ExternalEnrollmentTokenGenerator
java.lang.Object
org.elasticsearch.xpack.security.enrollment.BaseEnrollmentTokenGenerator
org.elasticsearch.xpack.security.enrollment.ExternalEnrollmentTokenGenerator
-
Field Summary
FieldsFields inherited from class org.elasticsearch.xpack.security.enrollment.BaseEnrollmentTokenGenerator
ENROLL_API_KEY_EXPIRATION_MINUTES -
Constructor Summary
ConstructorsModifierConstructorDescriptionExternalEnrollmentTokenGenerator(org.elasticsearch.env.Environment environment) protectedExternalEnrollmentTokenGenerator(org.elasticsearch.env.Environment environment, org.elasticsearch.xpack.core.security.CommandLineHttpClient client) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.elasticsearch.xpack.core.security.EnrollmentTokencreate(String user, org.elasticsearch.common.settings.SecureString password, String action, URL baseUrl) protected URLcreateAPIKeyUrl(URL baseUrl) org.elasticsearch.xpack.core.security.EnrollmentTokencreateKibanaEnrollmentToken(String user, org.elasticsearch.common.settings.SecureString password, URL baseUrl) org.elasticsearch.xpack.core.security.EnrollmentTokencreateNodeEnrollmentToken(String user, org.elasticsearch.common.settings.SecureString password, URL baseUrl) protected StringgetApiKeyCredentials(String user, org.elasticsearch.common.settings.SecureString password, String action, URL baseUrl) getBoundAddresses(Map<?, ?> nodesInfo) protected URLgetHttpInfoUrl(URL baseUrl) getNodeInfo(String user, org.elasticsearch.common.settings.SecureString password, URL baseUrl)
-
Field Details
-
ENROLL_API_KEY_EXPIRATION
- See Also:
-
-
Constructor Details
-
ExternalEnrollmentTokenGenerator
public ExternalEnrollmentTokenGenerator(org.elasticsearch.env.Environment environment) throws MalformedURLException - Throws:
MalformedURLException
-
ExternalEnrollmentTokenGenerator
protected ExternalEnrollmentTokenGenerator(org.elasticsearch.env.Environment environment, org.elasticsearch.xpack.core.security.CommandLineHttpClient client)
-
-
Method Details
-
createNodeEnrollmentToken
public org.elasticsearch.xpack.core.security.EnrollmentToken createNodeEnrollmentToken(String user, org.elasticsearch.common.settings.SecureString password, URL baseUrl) throws Exception - Throws:
Exception
-
createKibanaEnrollmentToken
public org.elasticsearch.xpack.core.security.EnrollmentToken createKibanaEnrollmentToken(String user, org.elasticsearch.common.settings.SecureString password, URL baseUrl) throws Exception - Throws:
Exception
-
create
protected org.elasticsearch.xpack.core.security.EnrollmentToken create(String user, org.elasticsearch.common.settings.SecureString password, String action, URL baseUrl) throws Exception - Throws:
Exception
-
createAPIKeyUrl
-
getHttpInfoUrl
-
getBoundAddresses
-
getApiKeyCredentials
protected String getApiKeyCredentials(String user, org.elasticsearch.common.settings.SecureString password, String action, URL baseUrl) throws Exception - Throws:
Exception
-
getNodeInfo
protected org.elasticsearch.core.Tuple<List<String>,String> getNodeInfo(String user, org.elasticsearch.common.settings.SecureString password, URL baseUrl) throws Exception - Throws:
Exception
-