All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.blazebit.query.connector.kandji.api.DeviceSecretsApi Maven / Gradle / Ivy

The newest version!
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
     
Response Details
Status Code Description Response Headers
200 success * Allow -
* Connection -
* Content-Length -
* Content-Security-Policy -
* Date -
* Feature-Policy -
* Referrer-Policy -
* Server -
* Strict-Transport-Security -
* Vary -
* X-Content-Type-Options -
* X-Frame-Options -
* X-XSS-Protection -
*/ 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
Response Details
Status Code Description Response Headers
200 success * Allow -
* Connection -
* Content-Length -
* Content-Security-Policy -
* Date -
* Feature-Policy -
* Referrer-Policy -
* Server -
* Strict-Transport-Security -
* Vary -
* X-Content-Type-Options -
* X-Frame-Options -
* X-XSS-Protection -
*/ public ApiResponse getActivationLockBypassCodeWithHttpInfo(String deviceId) throws ApiException { // Check required parameters if (deviceId == null) { throw new ApiException(400, "Missing the required parameter 'deviceId' when calling getActivationLockBypassCode"); } // Path parameters String localVarPath = "/api/v1/devices/{device_id}/secrets/bypasscode" .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.getActivationLockBypassCode", localVarPath, "GET", new ArrayList<>(), null, new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } /** * 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 GetFilevaultRecoveryKey200Response * @throws ApiException if fails to make API call * @http.response.details
Response Details
Status Code Description Response Headers
200 success * Allow -
* Connection -
* Content-Length -
* Content-Security-Policy -
* Date -
* Feature-Policy -
* Referrer-Policy -
* Server -
* Strict-Transport-Security -
* Vary -
* X-Content-Type-Options -
* X-Frame-Options -
* X-XSS-Protection -
*/ 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
Response Details
Status Code Description Response Headers
200 success * Allow -
* Connection -
* Content-Length -
* Content-Security-Policy -
* Date -
* Feature-Policy -
* Referrer-Policy -
* Server -
* Strict-Transport-Security -
* Vary -
* X-Content-Type-Options -
* X-Frame-Options -
* X-XSS-Protection -
*/ 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
Response Details
Status Code Description Response Headers
200 success * Allow -
* Connection -
* Content-Length -
* Content-Security-Policy -
* Date -
* Feature-Policy -
* Referrer-Policy -
* Server -
* Strict-Transport-Security -
* Vary -
* X-Content-Type-Options -
* X-Frame-Options -
* X-XSS-Protection -
*/ 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
Response Details
Status Code Description Response Headers
200 success * Allow -
* Connection -
* Content-Length -
* Content-Security-Policy -
* Date -
* Feature-Policy -
* Referrer-Policy -
* Server -
* Strict-Transport-Security -
* Vary -
* X-Content-Type-Options -
* X-Frame-Options -
* X-XSS-Protection -
*/ public ApiResponse getRecoveryLockPasswordWithHttpInfo(String deviceId) throws ApiException { // Check required parameters if (deviceId == null) { throw new ApiException(400, "Missing the required parameter 'deviceId' when calling getRecoveryLockPassword"); } // Path parameters String localVarPath = "/api/v1/devices/{device_id}/secrets/recoverypassword" .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.getRecoveryLockPassword", localVarPath, "GET", new ArrayList<>(), null, new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } /** * 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 GetUnlockPin200Response * @throws ApiException if fails to make API call * @http.response.details
Response Details
Status Code Description Response Headers
200 success * Allow -
* Connection -
* Content-Length -
* Content-Security-Policy -
* Date -
* Feature-Policy -
* Referrer-Policy -
* Server -
* Strict-Transport-Security -
* Vary -
* X-Content-Type-Options -
* X-Frame-Options -
* X-XSS-Protection -
*/ 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
Response Details
Status Code Description Response Headers
200 success * Allow -
* Connection -
* Content-Length -
* Content-Security-Policy -
* Date -
* Feature-Policy -
* Referrer-Policy -
* Server -
* Strict-Transport-Security -
* Vary -
* X-Content-Type-Options -
* X-Frame-Options -
* X-XSS-Protection -
*/ public ApiResponse getUnlockPinWithHttpInfo(String deviceId) throws ApiException { // Check required parameters if (deviceId == null) { throw new ApiException(400, "Missing the required parameter 'deviceId' when calling getUnlockPin"); } // Path parameters String localVarPath = "/api/v1/devices/{device_id}/secrets/unlockpin" .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.getUnlockPin", localVarPath, "GET", new ArrayList<>(), null, new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy