Module org.elasticsearch.security
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(Environment environment) protectedExternalEnrollmentTokenGenerator(Environment environment, CommandLineHttpClient client) -
Method Summary
Modifier and TypeMethodDescriptionprotected EnrollmentTokencreate(String user, SecureString password, String action, URL baseUrl) protected static URLcreateAPIKeyUrl(URL baseUrl) createKibanaEnrollmentToken(String user, SecureString password, URL baseUrl) createNodeEnrollmentToken(String user, SecureString password, URL baseUrl) protected StringgetApiKeyCredentials(String user, SecureString password, String action, URL baseUrl) getBoundAddresses(Map<?, ?> nodesInfo) protected static URLgetHttpInfoUrl(URL baseUrl) getNodeInfo(String user, SecureString password, URL baseUrl)
-
Field Details
-
ENROLL_API_KEY_EXPIRATION
- See Also:
-
-
Constructor Details
-
ExternalEnrollmentTokenGenerator
- Throws:
MalformedURLException
-
ExternalEnrollmentTokenGenerator
-
-
Method Details
-
createNodeEnrollmentToken
public EnrollmentToken createNodeEnrollmentToken(String user, SecureString password, URL baseUrl) throws Exception - Throws:
Exception
-
createKibanaEnrollmentToken
public EnrollmentToken createKibanaEnrollmentToken(String user, SecureString password, URL baseUrl) throws Exception - Throws:
Exception
-
create
protected EnrollmentToken create(String user, SecureString password, String action, URL baseUrl) throws Exception - Throws:
Exception
-
createAPIKeyUrl
-
getHttpInfoUrl
-
getBoundAddresses
-
getApiKeyCredentials
protected String getApiKeyCredentials(String user, SecureString password, String action, URL baseUrl) throws Exception - Throws:
Exception
-
getNodeInfo
protected org.elasticsearch.core.Tuple<List<String>,String> getNodeInfo(String user, SecureString password, URL baseUrl) throws Exception - Throws:
Exception
-