Class ElasticsearchSecurityClient
java.lang.Object
co.elastic.clients.base.ApiClient
co.elastic.clients.elasticsearch.security.ElasticsearchSecurityClient
public class ElasticsearchSecurityClient extends ApiClient
Client for the security namespace.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ElasticsearchSecurityClient(Transport transport) -
Method Summary
Modifier and Type Method Description AuthenticateResponseauthenticate()Enables authentication as a user and retrieve information about the authenticated user.ChangePasswordResponsechangePassword(ChangePasswordRequest request)Changes the passwords of users in the native realm and built-in users.ChangePasswordResponsechangePassword(java.util.function.Function<ChangePasswordRequest.Builder,ObjectBuilder<ChangePasswordRequest>> fn)Changes the passwords of users in the native realm and built-in users.ClearApiKeyCacheResponseclearApiKeyCache(ClearApiKeyCacheRequest request)Clear a subset or all entries from the API key cache.ClearApiKeyCacheResponseclearApiKeyCache(java.util.function.Function<ClearApiKeyCacheRequest.Builder,ObjectBuilder<ClearApiKeyCacheRequest>> fn)Clear a subset or all entries from the API key cache.ClearCachedPrivilegesResponseclearCachedPrivileges(ClearCachedPrivilegesRequest request)Evicts application privileges from the native application privileges cache.ClearCachedPrivilegesResponseclearCachedPrivileges(java.util.function.Function<ClearCachedPrivilegesRequest.Builder,ObjectBuilder<ClearCachedPrivilegesRequest>> fn)Evicts application privileges from the native application privileges cache.ClearCachedRealmsResponseclearCachedRealms(ClearCachedRealmsRequest request)Evicts users from the user cache.ClearCachedRealmsResponseclearCachedRealms(java.util.function.Function<ClearCachedRealmsRequest.Builder,ObjectBuilder<ClearCachedRealmsRequest>> fn)Evicts users from the user cache.ClearCachedRolesResponseclearCachedRoles(ClearCachedRolesRequest request)Evicts roles from the native role cache.ClearCachedRolesResponseclearCachedRoles(java.util.function.Function<ClearCachedRolesRequest.Builder,ObjectBuilder<ClearCachedRolesRequest>> fn)Evicts roles from the native role cache.ClearCachedServiceTokensResponseclearCachedServiceTokens(ClearCachedServiceTokensRequest request)Evicts tokens from the service account token caches.ClearCachedServiceTokensResponseclearCachedServiceTokens(java.util.function.Function<ClearCachedServiceTokensRequest.Builder,ObjectBuilder<ClearCachedServiceTokensRequest>> fn)Evicts tokens from the service account token caches.CreateApiKeyResponsecreateApiKey(CreateApiKeyRequest request)Creates an API key for access without requiring basic authentication.CreateApiKeyResponsecreateApiKey(java.util.function.Function<CreateApiKeyRequest.Builder,ObjectBuilder<CreateApiKeyRequest>> fn)Creates an API key for access without requiring basic authentication.CreateServiceTokenResponsecreateServiceToken(CreateServiceTokenRequest request)Creates a service account token for access without requiring basic authentication.CreateServiceTokenResponsecreateServiceToken(java.util.function.Function<CreateServiceTokenRequest.Builder,ObjectBuilder<CreateServiceTokenRequest>> fn)Creates a service account token for access without requiring basic authentication.DeletePrivilegesResponsedeletePrivileges(DeletePrivilegesRequest request)Removes application privileges.DeletePrivilegesResponsedeletePrivileges(java.util.function.Function<DeletePrivilegesRequest.Builder,ObjectBuilder<DeletePrivilegesRequest>> fn)Removes application privileges.DeleteRoleResponsedeleteRole(DeleteRoleRequest request)Removes roles in the native realm.DeleteRoleResponsedeleteRole(java.util.function.Function<DeleteRoleRequest.Builder,ObjectBuilder<DeleteRoleRequest>> fn)Removes roles in the native realm.DeleteRoleMappingResponsedeleteRoleMapping(DeleteRoleMappingRequest request)Removes role mappings.DeleteRoleMappingResponsedeleteRoleMapping(java.util.function.Function<DeleteRoleMappingRequest.Builder,ObjectBuilder<DeleteRoleMappingRequest>> fn)Removes role mappings.DeleteServiceTokenResponsedeleteServiceToken(DeleteServiceTokenRequest request)Deletes a service account token.DeleteServiceTokenResponsedeleteServiceToken(java.util.function.Function<DeleteServiceTokenRequest.Builder,ObjectBuilder<DeleteServiceTokenRequest>> fn)Deletes a service account token.DeleteUserResponsedeleteUser(DeleteUserRequest request)Deletes users from the native realm.DeleteUserResponsedeleteUser(java.util.function.Function<DeleteUserRequest.Builder,ObjectBuilder<DeleteUserRequest>> fn)Deletes users from the native realm.DisableUserResponsedisableUser(DisableUserRequest request)Disables users in the native realm.DisableUserResponsedisableUser(java.util.function.Function<DisableUserRequest.Builder,ObjectBuilder<DisableUserRequest>> fn)Disables users in the native realm.EnableUserResponseenableUser(EnableUserRequest request)Enables users in the native realm.EnableUserResponseenableUser(java.util.function.Function<EnableUserRequest.Builder,ObjectBuilder<EnableUserRequest>> fn)Enables users in the native realm.GetApiKeyResponsegetApiKey(GetApiKeyRequest request)Retrieves information for one or more API keys.GetApiKeyResponsegetApiKey(java.util.function.Function<GetApiKeyRequest.Builder,ObjectBuilder<GetApiKeyRequest>> fn)Retrieves information for one or more API keys.GetBuiltinPrivilegesResponsegetBuiltinPrivileges()Retrieves the list of cluster privileges and index privileges that are available in this version of Elasticsearch.GetPrivilegesResponsegetPrivileges(GetPrivilegesRequest request)Retrieves application privileges.GetPrivilegesResponsegetPrivileges(java.util.function.Function<GetPrivilegesRequest.Builder,ObjectBuilder<GetPrivilegesRequest>> fn)Retrieves application privileges.GetRoleResponsegetRole(GetRoleRequest request)Retrieves roles in the native realm.GetRoleResponsegetRole(java.util.function.Function<GetRoleRequest.Builder,ObjectBuilder<GetRoleRequest>> fn)Retrieves roles in the native realm.GetRoleMappingResponsegetRoleMapping(GetRoleMappingRequest request)Retrieves role mappings.GetRoleMappingResponsegetRoleMapping(java.util.function.Function<GetRoleMappingRequest.Builder,ObjectBuilder<GetRoleMappingRequest>> fn)Retrieves role mappings.GetServiceAccountsResponsegetServiceAccounts(GetServiceAccountsRequest request)Retrieves information about service accounts.GetServiceAccountsResponsegetServiceAccounts(java.util.function.Function<GetServiceAccountsRequest.Builder,ObjectBuilder<GetServiceAccountsRequest>> fn)Retrieves information about service accounts.GetServiceCredentialsResponsegetServiceCredentials(GetServiceCredentialsRequest request)Retrieves information of all service credentials for a service account.GetServiceCredentialsResponsegetServiceCredentials(java.util.function.Function<GetServiceCredentialsRequest.Builder,ObjectBuilder<GetServiceCredentialsRequest>> fn)Retrieves information of all service credentials for a service account.GetTokenResponsegetToken(GetTokenRequest request)Creates a bearer token for access without requiring basic authentication.GetTokenResponsegetToken(java.util.function.Function<GetTokenRequest.Builder,ObjectBuilder<GetTokenRequest>> fn)Creates a bearer token for access without requiring basic authentication.GetUserResponsegetUser(GetUserRequest request)Retrieves information about users in the native realm and built-in users.GetUserResponsegetUser(java.util.function.Function<GetUserRequest.Builder,ObjectBuilder<GetUserRequest>> fn)Retrieves information about users in the native realm and built-in users.GetUserPrivilegesResponsegetUserPrivileges(GetUserPrivilegesRequest request)Retrieves security privileges for the logged in user.GetUserPrivilegesResponsegetUserPrivileges(java.util.function.Function<GetUserPrivilegesRequest.Builder,ObjectBuilder<GetUserPrivilegesRequest>> fn)Retrieves security privileges for the logged in user.GrantApiKeyResponsegrantApiKey(GrantApiKeyRequest request)Creates an API key on behalf of another user.GrantApiKeyResponsegrantApiKey(java.util.function.Function<GrantApiKeyRequest.Builder,ObjectBuilder<GrantApiKeyRequest>> fn)Creates an API key on behalf of another user.HasPrivilegesResponsehasPrivileges(HasPrivilegesRequest request)Determines whether the specified user has a specified list of privileges.HasPrivilegesResponsehasPrivileges(java.util.function.Function<HasPrivilegesRequest.Builder,ObjectBuilder<HasPrivilegesRequest>> fn)Determines whether the specified user has a specified list of privileges.InvalidateApiKeyResponseinvalidateApiKey(InvalidateApiKeyRequest request)Invalidates one or more API keys.InvalidateApiKeyResponseinvalidateApiKey(java.util.function.Function<InvalidateApiKeyRequest.Builder,ObjectBuilder<InvalidateApiKeyRequest>> fn)Invalidates one or more API keys.InvalidateTokenResponseinvalidateToken(InvalidateTokenRequest request)Invalidates one or more access tokens or refresh tokens.InvalidateTokenResponseinvalidateToken(java.util.function.Function<InvalidateTokenRequest.Builder,ObjectBuilder<InvalidateTokenRequest>> fn)Invalidates one or more access tokens or refresh tokens.PutPrivilegesResponseputPrivileges(PutPrivilegesRequest request)Adds or updates application privileges.PutPrivilegesResponseputPrivileges(java.util.function.Function<PutPrivilegesRequest.Builder,ObjectBuilder<PutPrivilegesRequest>> fn)Adds or updates application privileges.PutRoleResponseputRole(PutRoleRequest request)Adds and updates roles in the native realm.PutRoleResponseputRole(java.util.function.Function<PutRoleRequest.Builder,ObjectBuilder<PutRoleRequest>> fn)Adds and updates roles in the native realm.PutRoleMappingResponseputRoleMapping(PutRoleMappingRequest request)Creates and updates role mappings.PutRoleMappingResponseputRoleMapping(java.util.function.Function<PutRoleMappingRequest.Builder,ObjectBuilder<PutRoleMappingRequest>> fn)Creates and updates role mappings.PutUserResponseputUser(PutUserRequest request)Adds and updates users in the native realm.PutUserResponseputUser(java.util.function.Function<PutUserRequest.Builder,ObjectBuilder<PutUserRequest>> fn)Adds and updates users in the native realm.Methods inherited from class co.elastic.clients.base.ApiClient
_transport, getDeserializerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ElasticsearchSecurityClient
-
-
Method Details
-
authenticate
Enables authentication as a user and retrieve information about the authenticated user.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
changePassword
public ChangePasswordResponse changePassword(ChangePasswordRequest request) throws java.io.IOExceptionChanges the passwords of users in the native realm and built-in users.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
changePassword
public final ChangePasswordResponse changePassword(java.util.function.Function<ChangePasswordRequest.Builder,ObjectBuilder<ChangePasswordRequest>> fn) throws java.io.IOExceptionChanges the passwords of users in the native realm and built-in users.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
clearApiKeyCache
public ClearApiKeyCacheResponse clearApiKeyCache(ClearApiKeyCacheRequest request) throws java.io.IOExceptionClear a subset or all entries from the API key cache.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
clearApiKeyCache
public final ClearApiKeyCacheResponse clearApiKeyCache(java.util.function.Function<ClearApiKeyCacheRequest.Builder,ObjectBuilder<ClearApiKeyCacheRequest>> fn) throws java.io.IOExceptionClear a subset or all entries from the API key cache.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
clearCachedPrivileges
public ClearCachedPrivilegesResponse clearCachedPrivileges(ClearCachedPrivilegesRequest request) throws java.io.IOExceptionEvicts application privileges from the native application privileges cache.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
clearCachedPrivileges
public final ClearCachedPrivilegesResponse clearCachedPrivileges(java.util.function.Function<ClearCachedPrivilegesRequest.Builder,ObjectBuilder<ClearCachedPrivilegesRequest>> fn) throws java.io.IOExceptionEvicts application privileges from the native application privileges cache.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
clearCachedRealms
public ClearCachedRealmsResponse clearCachedRealms(ClearCachedRealmsRequest request) throws java.io.IOExceptionEvicts users from the user cache. Can completely clear the cache or evict specific users.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
clearCachedRealms
public final ClearCachedRealmsResponse clearCachedRealms(java.util.function.Function<ClearCachedRealmsRequest.Builder,ObjectBuilder<ClearCachedRealmsRequest>> fn) throws java.io.IOExceptionEvicts users from the user cache. Can completely clear the cache or evict specific users.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
clearCachedRoles
public ClearCachedRolesResponse clearCachedRoles(ClearCachedRolesRequest request) throws java.io.IOExceptionEvicts roles from the native role cache.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
clearCachedRoles
public final ClearCachedRolesResponse clearCachedRoles(java.util.function.Function<ClearCachedRolesRequest.Builder,ObjectBuilder<ClearCachedRolesRequest>> fn) throws java.io.IOExceptionEvicts roles from the native role cache.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
clearCachedServiceTokens
public ClearCachedServiceTokensResponse clearCachedServiceTokens(ClearCachedServiceTokensRequest request) throws java.io.IOExceptionEvicts tokens from the service account token caches.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
clearCachedServiceTokens
public final ClearCachedServiceTokensResponse clearCachedServiceTokens(java.util.function.Function<ClearCachedServiceTokensRequest.Builder,ObjectBuilder<ClearCachedServiceTokensRequest>> fn) throws java.io.IOExceptionEvicts tokens from the service account token caches.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
createApiKey
Creates an API key for access without requiring basic authentication.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
createApiKey
public final CreateApiKeyResponse createApiKey(java.util.function.Function<CreateApiKeyRequest.Builder,ObjectBuilder<CreateApiKeyRequest>> fn) throws java.io.IOExceptionCreates an API key for access without requiring basic authentication.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
createServiceToken
public CreateServiceTokenResponse createServiceToken(CreateServiceTokenRequest request) throws java.io.IOExceptionCreates a service account token for access without requiring basic authentication.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
createServiceToken
public final CreateServiceTokenResponse createServiceToken(java.util.function.Function<CreateServiceTokenRequest.Builder,ObjectBuilder<CreateServiceTokenRequest>> fn) throws java.io.IOExceptionCreates a service account token for access without requiring basic authentication.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
deletePrivileges
public DeletePrivilegesResponse deletePrivileges(DeletePrivilegesRequest request) throws java.io.IOExceptionRemoves application privileges.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
deletePrivileges
public final DeletePrivilegesResponse deletePrivileges(java.util.function.Function<DeletePrivilegesRequest.Builder,ObjectBuilder<DeletePrivilegesRequest>> fn) throws java.io.IOExceptionRemoves application privileges.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
deleteRole
Removes roles in the native realm.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
deleteRole
public final DeleteRoleResponse deleteRole(java.util.function.Function<DeleteRoleRequest.Builder,ObjectBuilder<DeleteRoleRequest>> fn) throws java.io.IOExceptionRemoves roles in the native realm.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
deleteRoleMapping
public DeleteRoleMappingResponse deleteRoleMapping(DeleteRoleMappingRequest request) throws java.io.IOExceptionRemoves role mappings.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
deleteRoleMapping
public final DeleteRoleMappingResponse deleteRoleMapping(java.util.function.Function<DeleteRoleMappingRequest.Builder,ObjectBuilder<DeleteRoleMappingRequest>> fn) throws java.io.IOExceptionRemoves role mappings.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
deleteServiceToken
public DeleteServiceTokenResponse deleteServiceToken(DeleteServiceTokenRequest request) throws java.io.IOExceptionDeletes a service account token.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
deleteServiceToken
public final DeleteServiceTokenResponse deleteServiceToken(java.util.function.Function<DeleteServiceTokenRequest.Builder,ObjectBuilder<DeleteServiceTokenRequest>> fn) throws java.io.IOExceptionDeletes a service account token.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
deleteUser
Deletes users from the native realm.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
deleteUser
public final DeleteUserResponse deleteUser(java.util.function.Function<DeleteUserRequest.Builder,ObjectBuilder<DeleteUserRequest>> fn) throws java.io.IOExceptionDeletes users from the native realm.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
disableUser
Disables users in the native realm.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
disableUser
public final DisableUserResponse disableUser(java.util.function.Function<DisableUserRequest.Builder,ObjectBuilder<DisableUserRequest>> fn) throws java.io.IOExceptionDisables users in the native realm.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
enableUser
Enables users in the native realm.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
enableUser
public final EnableUserResponse enableUser(java.util.function.Function<EnableUserRequest.Builder,ObjectBuilder<EnableUserRequest>> fn) throws java.io.IOExceptionEnables users in the native realm.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
getApiKey
Retrieves information for one or more API keys.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
getApiKey
public final GetApiKeyResponse getApiKey(java.util.function.Function<GetApiKeyRequest.Builder,ObjectBuilder<GetApiKeyRequest>> fn) throws java.io.IOExceptionRetrieves information for one or more API keys.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
getBuiltinPrivileges
Retrieves the list of cluster privileges and index privileges that are available in this version of Elasticsearch.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
getPrivileges
public GetPrivilegesResponse getPrivileges(GetPrivilegesRequest request) throws java.io.IOExceptionRetrieves application privileges.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
getPrivileges
public final GetPrivilegesResponse getPrivileges(java.util.function.Function<GetPrivilegesRequest.Builder,ObjectBuilder<GetPrivilegesRequest>> fn) throws java.io.IOExceptionRetrieves application privileges.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
getRole
Retrieves roles in the native realm.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
getRole
public final GetRoleResponse getRole(java.util.function.Function<GetRoleRequest.Builder,ObjectBuilder<GetRoleRequest>> fn) throws java.io.IOExceptionRetrieves roles in the native realm.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
getRoleMapping
public GetRoleMappingResponse getRoleMapping(GetRoleMappingRequest request) throws java.io.IOExceptionRetrieves role mappings.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
getRoleMapping
public final GetRoleMappingResponse getRoleMapping(java.util.function.Function<GetRoleMappingRequest.Builder,ObjectBuilder<GetRoleMappingRequest>> fn) throws java.io.IOExceptionRetrieves role mappings.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
getServiceAccounts
public GetServiceAccountsResponse getServiceAccounts(GetServiceAccountsRequest request) throws java.io.IOExceptionRetrieves information about service accounts.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
getServiceAccounts
public final GetServiceAccountsResponse getServiceAccounts(java.util.function.Function<GetServiceAccountsRequest.Builder,ObjectBuilder<GetServiceAccountsRequest>> fn) throws java.io.IOExceptionRetrieves information about service accounts.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
getServiceCredentials
public GetServiceCredentialsResponse getServiceCredentials(GetServiceCredentialsRequest request) throws java.io.IOExceptionRetrieves information of all service credentials for a service account.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
getServiceCredentials
public final GetServiceCredentialsResponse getServiceCredentials(java.util.function.Function<GetServiceCredentialsRequest.Builder,ObjectBuilder<GetServiceCredentialsRequest>> fn) throws java.io.IOExceptionRetrieves information of all service credentials for a service account.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
getToken
Creates a bearer token for access without requiring basic authentication.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
getToken
public final GetTokenResponse getToken(java.util.function.Function<GetTokenRequest.Builder,ObjectBuilder<GetTokenRequest>> fn) throws java.io.IOExceptionCreates a bearer token for access without requiring basic authentication.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
getUser
Retrieves information about users in the native realm and built-in users.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
getUser
public final GetUserResponse getUser(java.util.function.Function<GetUserRequest.Builder,ObjectBuilder<GetUserRequest>> fn) throws java.io.IOExceptionRetrieves information about users in the native realm and built-in users.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
getUserPrivileges
public GetUserPrivilegesResponse getUserPrivileges(GetUserPrivilegesRequest request) throws java.io.IOExceptionRetrieves security privileges for the logged in user.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
getUserPrivileges
public final GetUserPrivilegesResponse getUserPrivileges(java.util.function.Function<GetUserPrivilegesRequest.Builder,ObjectBuilder<GetUserPrivilegesRequest>> fn) throws java.io.IOExceptionRetrieves security privileges for the logged in user.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
grantApiKey
Creates an API key on behalf of another user.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
grantApiKey
public final GrantApiKeyResponse grantApiKey(java.util.function.Function<GrantApiKeyRequest.Builder,ObjectBuilder<GrantApiKeyRequest>> fn) throws java.io.IOExceptionCreates an API key on behalf of another user.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
hasPrivileges
public HasPrivilegesResponse hasPrivileges(HasPrivilegesRequest request) throws java.io.IOExceptionDetermines whether the specified user has a specified list of privileges.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
hasPrivileges
public final HasPrivilegesResponse hasPrivileges(java.util.function.Function<HasPrivilegesRequest.Builder,ObjectBuilder<HasPrivilegesRequest>> fn) throws java.io.IOExceptionDetermines whether the specified user has a specified list of privileges.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
invalidateApiKey
public InvalidateApiKeyResponse invalidateApiKey(InvalidateApiKeyRequest request) throws java.io.IOExceptionInvalidates one or more API keys.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
invalidateApiKey
public final InvalidateApiKeyResponse invalidateApiKey(java.util.function.Function<InvalidateApiKeyRequest.Builder,ObjectBuilder<InvalidateApiKeyRequest>> fn) throws java.io.IOExceptionInvalidates one or more API keys.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
invalidateToken
public InvalidateTokenResponse invalidateToken(InvalidateTokenRequest request) throws java.io.IOExceptionInvalidates one or more access tokens or refresh tokens.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
invalidateToken
public final InvalidateTokenResponse invalidateToken(java.util.function.Function<InvalidateTokenRequest.Builder,ObjectBuilder<InvalidateTokenRequest>> fn) throws java.io.IOExceptionInvalidates one or more access tokens or refresh tokens.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
putPrivileges
public PutPrivilegesResponse putPrivileges(PutPrivilegesRequest request) throws java.io.IOExceptionAdds or updates application privileges.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
putPrivileges
public final PutPrivilegesResponse putPrivileges(java.util.function.Function<PutPrivilegesRequest.Builder,ObjectBuilder<PutPrivilegesRequest>> fn) throws java.io.IOExceptionAdds or updates application privileges.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
putRole
Adds and updates roles in the native realm.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
putRole
public final PutRoleResponse putRole(java.util.function.Function<PutRoleRequest.Builder,ObjectBuilder<PutRoleRequest>> fn) throws java.io.IOExceptionAdds and updates roles in the native realm.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
putRoleMapping
public PutRoleMappingResponse putRoleMapping(PutRoleMappingRequest request) throws java.io.IOExceptionCreates and updates role mappings.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
putRoleMapping
public final PutRoleMappingResponse putRoleMapping(java.util.function.Function<PutRoleMappingRequest.Builder,ObjectBuilder<PutRoleMappingRequest>> fn) throws java.io.IOExceptionCreates and updates role mappings.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
putUser
Adds and updates users in the native realm. These users are commonly referred to as native users.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
putUser
public final PutUserResponse putUser(java.util.function.Function<PutUserRequest.Builder,ObjectBuilder<PutUserRequest>> fn) throws java.io.IOExceptionAdds and updates users in the native realm. These users are commonly referred to as native users.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-