Class ElasticsearchSecurityClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchSecurityClient>
co.elastic.clients.elasticsearch.security.ElasticsearchSecurityClient
public class ElasticsearchSecurityClient
extends ApiClient<ElasticsearchTransport,ElasticsearchSecurityClient>
Client for the security namespace.
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions -
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchSecurityClient(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptionCreates or updates the user profile on behalf of another user.activateUserProfile(Function<ActivateUserProfileRequest.Builder, ObjectBuilder<ActivateUserProfileRequest>> fn) Creates or updates the user profile on behalf of another user.Enables authentication as a user and retrieve information about the authenticated user.Changes the passwords of users in the native realm and built-in users.changePassword(ChangePasswordRequest request) Changes the passwords of users in the native realm and built-in users.final ChangePasswordResponseChanges the passwords of users in the native realm and built-in users.clearApiKeyCache(ClearApiKeyCacheRequest request) Clear a subset or all entries from the API key cache.final ClearApiKeyCacheResponseclearApiKeyCache(Function<ClearApiKeyCacheRequest.Builder, ObjectBuilder<ClearApiKeyCacheRequest>> fn) Clear a subset or all entries from the API key cache.Evicts application privileges from the native application privileges cache.clearCachedPrivileges(Function<ClearCachedPrivilegesRequest.Builder, ObjectBuilder<ClearCachedPrivilegesRequest>> fn) Evicts application privileges from the native application privileges cache.Evicts users from the user cache.clearCachedRealms(Function<ClearCachedRealmsRequest.Builder, ObjectBuilder<ClearCachedRealmsRequest>> fn) Evicts users from the user cache.clearCachedRoles(ClearCachedRolesRequest request) Evicts roles from the native role cache.final ClearCachedRolesResponseclearCachedRoles(Function<ClearCachedRolesRequest.Builder, ObjectBuilder<ClearCachedRolesRequest>> fn) Evicts roles from the native role cache.Evicts tokens from the service account token caches.clearCachedServiceTokens(Function<ClearCachedServiceTokensRequest.Builder, ObjectBuilder<ClearCachedServiceTokensRequest>> fn) Evicts tokens from the service account token caches.Creates an API key for access without requiring basic authentication.createApiKey(CreateApiKeyRequest request) Creates an API key for access without requiring basic authentication.final CreateApiKeyResponseCreates an API key for access without requiring basic authentication.Creates a service account token for access without requiring basic authentication.createServiceToken(Function<CreateServiceTokenRequest.Builder, ObjectBuilder<CreateServiceTokenRequest>> fn) Creates a service account token for access without requiring basic authentication.deletePrivileges(DeletePrivilegesRequest request) Removes application privileges.final DeletePrivilegesResponsedeletePrivileges(Function<DeletePrivilegesRequest.Builder, ObjectBuilder<DeletePrivilegesRequest>> fn) Removes application privileges.deleteRole(DeleteRoleRequest request) Removes roles in the native realm.final DeleteRoleResponseRemoves roles in the native realm.Removes role mappings.deleteRoleMapping(Function<DeleteRoleMappingRequest.Builder, ObjectBuilder<DeleteRoleMappingRequest>> fn) Removes role mappings.Deletes a service account token.deleteServiceToken(Function<DeleteServiceTokenRequest.Builder, ObjectBuilder<DeleteServiceTokenRequest>> fn) Deletes a service account token.deleteUser(DeleteUserRequest request) Deletes users from the native realm.final DeleteUserResponseDeletes users from the native realm.disableUser(DisableUserRequest request) Disables users in the native realm.final DisableUserResponseDisables users in the native realm.Disables a user profile so it's not visible in user profile searches.disableUserProfile(Function<DisableUserProfileRequest.Builder, ObjectBuilder<DisableUserProfileRequest>> fn) Disables a user profile so it's not visible in user profile searches.enableUser(EnableUserRequest request) Enables users in the native realm.final EnableUserResponseEnables users in the native realm.Enables a user profile so it's visible in user profile searches.enableUserProfile(Function<EnableUserProfileRequest.Builder, ObjectBuilder<EnableUserProfileRequest>> fn) Enables a user profile so it's visible in user profile searches.Allows a kibana instance to configure itself to communicate with a secured elasticsearch cluster.Allows a new node to enroll to an existing cluster with security enabled.Retrieves information for one or more API keys.getApiKey(GetApiKeyRequest request) Retrieves information for one or more API keys.final GetApiKeyResponseRetrieves information for one or more API keys.Retrieves the list of cluster privileges and index privileges that are available in this version of Elasticsearch.Retrieves application privileges.getPrivileges(GetPrivilegesRequest request) Retrieves application privileges.final GetPrivilegesResponseRetrieves application privileges.getRole()Retrieves roles in the native realm.getRole(GetRoleRequest request) Retrieves roles in the native realm.final GetRoleResponseRetrieves roles in the native realm.Retrieves role mappings.getRoleMapping(GetRoleMappingRequest request) Retrieves role mappings.final GetRoleMappingResponseRetrieves role mappings.Retrieves information about service accounts.Retrieves information about service accounts.getServiceAccounts(Function<GetServiceAccountsRequest.Builder, ObjectBuilder<GetServiceAccountsRequest>> fn) Retrieves information about service accounts.Retrieves information of all service credentials for a service account.getServiceCredentials(Function<GetServiceCredentialsRequest.Builder, ObjectBuilder<GetServiceCredentialsRequest>> fn) Retrieves information of all service credentials for a service account.getToken()Creates a bearer token for access without requiring basic authentication.getToken(GetTokenRequest request) Creates a bearer token for access without requiring basic authentication.final GetTokenResponseCreates a bearer token for access without requiring basic authentication.getUser()Retrieves information about users in the native realm and built-in users.getUser(GetUserRequest request) Retrieves information about users in the native realm and built-in users.final GetUserResponseRetrieves information about users in the native realm and built-in users.Retrieves security privileges for the logged in user.Retrieves security privileges for the logged in user.getUserPrivileges(Function<GetUserPrivilegesRequest.Builder, ObjectBuilder<GetUserPrivilegesRequest>> fn) Retrieves security privileges for the logged in user.getUserProfile(GetUserProfileRequest request) Retrieves user profiles for the given unique ID(s).final GetUserProfileResponseRetrieves user profiles for the given unique ID(s).grantApiKey(GrantApiKeyRequest request) Creates an API key on behalf of another user.final GrantApiKeyResponseCreates an API key on behalf of another user.Determines whether the specified user has a specified list of privileges.hasPrivileges(HasPrivilegesRequest request) Determines whether the specified user has a specified list of privileges.final HasPrivilegesResponseDetermines whether the specified user has a specified list of privileges.Determines whether the users associated with the specified profile IDs have all the requested privileges.hasPrivilegesUserProfile(Function<HasPrivilegesUserProfileRequest.Builder, ObjectBuilder<HasPrivilegesUserProfileRequest>> fn) Determines whether the users associated with the specified profile IDs have all the requested privileges.Invalidates one or more API keys.invalidateApiKey(InvalidateApiKeyRequest request) Invalidates one or more API keys.final InvalidateApiKeyResponseinvalidateApiKey(Function<InvalidateApiKeyRequest.Builder, ObjectBuilder<InvalidateApiKeyRequest>> fn) Invalidates one or more API keys.Invalidates one or more access tokens or refresh tokens.invalidateToken(InvalidateTokenRequest request) Invalidates one or more access tokens or refresh tokens.final InvalidateTokenResponseInvalidates one or more access tokens or refresh tokens.Adds or updates application privileges.putPrivileges(PutPrivilegesRequest request) Adds or updates application privileges.final PutPrivilegesResponseAdds or updates application privileges.putRole(PutRoleRequest request) Adds and updates roles in the native realm.final PutRoleResponseAdds and updates roles in the native realm.putRoleMapping(PutRoleMappingRequest request) Creates and updates role mappings.final PutRoleMappingResponseCreates and updates role mappings.putUser(PutUserRequest request) Adds and updates users in the native realm.final PutUserResponseAdds and updates users in the native realm.Retrieves information for API keys using a subset of query DSLqueryApiKeys(QueryApiKeysRequest request) Retrieves information for API keys using a subset of query DSLfinal QueryApiKeysResponseRetrieves information for API keys using a subset of query DSLsamlAuthenticate(SamlAuthenticateRequest request) Exchanges a SAML Response message for an Elasticsearch access token and refresh token pairfinal SamlAuthenticateResponsesamlAuthenticate(Function<SamlAuthenticateRequest.Builder, ObjectBuilder<SamlAuthenticateRequest>> fn) Exchanges a SAML Response message for an Elasticsearch access token and refresh token pairVerifies the logout response sent from the SAML IdPfinal BooleanResponsesamlCompleteLogout(Function<SamlCompleteLogoutRequest.Builder, ObjectBuilder<SamlCompleteLogoutRequest>> fn) Verifies the logout response sent from the SAML IdPsamlInvalidate(SamlInvalidateRequest request) Consumes a SAML LogoutRequestfinal SamlInvalidateResponseConsumes a SAML LogoutRequestsamlLogout(SamlLogoutRequest request) Invalidates an access token and a refresh token that were generated via the SAML Authenticate APIfinal SamlLogoutResponseInvalidates an access token and a refresh token that were generated via the SAML Authenticate APICreates a SAML authentication requestCreates a SAML authentication requestsamlPrepareAuthentication(Function<SamlPrepareAuthenticationRequest.Builder, ObjectBuilder<SamlPrepareAuthenticationRequest>> fn) Creates a SAML authentication requestGenerates SAML metadata for the Elastic stack SAML 2.0 Service ProvidersamlServiceProviderMetadata(Function<SamlServiceProviderMetadataRequest.Builder, ObjectBuilder<SamlServiceProviderMetadataRequest>> fn) Generates SAML metadata for the Elastic stack SAML 2.0 Service ProviderGet suggestions for user profiles that match specified search criteria.Get suggestions for user profiles that match specified search criteria.suggestUserProfiles(Function<SuggestUserProfilesRequest.Builder, ObjectBuilder<SuggestUserProfilesRequest>> fn) Get suggestions for user profiles that match specified search criteria.updateApiKey(UpdateApiKeyRequest request) Updates attributes of an existing API key.final UpdateApiKeyResponseUpdates attributes of an existing API key.Update application specific data for the user profile of the given unique ID.updateUserProfileData(Function<UpdateUserProfileDataRequest.Builder, ObjectBuilder<UpdateUserProfileDataRequest>> fn) Update application specific data for the user profile of the given unique ID.withTransportOptions(TransportOptions transportOptions) Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, getDeserializer, withTransportOptions
-
Constructor Details
-
ElasticsearchSecurityClient
-
ElasticsearchSecurityClient
public ElasticsearchSecurityClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
public ElasticsearchSecurityClient withTransportOptions(@Nullable TransportOptions transportOptions) Description copied from class:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin classApiClient<ElasticsearchTransport,ElasticsearchSecurityClient>
-
activateUserProfile
public ActivateUserProfileResponse activateUserProfile(ActivateUserProfileRequest request) throws IOException, ElasticsearchException Creates or updates the user profile on behalf of another user.- Throws:
IOExceptionElasticsearchException- See Also:
-
activateUserProfile
public final ActivateUserProfileResponse activateUserProfile(Function<ActivateUserProfileRequest.Builder, ObjectBuilder<ActivateUserProfileRequest>> fn) throws IOException, ElasticsearchExceptionCreates or updates the user profile on behalf of another user.- Parameters:
fn- a function that initializes a builder to create theActivateUserProfileRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
authenticate
Enables authentication as a user and retrieve information about the authenticated user.- Throws:
IOExceptionElasticsearchException- See Also:
-
changePassword
public ChangePasswordResponse changePassword(ChangePasswordRequest request) throws IOException, ElasticsearchException Changes the passwords of users in the native realm and built-in users.- Throws:
IOExceptionElasticsearchException- See Also:
-
changePassword
public final ChangePasswordResponse changePassword(Function<ChangePasswordRequest.Builder, ObjectBuilder<ChangePasswordRequest>> fn) throws IOException, ElasticsearchExceptionChanges the passwords of users in the native realm and built-in users.- Parameters:
fn- a function that initializes a builder to create theChangePasswordRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
changePassword
Changes the passwords of users in the native realm and built-in users.- Throws:
IOExceptionElasticsearchException- See Also:
-
clearApiKeyCache
public ClearApiKeyCacheResponse clearApiKeyCache(ClearApiKeyCacheRequest request) throws IOException, ElasticsearchException Clear a subset or all entries from the API key cache.- Throws:
IOExceptionElasticsearchException- See Also:
-
clearApiKeyCache
public final ClearApiKeyCacheResponse clearApiKeyCache(Function<ClearApiKeyCacheRequest.Builder, ObjectBuilder<ClearApiKeyCacheRequest>> fn) throws IOException, ElasticsearchExceptionClear a subset or all entries from the API key cache.- Parameters:
fn- a function that initializes a builder to create theClearApiKeyCacheRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
clearCachedPrivileges
public ClearCachedPrivilegesResponse clearCachedPrivileges(ClearCachedPrivilegesRequest request) throws IOException, ElasticsearchException Evicts application privileges from the native application privileges cache.- Throws:
IOExceptionElasticsearchException- See Also:
-
clearCachedPrivileges
public final ClearCachedPrivilegesResponse clearCachedPrivileges(Function<ClearCachedPrivilegesRequest.Builder, ObjectBuilder<ClearCachedPrivilegesRequest>> fn) throws IOException, ElasticsearchExceptionEvicts application privileges from the native application privileges cache.- Parameters:
fn- a function that initializes a builder to create theClearCachedPrivilegesRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
clearCachedRealms
public ClearCachedRealmsResponse clearCachedRealms(ClearCachedRealmsRequest request) throws IOException, ElasticsearchException Evicts users from the user cache. Can completely clear the cache or evict specific users.- Throws:
IOExceptionElasticsearchException- See Also:
-
clearCachedRealms
public final ClearCachedRealmsResponse clearCachedRealms(Function<ClearCachedRealmsRequest.Builder, ObjectBuilder<ClearCachedRealmsRequest>> fn) throws IOException, ElasticsearchExceptionEvicts users from the user cache. Can completely clear the cache or evict specific users.- Parameters:
fn- a function that initializes a builder to create theClearCachedRealmsRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
clearCachedRoles
public ClearCachedRolesResponse clearCachedRoles(ClearCachedRolesRequest request) throws IOException, ElasticsearchException Evicts roles from the native role cache.- Throws:
IOExceptionElasticsearchException- See Also:
-
clearCachedRoles
public final ClearCachedRolesResponse clearCachedRoles(Function<ClearCachedRolesRequest.Builder, ObjectBuilder<ClearCachedRolesRequest>> fn) throws IOException, ElasticsearchExceptionEvicts roles from the native role cache.- Parameters:
fn- a function that initializes a builder to create theClearCachedRolesRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
clearCachedServiceTokens
public ClearCachedServiceTokensResponse clearCachedServiceTokens(ClearCachedServiceTokensRequest request) throws IOException, ElasticsearchException Evicts tokens from the service account token caches.- Throws:
IOExceptionElasticsearchException- See Also:
-
clearCachedServiceTokens
public final ClearCachedServiceTokensResponse clearCachedServiceTokens(Function<ClearCachedServiceTokensRequest.Builder, ObjectBuilder<ClearCachedServiceTokensRequest>> fn) throws IOException, ElasticsearchExceptionEvicts tokens from the service account token caches.- Parameters:
fn- a function that initializes a builder to create theClearCachedServiceTokensRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
createApiKey
public CreateApiKeyResponse createApiKey(CreateApiKeyRequest request) throws IOException, ElasticsearchException Creates an API key for access without requiring basic authentication.- Throws:
IOExceptionElasticsearchException- See Also:
-
createApiKey
public final CreateApiKeyResponse createApiKey(Function<CreateApiKeyRequest.Builder, ObjectBuilder<CreateApiKeyRequest>> fn) throws IOException, ElasticsearchExceptionCreates an API key for access without requiring basic authentication.- Parameters:
fn- a function that initializes a builder to create theCreateApiKeyRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
createApiKey
Creates an API key for access without requiring basic authentication.- Throws:
IOExceptionElasticsearchException- See Also:
-
createServiceToken
public CreateServiceTokenResponse createServiceToken(CreateServiceTokenRequest request) throws IOException, ElasticsearchException Creates a service account token for access without requiring basic authentication.- Throws:
IOExceptionElasticsearchException- See Also:
-
createServiceToken
public final CreateServiceTokenResponse createServiceToken(Function<CreateServiceTokenRequest.Builder, ObjectBuilder<CreateServiceTokenRequest>> fn) throws IOException, ElasticsearchExceptionCreates a service account token for access without requiring basic authentication.- Parameters:
fn- a function that initializes a builder to create theCreateServiceTokenRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
deletePrivileges
public DeletePrivilegesResponse deletePrivileges(DeletePrivilegesRequest request) throws IOException, ElasticsearchException Removes application privileges.- Throws:
IOExceptionElasticsearchException- See Also:
-
deletePrivileges
public final DeletePrivilegesResponse deletePrivileges(Function<DeletePrivilegesRequest.Builder, ObjectBuilder<DeletePrivilegesRequest>> fn) throws IOException, ElasticsearchExceptionRemoves application privileges.- Parameters:
fn- a function that initializes a builder to create theDeletePrivilegesRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
deleteRole
public DeleteRoleResponse deleteRole(DeleteRoleRequest request) throws IOException, ElasticsearchException Removes roles in the native realm.- Throws:
IOExceptionElasticsearchException- See Also:
-
deleteRole
public final DeleteRoleResponse deleteRole(Function<DeleteRoleRequest.Builder, ObjectBuilder<DeleteRoleRequest>> fn) throws IOException, ElasticsearchExceptionRemoves roles in the native realm.- Parameters:
fn- a function that initializes a builder to create theDeleteRoleRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
deleteRoleMapping
public DeleteRoleMappingResponse deleteRoleMapping(DeleteRoleMappingRequest request) throws IOException, ElasticsearchException Removes role mappings.- Throws:
IOExceptionElasticsearchException- See Also:
-
deleteRoleMapping
public final DeleteRoleMappingResponse deleteRoleMapping(Function<DeleteRoleMappingRequest.Builder, ObjectBuilder<DeleteRoleMappingRequest>> fn) throws IOException, ElasticsearchExceptionRemoves role mappings.- Parameters:
fn- a function that initializes a builder to create theDeleteRoleMappingRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
deleteServiceToken
public DeleteServiceTokenResponse deleteServiceToken(DeleteServiceTokenRequest request) throws IOException, ElasticsearchException Deletes a service account token.- Throws:
IOExceptionElasticsearchException- See Also:
-
deleteServiceToken
public final DeleteServiceTokenResponse deleteServiceToken(Function<DeleteServiceTokenRequest.Builder, ObjectBuilder<DeleteServiceTokenRequest>> fn) throws IOException, ElasticsearchExceptionDeletes a service account token.- Parameters:
fn- a function that initializes a builder to create theDeleteServiceTokenRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
deleteUser
public DeleteUserResponse deleteUser(DeleteUserRequest request) throws IOException, ElasticsearchException Deletes users from the native realm.- Throws:
IOExceptionElasticsearchException- See Also:
-
deleteUser
public final DeleteUserResponse deleteUser(Function<DeleteUserRequest.Builder, ObjectBuilder<DeleteUserRequest>> fn) throws IOException, ElasticsearchExceptionDeletes users from the native realm.- Parameters:
fn- a function that initializes a builder to create theDeleteUserRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
disableUser
public DisableUserResponse disableUser(DisableUserRequest request) throws IOException, ElasticsearchException Disables users in the native realm.- Throws:
IOExceptionElasticsearchException- See Also:
-
disableUser
public final DisableUserResponse disableUser(Function<DisableUserRequest.Builder, ObjectBuilder<DisableUserRequest>> fn) throws IOException, ElasticsearchExceptionDisables users in the native realm.- Parameters:
fn- a function that initializes a builder to create theDisableUserRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
disableUserProfile
public DisableUserProfileResponse disableUserProfile(DisableUserProfileRequest request) throws IOException, ElasticsearchException Disables a user profile so it's not visible in user profile searches.- Throws:
IOExceptionElasticsearchException- See Also:
-
disableUserProfile
public final DisableUserProfileResponse disableUserProfile(Function<DisableUserProfileRequest.Builder, ObjectBuilder<DisableUserProfileRequest>> fn) throws IOException, ElasticsearchExceptionDisables a user profile so it's not visible in user profile searches.- Parameters:
fn- a function that initializes a builder to create theDisableUserProfileRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
enableUser
public EnableUserResponse enableUser(EnableUserRequest request) throws IOException, ElasticsearchException Enables users in the native realm.- Throws:
IOExceptionElasticsearchException- See Also:
-
enableUser
public final EnableUserResponse enableUser(Function<EnableUserRequest.Builder, ObjectBuilder<EnableUserRequest>> fn) throws IOException, ElasticsearchExceptionEnables users in the native realm.- Parameters:
fn- a function that initializes a builder to create theEnableUserRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
enableUserProfile
public EnableUserProfileResponse enableUserProfile(EnableUserProfileRequest request) throws IOException, ElasticsearchException Enables a user profile so it's visible in user profile searches.- Throws:
IOExceptionElasticsearchException- See Also:
-
enableUserProfile
public final EnableUserProfileResponse enableUserProfile(Function<EnableUserProfileRequest.Builder, ObjectBuilder<EnableUserProfileRequest>> fn) throws IOException, ElasticsearchExceptionEnables a user profile so it's visible in user profile searches.- Parameters:
fn- a function that initializes a builder to create theEnableUserProfileRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
enrollKibana
Allows a kibana instance to configure itself to communicate with a secured elasticsearch cluster.- Throws:
IOExceptionElasticsearchException- See Also:
-
enrollNode
Allows a new node to enroll to an existing cluster with security enabled.- Throws:
IOExceptionElasticsearchException- See Also:
-
getApiKey
public GetApiKeyResponse getApiKey(GetApiKeyRequest request) throws IOException, ElasticsearchException Retrieves information for one or more API keys.- Throws:
IOExceptionElasticsearchException- See Also:
-
getApiKey
public final GetApiKeyResponse getApiKey(Function<GetApiKeyRequest.Builder, ObjectBuilder<GetApiKeyRequest>> fn) throws IOException, ElasticsearchExceptionRetrieves information for one or more API keys.- Parameters:
fn- a function that initializes a builder to create theGetApiKeyRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
getApiKey
Retrieves information for one or more API keys.- Throws:
IOExceptionElasticsearchException- See Also:
-
getBuiltinPrivileges
public GetBuiltinPrivilegesResponse getBuiltinPrivileges() throws IOException, ElasticsearchExceptionRetrieves the list of cluster privileges and index privileges that are available in this version of Elasticsearch.- Throws:
IOExceptionElasticsearchException- See Also:
-
getPrivileges
public GetPrivilegesResponse getPrivileges(GetPrivilegesRequest request) throws IOException, ElasticsearchException Retrieves application privileges.- Throws:
IOExceptionElasticsearchException- See Also:
-
getPrivileges
public final GetPrivilegesResponse getPrivileges(Function<GetPrivilegesRequest.Builder, ObjectBuilder<GetPrivilegesRequest>> fn) throws IOException, ElasticsearchExceptionRetrieves application privileges.- Parameters:
fn- a function that initializes a builder to create theGetPrivilegesRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
getPrivileges
Retrieves application privileges.- Throws:
IOExceptionElasticsearchException- See Also:
-
getRole
Retrieves roles in the native realm.- Throws:
IOExceptionElasticsearchException- See Also:
-
getRole
public final GetRoleResponse getRole(Function<GetRoleRequest.Builder, ObjectBuilder<GetRoleRequest>> fn) throws IOException, ElasticsearchExceptionRetrieves roles in the native realm.- Parameters:
fn- a function that initializes a builder to create theGetRoleRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
getRole
Retrieves roles in the native realm.- Throws:
IOExceptionElasticsearchException- See Also:
-
getRoleMapping
public GetRoleMappingResponse getRoleMapping(GetRoleMappingRequest request) throws IOException, ElasticsearchException Retrieves role mappings.- Throws:
IOExceptionElasticsearchException- See Also:
-
getRoleMapping
public final GetRoleMappingResponse getRoleMapping(Function<GetRoleMappingRequest.Builder, ObjectBuilder<GetRoleMappingRequest>> fn) throws IOException, ElasticsearchExceptionRetrieves role mappings.- Parameters:
fn- a function that initializes a builder to create theGetRoleMappingRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
getRoleMapping
Retrieves role mappings.- Throws:
IOExceptionElasticsearchException- See Also:
-
getServiceAccounts
public GetServiceAccountsResponse getServiceAccounts(GetServiceAccountsRequest request) throws IOException, ElasticsearchException Retrieves information about service accounts.- Throws:
IOExceptionElasticsearchException- See Also:
-
getServiceAccounts
public final GetServiceAccountsResponse getServiceAccounts(Function<GetServiceAccountsRequest.Builder, ObjectBuilder<GetServiceAccountsRequest>> fn) throws IOException, ElasticsearchExceptionRetrieves information about service accounts.- Parameters:
fn- a function that initializes a builder to create theGetServiceAccountsRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
getServiceAccounts
Retrieves information about service accounts.- Throws:
IOExceptionElasticsearchException- See Also:
-
getServiceCredentials
public GetServiceCredentialsResponse getServiceCredentials(GetServiceCredentialsRequest request) throws IOException, ElasticsearchException Retrieves information of all service credentials for a service account.- Throws:
IOExceptionElasticsearchException- See Also:
-
getServiceCredentials
public final GetServiceCredentialsResponse getServiceCredentials(Function<GetServiceCredentialsRequest.Builder, ObjectBuilder<GetServiceCredentialsRequest>> fn) throws IOException, ElasticsearchExceptionRetrieves information of all service credentials for a service account.- Parameters:
fn- a function that initializes a builder to create theGetServiceCredentialsRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
getToken
public GetTokenResponse getToken(GetTokenRequest request) throws IOException, ElasticsearchException Creates a bearer token for access without requiring basic authentication.- Throws:
IOExceptionElasticsearchException- See Also:
-
getToken
public final GetTokenResponse getToken(Function<GetTokenRequest.Builder, ObjectBuilder<GetTokenRequest>> fn) throws IOException, ElasticsearchExceptionCreates a bearer token for access without requiring basic authentication.- Parameters:
fn- a function that initializes a builder to create theGetTokenRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
getToken
Creates a bearer token for access without requiring basic authentication.- Throws:
IOExceptionElasticsearchException- See Also:
-
getUser
Retrieves information about users in the native realm and built-in users.- Throws:
IOExceptionElasticsearchException- See Also:
-
getUser
public final GetUserResponse getUser(Function<GetUserRequest.Builder, ObjectBuilder<GetUserRequest>> fn) throws IOException, ElasticsearchExceptionRetrieves information about users in the native realm and built-in users.- Parameters:
fn- a function that initializes a builder to create theGetUserRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
getUser
Retrieves information about users in the native realm and built-in users.- Throws:
IOExceptionElasticsearchException- See Also:
-
getUserPrivileges
public GetUserPrivilegesResponse getUserPrivileges(GetUserPrivilegesRequest request) throws IOException, ElasticsearchException Retrieves security privileges for the logged in user.- Throws:
IOExceptionElasticsearchException- See Also:
-
getUserPrivileges
public final GetUserPrivilegesResponse getUserPrivileges(Function<GetUserPrivilegesRequest.Builder, ObjectBuilder<GetUserPrivilegesRequest>> fn) throws IOException, ElasticsearchExceptionRetrieves security privileges for the logged in user.- Parameters:
fn- a function that initializes a builder to create theGetUserPrivilegesRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
getUserPrivileges
Retrieves security privileges for the logged in user.- Throws:
IOExceptionElasticsearchException- See Also:
-
getUserProfile
public GetUserProfileResponse getUserProfile(GetUserProfileRequest request) throws IOException, ElasticsearchException Retrieves user profiles for the given unique ID(s).- Throws:
IOExceptionElasticsearchException- See Also:
-
getUserProfile
public final GetUserProfileResponse getUserProfile(Function<GetUserProfileRequest.Builder, ObjectBuilder<GetUserProfileRequest>> fn) throws IOException, ElasticsearchExceptionRetrieves user profiles for the given unique ID(s).- Parameters:
fn- a function that initializes a builder to create theGetUserProfileRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
grantApiKey
public GrantApiKeyResponse grantApiKey(GrantApiKeyRequest request) throws IOException, ElasticsearchException Creates an API key on behalf of another user.- Throws:
IOExceptionElasticsearchException- See Also:
-
grantApiKey
public final GrantApiKeyResponse grantApiKey(Function<GrantApiKeyRequest.Builder, ObjectBuilder<GrantApiKeyRequest>> fn) throws IOException, ElasticsearchExceptionCreates an API key on behalf of another user.- Parameters:
fn- a function that initializes a builder to create theGrantApiKeyRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
hasPrivileges
public HasPrivilegesResponse hasPrivileges(HasPrivilegesRequest request) throws IOException, ElasticsearchException Determines whether the specified user has a specified list of privileges.- Throws:
IOExceptionElasticsearchException- See Also:
-
hasPrivileges
public final HasPrivilegesResponse hasPrivileges(Function<HasPrivilegesRequest.Builder, ObjectBuilder<HasPrivilegesRequest>> fn) throws IOException, ElasticsearchExceptionDetermines whether the specified user has a specified list of privileges.- Parameters:
fn- a function that initializes a builder to create theHasPrivilegesRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
hasPrivileges
Determines whether the specified user has a specified list of privileges.- Throws:
IOExceptionElasticsearchException- See Also:
-
hasPrivilegesUserProfile
public HasPrivilegesUserProfileResponse hasPrivilegesUserProfile(HasPrivilegesUserProfileRequest request) throws IOException, ElasticsearchException Determines whether the users associated with the specified profile IDs have all the requested privileges.- Throws:
IOExceptionElasticsearchException- See Also:
-
hasPrivilegesUserProfile
public final HasPrivilegesUserProfileResponse hasPrivilegesUserProfile(Function<HasPrivilegesUserProfileRequest.Builder, ObjectBuilder<HasPrivilegesUserProfileRequest>> fn) throws IOException, ElasticsearchExceptionDetermines whether the users associated with the specified profile IDs have all the requested privileges.- Parameters:
fn- a function that initializes a builder to create theHasPrivilegesUserProfileRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
invalidateApiKey
public InvalidateApiKeyResponse invalidateApiKey(InvalidateApiKeyRequest request) throws IOException, ElasticsearchException Invalidates one or more API keys.- Throws:
IOExceptionElasticsearchException- See Also:
-
invalidateApiKey
public final InvalidateApiKeyResponse invalidateApiKey(Function<InvalidateApiKeyRequest.Builder, ObjectBuilder<InvalidateApiKeyRequest>> fn) throws IOException, ElasticsearchExceptionInvalidates one or more API keys.- Parameters:
fn- a function that initializes a builder to create theInvalidateApiKeyRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
invalidateApiKey
Invalidates one or more API keys.- Throws:
IOExceptionElasticsearchException- See Also:
-
invalidateToken
public InvalidateTokenResponse invalidateToken(InvalidateTokenRequest request) throws IOException, ElasticsearchException Invalidates one or more access tokens or refresh tokens.- Throws:
IOExceptionElasticsearchException- See Also:
-
invalidateToken
public final InvalidateTokenResponse invalidateToken(Function<InvalidateTokenRequest.Builder, ObjectBuilder<InvalidateTokenRequest>> fn) throws IOException, ElasticsearchExceptionInvalidates one or more access tokens or refresh tokens.- Parameters:
fn- a function that initializes a builder to create theInvalidateTokenRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
invalidateToken
Invalidates one or more access tokens or refresh tokens.- Throws:
IOExceptionElasticsearchException- See Also:
-
putPrivileges
public PutPrivilegesResponse putPrivileges(PutPrivilegesRequest request) throws IOException, ElasticsearchException Adds or updates application privileges.- Throws:
IOExceptionElasticsearchException- See Also:
-
putPrivileges
public final PutPrivilegesResponse putPrivileges(Function<PutPrivilegesRequest.Builder, ObjectBuilder<PutPrivilegesRequest>> fn) throws IOException, ElasticsearchExceptionAdds or updates application privileges.- Parameters:
fn- a function that initializes a builder to create thePutPrivilegesRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
putPrivileges
Adds or updates application privileges.- Throws:
IOExceptionElasticsearchException- See Also:
-
putRole
Adds and updates roles in the native realm.- Throws:
IOExceptionElasticsearchException- See Also:
-
putRole
public final PutRoleResponse putRole(Function<PutRoleRequest.Builder, ObjectBuilder<PutRoleRequest>> fn) throws IOException, ElasticsearchExceptionAdds and updates roles in the native realm.- Parameters:
fn- a function that initializes a builder to create thePutRoleRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
putRoleMapping
public PutRoleMappingResponse putRoleMapping(PutRoleMappingRequest request) throws IOException, ElasticsearchException Creates and updates role mappings.- Throws:
IOExceptionElasticsearchException- See Also:
-
putRoleMapping
public final PutRoleMappingResponse putRoleMapping(Function<PutRoleMappingRequest.Builder, ObjectBuilder<PutRoleMappingRequest>> fn) throws IOException, ElasticsearchExceptionCreates and updates role mappings.- Parameters:
fn- a function that initializes a builder to create thePutRoleMappingRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
putUser
Adds and updates users in the native realm. These users are commonly referred to as native users.- Throws:
IOExceptionElasticsearchException- See Also:
-
putUser
public final PutUserResponse putUser(Function<PutUserRequest.Builder, ObjectBuilder<PutUserRequest>> fn) throws IOException, ElasticsearchExceptionAdds and updates users in the native realm. These users are commonly referred to as native users.- Parameters:
fn- a function that initializes a builder to create thePutUserRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
queryApiKeys
public QueryApiKeysResponse queryApiKeys(QueryApiKeysRequest request) throws IOException, ElasticsearchException Retrieves information for API keys using a subset of query DSL- Throws:
IOExceptionElasticsearchException- See Also:
-
queryApiKeys
public final QueryApiKeysResponse queryApiKeys(Function<QueryApiKeysRequest.Builder, ObjectBuilder<QueryApiKeysRequest>> fn) throws IOException, ElasticsearchExceptionRetrieves information for API keys using a subset of query DSL- Parameters:
fn- a function that initializes a builder to create theQueryApiKeysRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
queryApiKeys
Retrieves information for API keys using a subset of query DSL- Throws:
IOExceptionElasticsearchException- See Also:
-
samlAuthenticate
public SamlAuthenticateResponse samlAuthenticate(SamlAuthenticateRequest request) throws IOException, ElasticsearchException Exchanges a SAML Response message for an Elasticsearch access token and refresh token pair- Throws:
IOExceptionElasticsearchException- See Also:
-
samlAuthenticate
public final SamlAuthenticateResponse samlAuthenticate(Function<SamlAuthenticateRequest.Builder, ObjectBuilder<SamlAuthenticateRequest>> fn) throws IOException, ElasticsearchExceptionExchanges a SAML Response message for an Elasticsearch access token and refresh token pair- Parameters:
fn- a function that initializes a builder to create theSamlAuthenticateRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
samlCompleteLogout
public BooleanResponse samlCompleteLogout(SamlCompleteLogoutRequest request) throws IOException, ElasticsearchException Verifies the logout response sent from the SAML IdP- Throws:
IOExceptionElasticsearchException- See Also:
-
samlCompleteLogout
public final BooleanResponse samlCompleteLogout(Function<SamlCompleteLogoutRequest.Builder, ObjectBuilder<SamlCompleteLogoutRequest>> fn) throws IOException, ElasticsearchExceptionVerifies the logout response sent from the SAML IdP- Parameters:
fn- a function that initializes a builder to create theSamlCompleteLogoutRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
samlInvalidate
public SamlInvalidateResponse samlInvalidate(SamlInvalidateRequest request) throws IOException, ElasticsearchException Consumes a SAML LogoutRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
samlInvalidate
public final SamlInvalidateResponse samlInvalidate(Function<SamlInvalidateRequest.Builder, ObjectBuilder<SamlInvalidateRequest>> fn) throws IOException, ElasticsearchExceptionConsumes a SAML LogoutRequest- Parameters:
fn- a function that initializes a builder to create theSamlInvalidateRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
samlLogout
public SamlLogoutResponse samlLogout(SamlLogoutRequest request) throws IOException, ElasticsearchException Invalidates an access token and a refresh token that were generated via the SAML Authenticate API- Throws:
IOExceptionElasticsearchException- See Also:
-
samlLogout
public final SamlLogoutResponse samlLogout(Function<SamlLogoutRequest.Builder, ObjectBuilder<SamlLogoutRequest>> fn) throws IOException, ElasticsearchExceptionInvalidates an access token and a refresh token that were generated via the SAML Authenticate API- Parameters:
fn- a function that initializes a builder to create theSamlLogoutRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
samlPrepareAuthentication
public SamlPrepareAuthenticationResponse samlPrepareAuthentication(SamlPrepareAuthenticationRequest request) throws IOException, ElasticsearchException Creates a SAML authentication request- Throws:
IOExceptionElasticsearchException- See Also:
-
samlPrepareAuthentication
public final SamlPrepareAuthenticationResponse samlPrepareAuthentication(Function<SamlPrepareAuthenticationRequest.Builder, ObjectBuilder<SamlPrepareAuthenticationRequest>> fn) throws IOException, ElasticsearchExceptionCreates a SAML authentication request- Parameters:
fn- a function that initializes a builder to create theSamlPrepareAuthenticationRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
samlPrepareAuthentication
public SamlPrepareAuthenticationResponse samlPrepareAuthentication() throws IOException, ElasticsearchExceptionCreates a SAML authentication request- Throws:
IOExceptionElasticsearchException- See Also:
-
samlServiceProviderMetadata
public SamlServiceProviderMetadataResponse samlServiceProviderMetadata(SamlServiceProviderMetadataRequest request) throws IOException, ElasticsearchException Generates SAML metadata for the Elastic stack SAML 2.0 Service Provider- Throws:
IOExceptionElasticsearchException- See Also:
-
samlServiceProviderMetadata
public final SamlServiceProviderMetadataResponse samlServiceProviderMetadata(Function<SamlServiceProviderMetadataRequest.Builder, ObjectBuilder<SamlServiceProviderMetadataRequest>> fn) throws IOException, ElasticsearchExceptionGenerates SAML metadata for the Elastic stack SAML 2.0 Service Provider- Parameters:
fn- a function that initializes a builder to create theSamlServiceProviderMetadataRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
suggestUserProfiles
public SuggestUserProfilesResponse suggestUserProfiles(SuggestUserProfilesRequest request) throws IOException, ElasticsearchException Get suggestions for user profiles that match specified search criteria.- Throws:
IOExceptionElasticsearchException- See Also:
-
suggestUserProfiles
public final SuggestUserProfilesResponse suggestUserProfiles(Function<SuggestUserProfilesRequest.Builder, ObjectBuilder<SuggestUserProfilesRequest>> fn) throws IOException, ElasticsearchExceptionGet suggestions for user profiles that match specified search criteria.- Parameters:
fn- a function that initializes a builder to create theSuggestUserProfilesRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
suggestUserProfiles
Get suggestions for user profiles that match specified search criteria.- Throws:
IOExceptionElasticsearchException- See Also:
-
updateApiKey
public UpdateApiKeyResponse updateApiKey(UpdateApiKeyRequest request) throws IOException, ElasticsearchException Updates attributes of an existing API key.- Throws:
IOExceptionElasticsearchException- See Also:
-
updateApiKey
public final UpdateApiKeyResponse updateApiKey(Function<UpdateApiKeyRequest.Builder, ObjectBuilder<UpdateApiKeyRequest>> fn) throws IOException, ElasticsearchExceptionUpdates attributes of an existing API key.- Parameters:
fn- a function that initializes a builder to create theUpdateApiKeyRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
updateUserProfileData
public UpdateUserProfileDataResponse updateUserProfileData(UpdateUserProfileDataRequest request) throws IOException, ElasticsearchException Update application specific data for the user profile of the given unique ID.- Throws:
IOExceptionElasticsearchException- See Also:
-
updateUserProfileData
public final UpdateUserProfileDataResponse updateUserProfileData(Function<UpdateUserProfileDataRequest.Builder, ObjectBuilder<UpdateUserProfileDataRequest>> fn) throws IOException, ElasticsearchExceptionUpdate application specific data for the user profile of the given unique ID.- Parameters:
fn- a function that initializes a builder to create theUpdateUserProfileDataRequest- Throws:
IOExceptionElasticsearchException- See Also:
-