Package org.elasticsearch.client
Class SecurityClient
java.lang.Object
org.elasticsearch.client.SecurityClient
Deprecated.
The High Level Rest Client is deprecated in favor of the
Elasticsearch Java API Client
A wrapper for the
RestHighLevelClient
that provides methods for accessing the Security APIs.
-
Method Summary
Modifier and TypeMethodDescriptionauthenticate
(RequestOptions options) Deprecated.Authenticate the current user and return all the information about the authenticated user.authenticateAsync
(RequestOptions options, ActionListener<AuthenticateResponse> listener) Deprecated.Authenticate the current user asynchronously and return all the information about the authenticated user.boolean
changePassword
(RequestOptions options, ChangePasswordRequest request) Deprecated.boolean
changePassword
(ChangePasswordRequest request, RequestOptions options) Deprecated.Change the password of a user of a native realm or built-in user synchronously.changePasswordAsync
(RequestOptions options, ChangePasswordRequest request, ActionListener<Boolean> listener) Deprecated.changePasswordAsync
(ChangePasswordRequest request, RequestOptions options, ActionListener<Boolean> listener) Deprecated.Change the password of a user of a native realm or built-in user asynchronously.clearApiKeyCache
(ClearApiKeyCacheRequest request, RequestOptions options) Deprecated.Clears the api key cache for a set of IDs.clearApiKeyCacheAsync
(ClearApiKeyCacheRequest request, RequestOptions options, ActionListener<ClearSecurityCacheResponse> listener) Deprecated.Clears the api key cache for a set of IDs asynchronously.clearPrivilegesCache
(ClearPrivilegesCacheRequest request, RequestOptions options) Deprecated.Clears the privileges cache for a set of privileges.clearPrivilegesCacheAsync
(ClearPrivilegesCacheRequest request, RequestOptions options, ActionListener<ClearPrivilegesCacheResponse> listener) Deprecated.Clears the privileges cache for a set of privileges asynchronously.clearRealmCache
(ClearRealmCacheRequest request, RequestOptions options) Deprecated.Clears the cache in one or more realms.clearRealmCacheAsync
(ClearRealmCacheRequest request, RequestOptions options, ActionListener<ClearRealmCacheResponse> listener) Deprecated.Clears the cache in one or more realms asynchronously.clearRolesCache
(ClearRolesCacheRequest request, RequestOptions options) Deprecated.Clears the roles cache for a set of roles.clearRolesCacheAsync
(ClearRolesCacheRequest request, RequestOptions options, ActionListener<ClearRolesCacheResponse> listener) Deprecated.Clears the roles cache for a set of roles asynchronously.clearServiceAccountTokenCache
(ClearServiceAccountTokenCacheRequest request, RequestOptions options) Deprecated.Clears the service account token cache for the specified namespace, service-name and list of token names.clearServiceAccountTokenCacheAsync
(ClearServiceAccountTokenCacheRequest request, RequestOptions options, ActionListener<ClearSecurityCacheResponse> listener) Deprecated.Clears the service account token cache for the specified namespace, service-name and list of token names asynchronously.createApiKey
(CreateApiKeyRequest request, RequestOptions options) Deprecated.Create an API Key.
See the docs for more.createApiKeyAsync
(CreateApiKeyRequest request, RequestOptions options, ActionListener<CreateApiKeyResponse> listener) Deprecated.Asynchronously creates an API key.
See the docs for more.createServiceAccountToken
(CreateServiceAccountTokenRequest request, RequestOptions options) Deprecated.Create a service account token.
See the docs for more.createServiceAccountTokenAsync
(CreateServiceAccountTokenRequest request, RequestOptions options, ActionListener<CreateServiceAccountTokenResponse> listener) Deprecated.Asynchronously creates a service account token.
See the docs for more.createToken
(CreateTokenRequest request, RequestOptions options) Deprecated.Creates an OAuth2 token.createTokenAsync
(CreateTokenRequest request, RequestOptions options, ActionListener<CreateTokenResponse> listener) Deprecated.Asynchronously creates an OAuth2 token.delegatePkiAuthentication
(DelegatePkiAuthenticationRequest request, RequestOptions options) Deprecated.Get an Elasticsearch access token from anX509Certificate
chain.delegatePkiAuthenticationAsync
(DelegatePkiAuthenticationRequest request, RequestOptions options, ActionListener<DelegatePkiAuthenticationResponse> listener) Deprecated.Asynchronously get an Elasticsearch access token from anX509Certificate
chain.deletePrivileges
(DeletePrivilegesRequest request, RequestOptions options) Deprecated.Removes application privilege(s) See the docs for more.deletePrivilegesAsync
(DeletePrivilegesRequest request, RequestOptions options, ActionListener<DeletePrivilegesResponse> listener) Deprecated.Asynchronously removes an application privilege See the docs for more.deleteRole
(DeleteRoleRequest request, RequestOptions options) Deprecated.Removes role from the native realm.deleteRoleAsync
(DeleteRoleRequest request, RequestOptions options, ActionListener<DeleteRoleResponse> listener) Deprecated.Removes role from the native realm.deleteRoleMapping
(DeleteRoleMappingRequest request, RequestOptions options) Deprecated.Delete a role mapping.deleteRoleMappingAsync
(DeleteRoleMappingRequest request, RequestOptions options, ActionListener<DeleteRoleMappingResponse> listener) Deprecated.Asynchronously delete a role mapping.deleteServiceAccountToken
(DeleteServiceAccountTokenRequest request, RequestOptions options) Deprecated.Delete a service account token.
See the docs for more.deleteServiceAccountTokenAsync
(DeleteServiceAccountTokenRequest request, RequestOptions options, ActionListener<DeleteServiceAccountTokenResponse> listener) Deprecated.Asynchronously deletes a service account token.
See the docs for more.deleteUser
(DeleteUserRequest request, RequestOptions options) Deprecated.Removes user from the native realm synchronously.deleteUserAsync
(DeleteUserRequest request, RequestOptions options, ActionListener<DeleteUserResponse> listener) Deprecated.Asynchronously deletes a user in the native realm.boolean
disableUser
(RequestOptions options, DisableUserRequest request) Deprecated.usedisableUser(DisableUserRequest, RequestOptions)
insteadboolean
disableUser
(DisableUserRequest request, RequestOptions options) Deprecated.Disable a native realm or built-in user synchronously.disableUserAsync
(RequestOptions options, DisableUserRequest request, ActionListener<Boolean> listener) Deprecated.disableUserAsync
(DisableUserRequest request, RequestOptions options, ActionListener<Boolean> listener) Deprecated.Disable a native realm or built-in user asynchronously.boolean
enableUser
(RequestOptions options, EnableUserRequest request) Deprecated.useenableUser(EnableUserRequest, RequestOptions)
insteadboolean
enableUser
(EnableUserRequest request, RequestOptions options) Deprecated.Enable a native realm or built-in user synchronously.enableUserAsync
(RequestOptions options, EnableUserRequest request, ActionListener<Boolean> listener) Deprecated.enableUserAsync
(EnableUserRequest request, RequestOptions options, ActionListener<Boolean> listener) Deprecated.Enable a native realm or built-in user asynchronously.getApiKey
(GetApiKeyRequest request, RequestOptions options) Deprecated.Retrieve API Key(s) information.
See the docs for more.getApiKeyAsync
(GetApiKeyRequest request, RequestOptions options, ActionListener<GetApiKeyResponse> listener) Deprecated.Asynchronously retrieve API Key(s) information.
See the docs for more.getBuiltinPrivileges
(RequestOptions options) Deprecated.Synchronously get builtin (cluster & index) privilege(s).getBuiltinPrivilegesAsync
(RequestOptions options, ActionListener<GetBuiltinPrivilegesResponse> listener) Deprecated.Asynchronously get builtin (cluster & index) privilege(s).getPrivileges
(GetPrivilegesRequest request, RequestOptions options) Deprecated.Synchronously get application privilege(s).getPrivilegesAsync
(GetPrivilegesRequest request, RequestOptions options, ActionListener<GetPrivilegesResponse> listener) Deprecated.Asynchronously get application privilege(s).getRoleMappings
(GetRoleMappingsRequest request, RequestOptions options) Deprecated.Synchronously get role mapping(s).getRoleMappingsAsync
(GetRoleMappingsRequest request, RequestOptions options, ActionListener<GetRoleMappingsResponse> listener) Deprecated.Asynchronously get role mapping(s).getRoles
(GetRolesRequest request, RequestOptions options) Deprecated.Retrieves roles from the native roles store.getRolesAsync
(GetRolesRequest request, RequestOptions options, ActionListener<GetRolesResponse> listener) Deprecated.Asynchronously retrieves roles from the native roles store.getServiceAccountCredentials
(GetServiceAccountCredentialsRequest request, RequestOptions options) Deprecated.Get credentials for a service account synchronously.getServiceAccountCredentialsAsync
(GetServiceAccountCredentialsRequest request, RequestOptions options, ActionListener<GetServiceAccountCredentialsResponse> listener) Deprecated.Get credentials for a service account asynchronously.getServiceAccounts
(GetServiceAccountsRequest request, RequestOptions options) Deprecated.Get a service account, or list of service accounts synchronously.getServiceAccountsAsync
(GetServiceAccountsRequest request, RequestOptions options, ActionListener<GetServiceAccountsResponse> listener) Deprecated.Get a service account, or list of service accounts asynchronously.getSslCertificates
(RequestOptions options) Deprecated.Synchronously retrieve the X.509 certificates that are used to encrypt communications in an Elasticsearch cluster.getSslCertificatesAsync
(RequestOptions options, ActionListener<GetSslCertificatesResponse> listener) Deprecated.Asynchronously retrieve the X.509 certificates that are used to encrypt communications in an Elasticsearch cluster.getUserPrivileges
(RequestOptions options) Deprecated.Retrieve the set of effective privileges held by the current user.getUserPrivilegesAsync
(RequestOptions options, ActionListener<GetUserPrivilegesResponse> listener) Deprecated.Asynchronously retrieve the set of effective privileges held by the current user.getUsers
(GetUsersRequest request, RequestOptions options) Deprecated.Get a user, or list of users, in the native realm synchronously.getUsersAsync
(GetUsersRequest request, RequestOptions options, ActionListener<GetUsersResponse> listener) Deprecated.Get a user, or list of users, in the native realm asynchronously.grantApiKey
(GrantApiKeyRequest request, RequestOptions options) Deprecated.Create an API Key on behalf of another user.
See the docs for more.grantApiKeyAsync
(GrantApiKeyRequest request, RequestOptions options, ActionListener<CreateApiKeyResponse> listener) Deprecated.Asynchronously creates an API key on behalf of another user.
See the docs for more.hasPrivileges
(HasPrivilegesRequest request, RequestOptions options) Deprecated.Determine whether the current user has a specified list of privileges See the docs for more.hasPrivilegesAsync
(HasPrivilegesRequest request, RequestOptions options, ActionListener<HasPrivilegesResponse> listener) Deprecated.Asynchronously determine whether the current user has a specified list of privileges See the docs for more.invalidateApiKey
(InvalidateApiKeyRequest request, RequestOptions options) Deprecated.Invalidate API Key(s).
See the docs for more.invalidateApiKeyAsync
(InvalidateApiKeyRequest request, RequestOptions options, ActionListener<InvalidateApiKeyResponse> listener) Deprecated.Asynchronously invalidates API key(s).
See the docs for more.invalidateToken
(InvalidateTokenRequest request, RequestOptions options) Deprecated.Invalidates an OAuth2 token.invalidateTokenAsync
(InvalidateTokenRequest request, RequestOptions options, ActionListener<InvalidateTokenResponse> listener) Deprecated.Asynchronously invalidates an OAuth2 token.putPrivileges
(PutPrivilegesRequest request, RequestOptions options) Deprecated.Create or update application privileges.putPrivilegesAsync
(PutPrivilegesRequest request, RequestOptions options, ActionListener<PutPrivilegesResponse> listener) Deprecated.Asynchronously create or update application privileges.
See the docs for more.putRole
(PutRoleRequest request, RequestOptions options) Deprecated.Create or update a role in the native roles store.putRoleAsync
(PutRoleRequest request, RequestOptions options, ActionListener<PutRoleResponse> listener) Deprecated.Asynchronously creates or updates a role in the native roles store.putRoleMapping
(PutRoleMappingRequest request, RequestOptions options) Deprecated.Create/Update a role mapping.putRoleMappingAsync
(PutRoleMappingRequest request, RequestOptions options, ActionListener<PutRoleMappingResponse> listener) Deprecated.Asynchronously create/update a role mapping.putUser
(PutUserRequest request, RequestOptions options) Deprecated.Create/update a user in the native realm synchronously.putUserAsync
(PutUserRequest request, RequestOptions options, ActionListener<PutUserResponse> listener) Deprecated.Asynchronously create/update a user in the native realm.queryApiKey
(QueryApiKeyRequest request, RequestOptions options) Deprecated.Query and retrieve API Key(s) information.
See the docs for more.queryApiKeyAsync
(QueryApiKeyRequest request, RequestOptions options, ActionListener<QueryApiKeyResponse> listener) Deprecated.Asynchronously query and retrieve API Key(s) information.
See the docs for more.
-
Method Details
-
getUsers
public GetUsersResponse getUsers(GetUsersRequest request, RequestOptions options) throws IOException Deprecated.Get a user, or list of users, in the native realm synchronously. See the docs for more information.- Parameters:
request
- the request with the user's nameoptions
- the request options (e.g., headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response from the get users call
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
getUsersAsync
public Cancellable getUsersAsync(GetUsersRequest request, RequestOptions options, ActionListener<GetUsersResponse> listener) Deprecated.Get a user, or list of users, in the native realm asynchronously. See the docs for more information.- Parameters:
request
- the request with the user's nameoptions
- the request options (e.g., headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
putUser
Deprecated.Create/update a user in the native realm synchronously. See the docs for more.- Parameters:
request
- the request with the user's informationoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response from the put user call
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
putUserAsync
public Cancellable putUserAsync(PutUserRequest request, RequestOptions options, ActionListener<PutUserResponse> listener) Deprecated.Asynchronously create/update a user in the native realm. See the docs for more.- Parameters:
request
- the request with the user's informationoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
deleteUser
public DeleteUserResponse deleteUser(DeleteUserRequest request, RequestOptions options) throws IOException Deprecated.Removes user from the native realm synchronously. See the docs for more.- Parameters:
request
- the request with the user to deleteoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response from the delete user call
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
deleteUserAsync
public Cancellable deleteUserAsync(DeleteUserRequest request, RequestOptions options, ActionListener<DeleteUserResponse> listener) Deprecated.Asynchronously deletes a user in the native realm. See the docs for more.- Parameters:
request
- the request with the user to deleteoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
putRoleMapping
public PutRoleMappingResponse putRoleMapping(PutRoleMappingRequest request, RequestOptions options) throws IOException Deprecated.Create/Update a role mapping. See the docs for more.- Parameters:
request
- the request with the role mapping informationoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response from the put role mapping call
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
putRoleMappingAsync
public Cancellable putRoleMappingAsync(PutRoleMappingRequest request, RequestOptions options, ActionListener<PutRoleMappingResponse> listener) Deprecated.Asynchronously create/update a role mapping. See the docs for more.- Parameters:
request
- the request with the role mapping informationoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
getRoleMappings
public GetRoleMappingsResponse getRoleMappings(GetRoleMappingsRequest request, RequestOptions options) throws IOException Deprecated.Synchronously get role mapping(s). See the docs for more.- Parameters:
request
-GetRoleMappingsRequest
with role mapping name(s). If no role mapping name is provided then retrieves all role mappings.options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response from the get role mapping call
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
getRoleMappingsAsync
public Cancellable getRoleMappingsAsync(GetRoleMappingsRequest request, RequestOptions options, ActionListener<GetRoleMappingsResponse> listener) Deprecated.Asynchronously get role mapping(s). See the docs for more.- Parameters:
request
-GetRoleMappingsRequest
with role mapping name(s). If no role mapping name is provided then retrieves all role mappings.options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
enableUser
Deprecated.Enable a native realm or built-in user synchronously. See the docs for more.- Parameters:
request
- the request with the user to enableoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
true
if the request succeeded (the user is enabled)- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
enableUser
@Deprecated public boolean enableUser(RequestOptions options, EnableUserRequest request) throws IOException Deprecated.useenableUser(EnableUserRequest, RequestOptions)
insteadEnable a native realm or built-in user synchronously. See the docs for more.- Parameters:
options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedrequest
- the request with the user to enable- Returns:
true
if the request succeeded (the user is enabled)- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
enableUserAsync
public Cancellable enableUserAsync(EnableUserRequest request, RequestOptions options, ActionListener<Boolean> listener) Deprecated.Enable a native realm or built-in user asynchronously. See the docs for more.- Parameters:
request
- the request with the user to enableoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
enableUserAsync
@Deprecated public Cancellable enableUserAsync(RequestOptions options, EnableUserRequest request, ActionListener<Boolean> listener) Deprecated.Enable a native realm or built-in user asynchronously. See the docs for more.- Parameters:
options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedrequest
- the request with the user to enablelistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
disableUser
Deprecated.Disable a native realm or built-in user synchronously. See the docs for more.- Parameters:
request
- the request with the user to disableoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
true
if the request succeeded (the user is disabled)- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
disableUser
@Deprecated public boolean disableUser(RequestOptions options, DisableUserRequest request) throws IOException Deprecated.usedisableUser(DisableUserRequest, RequestOptions)
insteadDisable a native realm or built-in user synchronously. See the docs for more.- Parameters:
options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedrequest
- the request with the user to disable- Returns:
true
if the request succeeded (the user is disabled)- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
disableUserAsync
public Cancellable disableUserAsync(DisableUserRequest request, RequestOptions options, ActionListener<Boolean> listener) Deprecated.Disable a native realm or built-in user asynchronously. See the docs for more.- Parameters:
request
- the request with the user to disableoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
disableUserAsync
@Deprecated public Cancellable disableUserAsync(RequestOptions options, DisableUserRequest request, ActionListener<Boolean> listener) Deprecated.Disable a native realm or built-in user asynchronously. See the docs for more.- Parameters:
options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedrequest
- the request with the user to disablelistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
authenticate
Deprecated.Authenticate the current user and return all the information about the authenticated user. See the docs for more.- Parameters:
options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the responsee from the authenticate user call
- Throws:
IOException
-
authenticateAsync
public Cancellable authenticateAsync(RequestOptions options, ActionListener<AuthenticateResponse> listener) Deprecated.Authenticate the current user asynchronously and return all the information about the authenticated user. See the docs for more.- Parameters:
options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
hasPrivileges
public HasPrivilegesResponse hasPrivileges(HasPrivilegesRequest request, RequestOptions options) throws IOException Deprecated.Determine whether the current user has a specified list of privileges See the docs for more.- Parameters:
request
- the request with the privileges to checkoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response from the has privileges call
- Throws:
IOException
-
hasPrivilegesAsync
public Cancellable hasPrivilegesAsync(HasPrivilegesRequest request, RequestOptions options, ActionListener<HasPrivilegesResponse> listener) Deprecated.Asynchronously determine whether the current user has a specified list of privileges See the docs for more.- Parameters:
request
- the request with the privileges to checkoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
getUserPrivileges
Deprecated.Retrieve the set of effective privileges held by the current user.- Parameters:
options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Throws:
IOException
-
getUserPrivilegesAsync
public Cancellable getUserPrivilegesAsync(RequestOptions options, ActionListener<GetUserPrivilegesResponse> listener) Deprecated.Asynchronously retrieve the set of effective privileges held by the current user.- Parameters:
options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
clearRealmCache
public ClearRealmCacheResponse clearRealmCache(ClearRealmCacheRequest request, RequestOptions options) throws IOException Deprecated.Clears the cache in one or more realms. See the docs for more.- Parameters:
request
- the request with the realm names and usernames to clear the cache foroptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response from the clear realm cache call
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
clearRealmCacheAsync
public Cancellable clearRealmCacheAsync(ClearRealmCacheRequest request, RequestOptions options, ActionListener<ClearRealmCacheResponse> listener) Deprecated.Clears the cache in one or more realms asynchronously. See the docs for more.- Parameters:
request
- the request with the realm names and usernames to clear the cache foroptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
clearRolesCache
public ClearRolesCacheResponse clearRolesCache(ClearRolesCacheRequest request, RequestOptions options) throws IOException Deprecated.Clears the roles cache for a set of roles. See the docs for more.- Parameters:
request
- the request with the roles for which the cache should be cleared.options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response from the clear roles cache call
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
clearRolesCacheAsync
public Cancellable clearRolesCacheAsync(ClearRolesCacheRequest request, RequestOptions options, ActionListener<ClearRolesCacheResponse> listener) Deprecated.Clears the roles cache for a set of roles asynchronously. See the docs for more.- Parameters:
request
- the request with the roles for which the cache should be cleared.options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
clearPrivilegesCache
public ClearPrivilegesCacheResponse clearPrivilegesCache(ClearPrivilegesCacheRequest request, RequestOptions options) throws IOException Deprecated.Clears the privileges cache for a set of privileges. See the docs for more.- Parameters:
request
- the request with the privileges for which the cache should be cleared.options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response from the clear privileges cache call
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
clearPrivilegesCacheAsync
public Cancellable clearPrivilegesCacheAsync(ClearPrivilegesCacheRequest request, RequestOptions options, ActionListener<ClearPrivilegesCacheResponse> listener) Deprecated.Clears the privileges cache for a set of privileges asynchronously. See the docs for more.- Parameters:
request
- the request with the privileges for which the cache should be cleared.options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
clearApiKeyCache
public ClearSecurityCacheResponse clearApiKeyCache(ClearApiKeyCacheRequest request, RequestOptions options) throws IOException Deprecated.Clears the api key cache for a set of IDs. See the docs for more.- Parameters:
request
- the request with the security for which the cache should be cleared for the specified API key IDs.options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response from the clear security cache call
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
clearApiKeyCacheAsync
public Cancellable clearApiKeyCacheAsync(ClearApiKeyCacheRequest request, RequestOptions options, ActionListener<ClearSecurityCacheResponse> listener) Deprecated.Clears the api key cache for a set of IDs asynchronously. See the docs for more.- Parameters:
request
- the request with the security for which the cache should be cleared for the specified API key IDs.options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
clearServiceAccountTokenCache
public ClearSecurityCacheResponse clearServiceAccountTokenCache(ClearServiceAccountTokenCacheRequest request, RequestOptions options) throws IOException Deprecated.Clears the service account token cache for the specified namespace, service-name and list of token names. See the docs for more.- Parameters:
request
- the request with namespace, service-name and token names for the service account tokens that should be cleared from the cache.options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response from the clear security cache call
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
clearServiceAccountTokenCacheAsync
public Cancellable clearServiceAccountTokenCacheAsync(ClearServiceAccountTokenCacheRequest request, RequestOptions options, ActionListener<ClearSecurityCacheResponse> listener) Deprecated.Clears the service account token cache for the specified namespace, service-name and list of token names asynchronously. See the docs for more.- Parameters:
request
- the request with namespace, service-name and token names for the service account tokens that should be cleared from the cache.options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
getSslCertificates
Deprecated.Synchronously retrieve the X.509 certificates that are used to encrypt communications in an Elasticsearch cluster. See the docs for more.- Parameters:
options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response from the get certificates call
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
getSslCertificatesAsync
public Cancellable getSslCertificatesAsync(RequestOptions options, ActionListener<GetSslCertificatesResponse> listener) Deprecated.Asynchronously retrieve the X.509 certificates that are used to encrypt communications in an Elasticsearch cluster. See the docs for more.- Parameters:
options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
changePassword
public boolean changePassword(ChangePasswordRequest request, RequestOptions options) throws IOException Deprecated.Change the password of a user of a native realm or built-in user synchronously. See the docs for more.- Parameters:
request
- the request with the user's new passwordoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
true
if the request succeeded (the new password was set)- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
changePassword
@Deprecated public boolean changePassword(RequestOptions options, ChangePasswordRequest request) throws IOException Deprecated.Change the password of a user of a native realm or built-in user synchronously. See the docs for more.- Parameters:
options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedrequest
- the request with the user's new password- Returns:
true
if the request succeeded (the new password was set)- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
changePasswordAsync
public Cancellable changePasswordAsync(ChangePasswordRequest request, RequestOptions options, ActionListener<Boolean> listener) Deprecated.Change the password of a user of a native realm or built-in user asynchronously. See the docs for more.- Parameters:
request
- the request with the user's new passwordoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
changePasswordAsync
@Deprecated public Cancellable changePasswordAsync(RequestOptions options, ChangePasswordRequest request, ActionListener<Boolean> listener) Deprecated.Change the password of a user of a native realm or built-in user asynchronously. See the docs for more.- Parameters:
options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedrequest
- the request with the user's new passwordlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
deleteRoleMapping
public DeleteRoleMappingResponse deleteRoleMapping(DeleteRoleMappingRequest request, RequestOptions options) throws IOException Deprecated.Delete a role mapping. See the docs for more.- Parameters:
request
- the request with the role mapping name to be deleted.options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response from the delete role mapping call
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
getRolesAsync
public Cancellable getRolesAsync(GetRolesRequest request, RequestOptions options, ActionListener<GetRolesResponse> listener) Deprecated.Asynchronously retrieves roles from the native roles store. See the docs for more.- Parameters:
request
- the request with the roles to getoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
getRoles
public GetRolesResponse getRoles(GetRolesRequest request, RequestOptions options) throws IOException Deprecated.Retrieves roles from the native roles store. See the docs for more.- Parameters:
request
- the request with the roles to getoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response from the get roles call
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
putRoleAsync
public Cancellable putRoleAsync(PutRoleRequest request, RequestOptions options, ActionListener<PutRoleResponse> listener) Deprecated.Asynchronously creates or updates a role in the native roles store. See the docs for more.- Parameters:
request
- the request containing the role to create or updateoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
putRole
Deprecated.Create or update a role in the native roles store. See the docs for more.- Parameters:
request
- the request containing the role to create or updateoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response from the put role call
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
deleteRoleMappingAsync
public Cancellable deleteRoleMappingAsync(DeleteRoleMappingRequest request, RequestOptions options, ActionListener<DeleteRoleMappingResponse> listener) Deprecated.Asynchronously delete a role mapping. See the docs for more.- Parameters:
request
- the request with the role mapping name to be deleted.options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
deleteRole
public DeleteRoleResponse deleteRole(DeleteRoleRequest request, RequestOptions options) throws IOException Deprecated.Removes role from the native realm. See the docs for more.- Parameters:
request
- the request with the role to deleteoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response from the delete role call
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
deleteRoleAsync
public Cancellable deleteRoleAsync(DeleteRoleRequest request, RequestOptions options, ActionListener<DeleteRoleResponse> listener) Deprecated.Removes role from the native realm. See the docs for more.- Parameters:
request
- the request with the role to deleteoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
createToken
public CreateTokenResponse createToken(CreateTokenRequest request, RequestOptions options) throws IOException Deprecated.Creates an OAuth2 token. See the docs for more.- Parameters:
request
- the request for the tokenoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response from the create token call
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
createTokenAsync
public Cancellable createTokenAsync(CreateTokenRequest request, RequestOptions options, ActionListener<CreateTokenResponse> listener) Deprecated.Asynchronously creates an OAuth2 token. See the docs for more.- Parameters:
request
- the request for the tokenoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
invalidateToken
public InvalidateTokenResponse invalidateToken(InvalidateTokenRequest request, RequestOptions options) throws IOException Deprecated.Invalidates an OAuth2 token. See the docs for more.- Parameters:
request
- the request to invalidate the tokenoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response from the create token call
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
invalidateTokenAsync
public Cancellable invalidateTokenAsync(InvalidateTokenRequest request, RequestOptions options, ActionListener<InvalidateTokenResponse> listener) Deprecated.Asynchronously invalidates an OAuth2 token. See the docs for more.- Parameters:
request
- the request to invalidate the tokenoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
getBuiltinPrivileges
Deprecated.Synchronously get builtin (cluster & index) privilege(s). See the docs for more.- Parameters:
options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response from the get builtin privileges call
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
getBuiltinPrivilegesAsync
public Cancellable getBuiltinPrivilegesAsync(RequestOptions options, ActionListener<GetBuiltinPrivilegesResponse> listener) Deprecated.Asynchronously get builtin (cluster & index) privilege(s). See the docs for more.- Parameters:
options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
getPrivileges
public GetPrivilegesResponse getPrivileges(GetPrivilegesRequest request, RequestOptions options) throws IOException Deprecated.Synchronously get application privilege(s). See the docs for more.- Parameters:
request
-GetPrivilegesRequest
with the application name and the privilege name. If no application name is provided, information about all privileges for all applications is retrieved. If no privilege name is provided, information about all privileges of the specified application is retrieved.options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response from the get privileges call
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
getPrivilegesAsync
public Cancellable getPrivilegesAsync(GetPrivilegesRequest request, RequestOptions options, ActionListener<GetPrivilegesResponse> listener) Deprecated.Asynchronously get application privilege(s). See the docs for more.- Parameters:
request
-GetPrivilegesRequest
with the application name and the privilege name. If no application name is provided, information about all privileges for all applications is retrieved. If no privilege name is provided, information about all privileges of the specified application is retrieved.options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
putPrivileges
public PutPrivilegesResponse putPrivileges(PutPrivilegesRequest request, RequestOptions options) throws IOException Deprecated.Create or update application privileges. See the docs for more.- Parameters:
request
- the request to create or update application privilegesoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response from the create or update application privileges call
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
putPrivilegesAsync
public Cancellable putPrivilegesAsync(PutPrivilegesRequest request, RequestOptions options, ActionListener<PutPrivilegesResponse> listener) Deprecated.Asynchronously create or update application privileges.
See the docs for more.- Parameters:
request
- the request to create or update application privilegesoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
deletePrivileges
public DeletePrivilegesResponse deletePrivileges(DeletePrivilegesRequest request, RequestOptions options) throws IOException Deprecated.Removes application privilege(s) See the docs for more.- Parameters:
request
- the request with the application privilege to deleteoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response from the delete application privilege call
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
deletePrivilegesAsync
public Cancellable deletePrivilegesAsync(DeletePrivilegesRequest request, RequestOptions options, ActionListener<DeletePrivilegesResponse> listener) Deprecated.Asynchronously removes an application privilege See the docs for more.- Parameters:
request
- the request with the application privilege to deleteoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
createApiKey
public CreateApiKeyResponse createApiKey(CreateApiKeyRequest request, RequestOptions options) throws IOException Deprecated.Create an API Key.
See the docs for more.- Parameters:
request
- the request to create a API keyoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response from the create API key call
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
createApiKeyAsync
public Cancellable createApiKeyAsync(CreateApiKeyRequest request, RequestOptions options, ActionListener<CreateApiKeyResponse> listener) Deprecated.Asynchronously creates an API key.
See the docs for more.- Parameters:
request
- the request to create a API keyoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
getApiKey
public GetApiKeyResponse getApiKey(GetApiKeyRequest request, RequestOptions options) throws IOException Deprecated.Retrieve API Key(s) information.
See the docs for more.- Parameters:
request
- the request to retrieve API key(s)options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response from the get API key call
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
getApiKeyAsync
public Cancellable getApiKeyAsync(GetApiKeyRequest request, RequestOptions options, ActionListener<GetApiKeyResponse> listener) Deprecated.Asynchronously retrieve API Key(s) information.
See the docs for more.- Parameters:
request
- the request to retrieve API key(s)options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
invalidateApiKey
public InvalidateApiKeyResponse invalidateApiKey(InvalidateApiKeyRequest request, RequestOptions options) throws IOException Deprecated.Invalidate API Key(s).
See the docs for more.- Parameters:
request
- the request to invalidate API key(s)options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response from the invalidate API key call
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
invalidateApiKeyAsync
public Cancellable invalidateApiKeyAsync(InvalidateApiKeyRequest request, RequestOptions options, ActionListener<InvalidateApiKeyResponse> listener) Deprecated.Asynchronously invalidates API key(s).
See the docs for more.- Parameters:
request
- the request to invalidate API key(s)options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
grantApiKey
public CreateApiKeyResponse grantApiKey(GrantApiKeyRequest request, RequestOptions options) throws IOException Deprecated.Create an API Key on behalf of another user.
See the docs for more.- Parameters:
request
- the request to grant an API keyoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response from the create API key call
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
grantApiKeyAsync
public Cancellable grantApiKeyAsync(GrantApiKeyRequest request, RequestOptions options, ActionListener<CreateApiKeyResponse> listener) Deprecated.Asynchronously creates an API key on behalf of another user.
See the docs for more.- Parameters:
request
- the request to grant an API keyoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
queryApiKey
public QueryApiKeyResponse queryApiKey(QueryApiKeyRequest request, RequestOptions options) throws IOException Deprecated.Query and retrieve API Key(s) information.
See the docs for more.- Parameters:
request
- the request to query and retrieve API key(s)options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response from the query API key call
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
queryApiKeyAsync
public Cancellable queryApiKeyAsync(QueryApiKeyRequest request, RequestOptions options, ActionListener<QueryApiKeyResponse> listener) Deprecated.Asynchronously query and retrieve API Key(s) information.
See the docs for more.- Parameters:
request
- the request to query and retrieve API key(s)options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
getServiceAccounts
public GetServiceAccountsResponse getServiceAccounts(GetServiceAccountsRequest request, RequestOptions options) throws IOException Deprecated.Get a service account, or list of service accounts synchronously. See the docs for more information.- Parameters:
request
- the request with namespace and service-nameoptions
- the request options (e.g., headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response from the get service accounts call
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
getServiceAccountsAsync
public Cancellable getServiceAccountsAsync(GetServiceAccountsRequest request, RequestOptions options, ActionListener<GetServiceAccountsResponse> listener) Deprecated.Get a service account, or list of service accounts asynchronously. See the docs for more information.- Parameters:
request
- the request with namespace and service-nameoptions
- the request options (e.g., headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
createServiceAccountToken
public CreateServiceAccountTokenResponse createServiceAccountToken(CreateServiceAccountTokenRequest request, RequestOptions options) throws IOException Deprecated.Create a service account token.
See the docs for more.- Parameters:
request
- the request to create a service account tokenoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response from the create service account token call
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
createServiceAccountTokenAsync
public Cancellable createServiceAccountTokenAsync(CreateServiceAccountTokenRequest request, RequestOptions options, ActionListener<CreateServiceAccountTokenResponse> listener) Deprecated.Asynchronously creates a service account token.
See the docs for more.- Parameters:
request
- the request to create a service account tokenoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
deleteServiceAccountToken
public DeleteServiceAccountTokenResponse deleteServiceAccountToken(DeleteServiceAccountTokenRequest request, RequestOptions options) throws IOException Deprecated.Delete a service account token.
See the docs for more.- Parameters:
request
- the request to delete a service account tokenoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response from the create service account token call
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
deleteServiceAccountTokenAsync
public Cancellable deleteServiceAccountTokenAsync(DeleteServiceAccountTokenRequest request, RequestOptions options, ActionListener<DeleteServiceAccountTokenResponse> listener) Deprecated.Asynchronously deletes a service account token.
See the docs for more.- Parameters:
request
- the request to delete a service account tokenoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
getServiceAccountCredentials
public GetServiceAccountCredentialsResponse getServiceAccountCredentials(GetServiceAccountCredentialsRequest request, RequestOptions options) throws IOException Deprecated.Get credentials for a service account synchronously. See the docs for more information.- Parameters:
request
- the request with namespace and service-nameoptions
- the request options (e.g., headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response from the get service accounts call
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
getServiceAccountCredentialsAsync
public Cancellable getServiceAccountCredentialsAsync(GetServiceAccountCredentialsRequest request, RequestOptions options, ActionListener<GetServiceAccountCredentialsResponse> listener) Deprecated.Get credentials for a service account asynchronously. See the docs for more information.- Parameters:
request
- the request with namespace and service-nameoptions
- the request options (e.g., headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
delegatePkiAuthentication
public DelegatePkiAuthenticationResponse delegatePkiAuthentication(DelegatePkiAuthenticationRequest request, RequestOptions options) throws IOException Deprecated.Get an Elasticsearch access token from anX509Certificate
chain. The certificate chain is that of the client from a mutually authenticated TLS session, and it is validated by the PKI realms withdelegation.enabled
toggled totrue
.
See the docs for more details.- Parameters:
request
- the request containing the certificate chainoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response from the delegate-pki-authentication API key call
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
delegatePkiAuthenticationAsync
public Cancellable delegatePkiAuthenticationAsync(DelegatePkiAuthenticationRequest request, RequestOptions options, ActionListener<DelegatePkiAuthenticationResponse> listener) Deprecated.Asynchronously get an Elasticsearch access token from anX509Certificate
chain. The certificate chain is that of the client from a mutually authenticated TLS session, and it is validated by the PKI realms withdelegation.enabled
toggled totrue
.
See the docs for more details.- Parameters:
request
- the request containing the certificate chainoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion
-