/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (https://www.swig.org).
 * Version 4.3.0
 *
 * Do not make changes to this file unless you know what you are doing - modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */

package com.chilkatsoft;

public class CkSecrets {
  private transient long swigCPtr;
  protected transient boolean swigCMemOwn;

  protected CkSecrets(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  protected static long getCPtr(CkSecrets obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected static long swigRelease(CkSecrets obj) {
    long ptr = 0;
    if (obj != null) {
      if (!obj.swigCMemOwn)
        throw new RuntimeException("Cannot release ownership as memory is not owned");
      ptr = obj.swigCPtr;
      obj.swigCMemOwn = false;
      obj.delete();
    }
    return ptr;
  }

  @SuppressWarnings({"deprecation", "removal"})
  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        chilkatJNI.delete_CkSecrets(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public CkSecrets() {
    this(chilkatJNI.new_CkSecrets(), true);
  }

  public void LastErrorXml(CkString str) {
    chilkatJNI.CkSecrets_LastErrorXml(swigCPtr, this, CkString.getCPtr(str), str);
  }

  public void LastErrorHtml(CkString str) {
    chilkatJNI.CkSecrets_LastErrorHtml(swigCPtr, this, CkString.getCPtr(str), str);
  }

  public void LastErrorText(CkString str) {
    chilkatJNI.CkSecrets_LastErrorText(swigCPtr, this, CkString.getCPtr(str), str);
  }

  public void put_EventCallbackObject(CkBaseProgress progress) {
    chilkatJNI.CkSecrets_put_EventCallbackObject(swigCPtr, this, CkBaseProgress.getCPtr(progress), progress);
  }

  public boolean get_AutoSplit() {
    return chilkatJNI.CkSecrets_get_AutoSplit(swigCPtr, this);
  }

  public void put_AutoSplit(boolean newVal) {
    chilkatJNI.CkSecrets_put_AutoSplit(swigCPtr, this, newVal);
  }

  public boolean get_Compression() {
    return chilkatJNI.CkSecrets_get_Compression(swigCPtr, this);
  }

  public void put_Compression(boolean newVal) {
    chilkatJNI.CkSecrets_put_Compression(swigCPtr, this, newVal);
  }

  public void get_DebugLogFilePath(CkString str) {
    chilkatJNI.CkSecrets_get_DebugLogFilePath(swigCPtr, this, CkString.getCPtr(str), str);
  }

  public String debugLogFilePath() {
    return chilkatJNI.CkSecrets_debugLogFilePath(swigCPtr, this);
  }

  public void put_DebugLogFilePath(String newVal) {
    chilkatJNI.CkSecrets_put_DebugLogFilePath(swigCPtr, this, newVal);
  }

  public void get_LastErrorHtml(CkString str) {
    chilkatJNI.CkSecrets_get_LastErrorHtml(swigCPtr, this, CkString.getCPtr(str), str);
  }

  public String lastErrorHtml() {
    return chilkatJNI.CkSecrets_lastErrorHtml(swigCPtr, this);
  }

  public void get_LastErrorText(CkString str) {
    chilkatJNI.CkSecrets_get_LastErrorText(swigCPtr, this, CkString.getCPtr(str), str);
  }

  public String lastErrorText() {
    return chilkatJNI.CkSecrets_lastErrorText(swigCPtr, this);
  }

  public void get_LastErrorXml(CkString str) {
    chilkatJNI.CkSecrets_get_LastErrorXml(swigCPtr, this, CkString.getCPtr(str), str);
  }

  public String lastErrorXml() {
    return chilkatJNI.CkSecrets_lastErrorXml(swigCPtr, this);
  }

  public boolean get_LastMethodSuccess() {
    return chilkatJNI.CkSecrets_get_LastMethodSuccess(swigCPtr, this);
  }

  public void put_LastMethodSuccess(boolean newVal) {
    chilkatJNI.CkSecrets_put_LastMethodSuccess(swigCPtr, this, newVal);
  }

  public void get_Location(CkString str) {
    chilkatJNI.CkSecrets_get_Location(swigCPtr, this, CkString.getCPtr(str), str);
  }

  public String location() {
    return chilkatJNI.CkSecrets_location(swigCPtr, this);
  }

  public void put_Location(String newVal) {
    chilkatJNI.CkSecrets_put_Location(swigCPtr, this, newVal);
  }

  public void get_UncommonOptions(CkString str) {
    chilkatJNI.CkSecrets_get_UncommonOptions(swigCPtr, this, CkString.getCPtr(str), str);
  }

  public String uncommonOptions() {
    return chilkatJNI.CkSecrets_uncommonOptions(swigCPtr, this);
  }

  public void put_UncommonOptions(String newVal) {
    chilkatJNI.CkSecrets_put_UncommonOptions(swigCPtr, this, newVal);
  }

  public boolean get_VerboseLogging() {
    return chilkatJNI.CkSecrets_get_VerboseLogging(swigCPtr, this);
  }

  public void put_VerboseLogging(boolean newVal) {
    chilkatJNI.CkSecrets_put_VerboseLogging(swigCPtr, this, newVal);
  }

  public void get_Version(CkString str) {
    chilkatJNI.CkSecrets_get_Version(swigCPtr, this, CkString.getCPtr(str), str);
  }

  public String version() {
    return chilkatJNI.CkSecrets_version(swigCPtr, this);
  }

  public boolean DeleteSecret(CkJsonObject jsonId) {
    return chilkatJNI.CkSecrets_DeleteSecret(swigCPtr, this, CkJsonObject.getCPtr(jsonId), jsonId);
  }

  public CkTask DeleteSecretAsync(CkJsonObject jsonId) {
    long cPtr = chilkatJNI.CkSecrets_DeleteSecretAsync(swigCPtr, this, CkJsonObject.getCPtr(jsonId), jsonId);
    return (cPtr == 0) ? null : new CkTask(cPtr, true);
  }

  public boolean GetSecretBd(CkJsonObject jsonId, CkBinData bd) {
    return chilkatJNI.CkSecrets_GetSecretBd(swigCPtr, this, CkJsonObject.getCPtr(jsonId), jsonId, CkBinData.getCPtr(bd), bd);
  }

  public CkTask GetSecretBdAsync(CkJsonObject jsonId, CkBinData bd) {
    long cPtr = chilkatJNI.CkSecrets_GetSecretBdAsync(swigCPtr, this, CkJsonObject.getCPtr(jsonId), jsonId, CkBinData.getCPtr(bd), bd);
    return (cPtr == 0) ? null : new CkTask(cPtr, true);
  }

  public boolean GetSecretJson(CkJsonObject jsonId, CkJsonObject jsonOut) {
    return chilkatJNI.CkSecrets_GetSecretJson(swigCPtr, this, CkJsonObject.getCPtr(jsonId), jsonId, CkJsonObject.getCPtr(jsonOut), jsonOut);
  }

  public CkTask GetSecretJsonAsync(CkJsonObject jsonId, CkJsonObject jsonOut) {
    long cPtr = chilkatJNI.CkSecrets_GetSecretJsonAsync(swigCPtr, this, CkJsonObject.getCPtr(jsonId), jsonId, CkJsonObject.getCPtr(jsonOut), jsonOut);
    return (cPtr == 0) ? null : new CkTask(cPtr, true);
  }

  public boolean GetSecretSb(CkJsonObject jsonId, CkStringBuilder sb) {
    return chilkatJNI.CkSecrets_GetSecretSb(swigCPtr, this, CkJsonObject.getCPtr(jsonId), jsonId, CkStringBuilder.getCPtr(sb), sb);
  }

  public CkTask GetSecretSbAsync(CkJsonObject jsonId, CkStringBuilder sb) {
    long cPtr = chilkatJNI.CkSecrets_GetSecretSbAsync(swigCPtr, this, CkJsonObject.getCPtr(jsonId), jsonId, CkStringBuilder.getCPtr(sb), sb);
    return (cPtr == 0) ? null : new CkTask(cPtr, true);
  }

  public boolean GetSecretStr(CkJsonObject jsonId, CkString outStr) {
    return chilkatJNI.CkSecrets_GetSecretStr(swigCPtr, this, CkJsonObject.getCPtr(jsonId), jsonId, CkString.getCPtr(outStr), outStr);
  }

  public String getSecretStr(CkJsonObject jsonId) {
    return chilkatJNI.CkSecrets_getSecretStr(swigCPtr, this, CkJsonObject.getCPtr(jsonId), jsonId);
  }

  public String secretStr(CkJsonObject jsonId) {
    return chilkatJNI.CkSecrets_secretStr(swigCPtr, this, CkJsonObject.getCPtr(jsonId), jsonId);
  }

  public CkTask GetSecretStrAsync(CkJsonObject jsonId) {
    long cPtr = chilkatJNI.CkSecrets_GetSecretStrAsync(swigCPtr, this, CkJsonObject.getCPtr(jsonId), jsonId);
    return (cPtr == 0) ? null : new CkTask(cPtr, true);
  }

  public boolean ListSecrets(CkJsonObject json, CkJsonObject jsonOut) {
    return chilkatJNI.CkSecrets_ListSecrets(swigCPtr, this, CkJsonObject.getCPtr(json), json, CkJsonObject.getCPtr(jsonOut), jsonOut);
  }

  public CkTask ListSecretsAsync(CkJsonObject json, CkJsonObject jsonOut) {
    long cPtr = chilkatJNI.CkSecrets_ListSecretsAsync(swigCPtr, this, CkJsonObject.getCPtr(json), json, CkJsonObject.getCPtr(jsonOut), jsonOut);
    return (cPtr == 0) ? null : new CkTask(cPtr, true);
  }

  public boolean SetBootstrapSecret(CkJsonObject jsonId, CkSecrets secretContent) {
    return chilkatJNI.CkSecrets_SetBootstrapSecret(swigCPtr, this, CkJsonObject.getCPtr(jsonId), jsonId, CkSecrets.getCPtr(secretContent), secretContent);
  }

  public boolean UpdateSecretBd(CkJsonObject jsonId, CkBinData secret) {
    return chilkatJNI.CkSecrets_UpdateSecretBd(swigCPtr, this, CkJsonObject.getCPtr(jsonId), jsonId, CkBinData.getCPtr(secret), secret);
  }

  public CkTask UpdateSecretBdAsync(CkJsonObject jsonId, CkBinData secret) {
    long cPtr = chilkatJNI.CkSecrets_UpdateSecretBdAsync(swigCPtr, this, CkJsonObject.getCPtr(jsonId), jsonId, CkBinData.getCPtr(secret), secret);
    return (cPtr == 0) ? null : new CkTask(cPtr, true);
  }

  public boolean UpdateSecretJson(CkJsonObject jsonId, CkJsonObject secret) {
    return chilkatJNI.CkSecrets_UpdateSecretJson(swigCPtr, this, CkJsonObject.getCPtr(jsonId), jsonId, CkJsonObject.getCPtr(secret), secret);
  }

  public CkTask UpdateSecretJsonAsync(CkJsonObject jsonId, CkJsonObject secret) {
    long cPtr = chilkatJNI.CkSecrets_UpdateSecretJsonAsync(swigCPtr, this, CkJsonObject.getCPtr(jsonId), jsonId, CkJsonObject.getCPtr(secret), secret);
    return (cPtr == 0) ? null : new CkTask(cPtr, true);
  }

  public boolean UpdateSecretSb(CkJsonObject jsonId, CkStringBuilder sb) {
    return chilkatJNI.CkSecrets_UpdateSecretSb(swigCPtr, this, CkJsonObject.getCPtr(jsonId), jsonId, CkStringBuilder.getCPtr(sb), sb);
  }

  public CkTask UpdateSecretSbAsync(CkJsonObject jsonId, CkStringBuilder sb) {
    long cPtr = chilkatJNI.CkSecrets_UpdateSecretSbAsync(swigCPtr, this, CkJsonObject.getCPtr(jsonId), jsonId, CkStringBuilder.getCPtr(sb), sb);
    return (cPtr == 0) ? null : new CkTask(cPtr, true);
  }

  public boolean UpdateSecretStr(CkJsonObject jsonId, String secret) {
    return chilkatJNI.CkSecrets_UpdateSecretStr(swigCPtr, this, CkJsonObject.getCPtr(jsonId), jsonId, secret);
  }

  public CkTask UpdateSecretStrAsync(CkJsonObject jsonId, String secret) {
    long cPtr = chilkatJNI.CkSecrets_UpdateSecretStrAsync(swigCPtr, this, CkJsonObject.getCPtr(jsonId), jsonId, secret);
    return (cPtr == 0) ? null : new CkTask(cPtr, true);
  }

}
