Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
package com.blazebit.query.connector.kandji.api;
import com.blazebit.query.connector.kandji.invoker.ApiException;
import com.blazebit.query.connector.kandji.invoker.ApiClient;
import com.blazebit.query.connector.kandji.invoker.ApiResponse;
import com.blazebit.query.connector.kandji.invoker.Configuration;
import com.blazebit.query.connector.kandji.invoker.Pair;
import jakarta.ws.rs.core.GenericType;
import com.blazebit.query.connector.kandji.model.GetActivationLockBypassCode200Response;
import com.blazebit.query.connector.kandji.model.GetFilevaultRecoveryKey200Response;
import com.blazebit.query.connector.kandji.model.GetRecoveryLockPassword200Response;
import com.blazebit.query.connector.kandji.model.GetUnlockPin200Response;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-30T07:19:31.168100307Z[Etc/UTC]", comments = "Generator version: 7.10.0")
public class DeviceSecretsApi {
private ApiClient apiClient;
public DeviceSecretsApi() {
this(Configuration.getDefaultApiClient());
}
public DeviceSecretsApi(ApiClient apiClient) {
this.apiClient = apiClient;
}
/**
* Get the API client
*
* @return API client
*/
public ApiClient getApiClient() {
return apiClient;
}
/**
* Set the API client
*
* @param apiClient an instance of API client
*/
public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient;
}
/**
* Get Activation Lock Bypass Code
* This request allows you to retrieve the Activation Lock Bypass code. user_based_albc is the user-based Activation Lock bypass code for when Activation Lock is enabled using an personal Apple ID and Find My. device_based_albc is the device-based Activation Lock bypass code for when Activation Lock is enabled by the MDM server. ### Request Parameters `device_id` (path parameter): The unique identifier of the device.
* @param deviceId (required)
* @return GetActivationLockBypassCode200Response
* @throws ApiException if fails to make API call
* @http.response.details
*/
public GetActivationLockBypassCode200Response getActivationLockBypassCode(String deviceId) throws ApiException {
return getActivationLockBypassCodeWithHttpInfo(deviceId).getData();
}
/**
* Get Activation Lock Bypass Code
* This request allows you to retrieve the Activation Lock Bypass code. user_based_albc is the user-based Activation Lock bypass code for when Activation Lock is enabled using an personal Apple ID and Find My. device_based_albc is the device-based Activation Lock bypass code for when Activation Lock is enabled by the MDM server. ### Request Parameters `device_id` (path parameter): The unique identifier of the device.
* @param deviceId (required)
* @return ApiResponse<GetActivationLockBypassCode200Response>
* @throws ApiException if fails to make API call
* @http.response.details
*/
public GetFilevaultRecoveryKey200Response getFilevaultRecoveryKey(String deviceId) throws ApiException {
return getFilevaultRecoveryKeyWithHttpInfo(deviceId).getData();
}
/**
* Get FileVault Recovery Key
* This request allows you to retrieve the FileVault Recovery key for a macOS device. ### Request Parameters `device_id` (path parameter): The unique identifier of the device.
* @param deviceId (required)
* @return ApiResponse<GetFilevaultRecoveryKey200Response>
* @throws ApiException if fails to make API call
* @http.response.details
*/
public ApiResponse getFilevaultRecoveryKeyWithHttpInfo(String deviceId) throws ApiException {
// Check required parameters
if (deviceId == null) {
throw new ApiException(400, "Missing the required parameter 'deviceId' when calling getFilevaultRecoveryKey");
}
// Path parameters
String localVarPath = "/api/v1/devices/{device_id}/secrets/filevaultkey"
.replaceAll("\\{device_id}", apiClient.escapeString(deviceId.toString()));
String localVarAccept = apiClient.selectHeaderAccept("application/json");
String localVarContentType = apiClient.selectHeaderContentType();
String[] localVarAuthNames = new String[] {"bearerAuth"};
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPI("DeviceSecretsApi.getFilevaultRecoveryKey", localVarPath, "GET", new ArrayList<>(), null,
new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType,
localVarAuthNames, localVarReturnType, false);
}
/**
* Get Recovery Lock Password
* This request returns the Recovery Lock password for a Mac with an Apple Silicon processor and the legacy EFI firmware password for a Mac with an Intel processor. For more details on setting and managing Recovery passwords, see this [Kandji support article](https://support.kandji.io/support/solutions/articles/72000560472-configure-the-recovery-password-library-item). ### Request Parameters `device_id` (path parameter): The unique identifier of the device.
* @param deviceId (required)
* @return GetRecoveryLockPassword200Response
* @throws ApiException if fails to make API call
* @http.response.details
*/
public GetRecoveryLockPassword200Response getRecoveryLockPassword(String deviceId) throws ApiException {
return getRecoveryLockPasswordWithHttpInfo(deviceId).getData();
}
/**
* Get Recovery Lock Password
* This request returns the Recovery Lock password for a Mac with an Apple Silicon processor and the legacy EFI firmware password for a Mac with an Intel processor. For more details on setting and managing Recovery passwords, see this [Kandji support article](https://support.kandji.io/support/solutions/articles/72000560472-configure-the-recovery-password-library-item). ### Request Parameters `device_id` (path parameter): The unique identifier of the device.
* @param deviceId (required)
* @return ApiResponse<GetRecoveryLockPassword200Response>
* @throws ApiException if fails to make API call
* @http.response.details
*/
public GetUnlockPin200Response getUnlockPin(String deviceId) throws ApiException {
return getUnlockPinWithHttpInfo(deviceId).getData();
}
/**
* Get Unlock Pin
* This request allows you to retrieve the device unlock pin for a macOS device. ### Request Parameters `device_id` (path parameter): The unique identifier of the device.
* @param deviceId (required)
* @return ApiResponse<GetUnlockPin200Response>
* @throws ApiException if fails to make API call
* @http.response.details