diff --git a/examples/android/README.md b/examples/android/README.md index 0fbec6cb3..7225a9049 100644 --- a/examples/android/README.md +++ b/examples/android/README.md @@ -5,8 +5,4 @@ 1. Install dependencies see [README.md](../../README.md#macOS) 2. Build example and run - open project with Android Studio, build and run - -Shared libraries must placed app/src/main/jniLibs/[armeabi-v7a,arm64-v8a,x86]/. -Also /Library/libdigidocpp.androidarm/etc/digidocpp/schema content should be ziped and included app/src/main/res/raw/schema.zip path. -It will be extracted on application execution and path given to library special digidoc.initializeLib(appName, path) JNI function. + ./gradlew installDebug diff --git a/examples/android/app/build.gradle b/examples/android/app/build.gradle index bd535f11b..cca389c22 100644 --- a/examples/android/app/build.gradle +++ b/examples/android/app/build.gradle @@ -1,11 +1,13 @@ apply plugin: 'com.android.application' +def libsPath = '/Library/libdigidocpp' + android { - compileSdkVersion 29 + compileSdkVersion 30 defaultConfig { applicationId "ee.ria.libdigidocpp" minSdkVersion 21 - targetSdkVersion 29 + targetSdkVersion 30 versionCode 1 versionName "1.0" if (System.getenv("BUILD_NUMBER")) { @@ -24,47 +26,48 @@ android { targetCompatibility JavaVersion.VERSION_1_8 sourceCompatibility JavaVersion.VERSION_1_8 } + sourceSets.main.java.srcDirs += [libsPath + '.androidarm/include'] } dependencies { - implementation 'androidx.core:core:1.0.0' + implementation 'androidx.core:core:1.6.0' } task schemaZip(type:Zip) { - from ('/Library/libdigidocpp.androidarm/etc/digidocpp/schema/') { + println "Create schema zip" + from (libsPath + '.androidarm/etc/digidocpp/schema/') { include '*' } - destinationDir file('src/main/res/raw/') - archiveName 'schema.zip' + destinationDirectory = file('src/main/res/raw/') + archiveFileName = 'schema.zip' } task copyLibs { + println "Copy jniLibs" copy { - from fileTree('/Library/libdigidocpp.androidarm') { + from fileTree(libsPath + '.androidarm') { include 'lib/libdigidoc_java.so', 'arm-linux-androideabi/lib/armv7-a/libc++_shared.so' }.files into 'src/main/jniLibs/armeabi-v7a' } copy { - from fileTree('/Library/libdigidocpp.androidarm64') { + from fileTree(libsPath + '.androidarm64') { include 'lib/libdigidoc_java.so', 'aarch64-linux-android/lib/libc++_shared.so' }.files into 'src/main/jniLibs/arm64-v8a' } copy { - from fileTree('/Library/libdigidocpp.androidx86') { + from fileTree(libsPath + '.androidx86') { include 'lib/libdigidoc_java.so', 'i686-linux-android/lib/libc++_shared.so' }.files into 'src/main/jniLibs/x86' } copy { - from fileTree('/Library/libdigidocpp.androidx86_64') { + from fileTree(libsPath + '.androidx86_64') { include 'lib/libdigidoc_java.so', 'x86_64-linux-android/lib64/libc++_shared.so' }.files into 'src/main/jniLibs/x86_64' } - copy { - from fileTree('/Library/libdigidocpp.androidarm/include/ee/ria/libdigidocpp').files - into 'src/main/java/ee/ria/libdigidocpp/' - } } + +preBuild.dependsOn schemaZip, copyLibs diff --git a/examples/android/app/src/main/java/ee/ria/libdigidocpp/Conf.java b/examples/android/app/src/main/java/ee/ria/libdigidocpp/Conf.java deleted file mode 100644 index f6733847d..000000000 --- a/examples/android/app/src/main/java/ee/ria/libdigidocpp/Conf.java +++ /dev/null @@ -1,153 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 4.0.2 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -package ee.ria.libdigidocpp; - -public class Conf { - private transient long swigCPtr; - protected transient boolean swigCMemOwn; - - protected Conf(long cPtr, boolean cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - protected static long getCPtr(Conf obj) { - return (obj == null) ? 0 : obj.swigCPtr; - } - - @SuppressWarnings("deprecation") - protected void finalize() { - delete(); - } - - public synchronized void delete() { - if (swigCPtr != 0) { - if (swigCMemOwn) { - swigCMemOwn = false; - digidocJNI.delete_Conf(swigCPtr); - } - swigCPtr = 0; - } - } - - public Conf transfer() { - swigCMemOwn = false; - return this; - } - - public Conf() { - this(digidocJNI.new_Conf(), true); - } - - public static void init(Conf conf) { - digidocJNI.Conf_init(Conf.getCPtr(conf), conf); - } - - public static Conf instance() { - long cPtr = digidocJNI.Conf_instance(); - return (cPtr == 0) ? null : new Conf(cPtr, false); - } - - public int logLevel() { - return digidocJNI.Conf_logLevel(swigCPtr, this); - } - - public String logFile() { - return digidocJNI.Conf_logFile(swigCPtr, this); - } - - public String xsdPath() { - return digidocJNI.Conf_xsdPath(swigCPtr, this); - } - - public String PKCS11Driver() { - return digidocJNI.Conf_PKCS11Driver(swigCPtr, this); - } - - public String proxyHost() { - return digidocJNI.Conf_proxyHost(swigCPtr, this); - } - - public String proxyPort() { - return digidocJNI.Conf_proxyPort(swigCPtr, this); - } - - public String proxyUser() { - return digidocJNI.Conf_proxyUser(swigCPtr, this); - } - - public String proxyPass() { - return digidocJNI.Conf_proxyPass(swigCPtr, this); - } - - public boolean proxyForceSSL() { - return digidocJNI.Conf_proxyForceSSL(swigCPtr, this); - } - - public boolean proxyTunnelSSL() { - return digidocJNI.Conf_proxyTunnelSSL(swigCPtr, this); - } - - public String digestUri() { - return digidocJNI.Conf_digestUri(swigCPtr, this); - } - - public String signatureDigestUri() { - return digidocJNI.Conf_signatureDigestUri(swigCPtr, this); - } - - public String ocsp(String issuer) { - return digidocJNI.Conf_ocsp(swigCPtr, this, issuer); - } - - public String TSUrl() { - return digidocJNI.Conf_TSUrl(swigCPtr, this); - } - - public String verifyServiceUri() { - return digidocJNI.Conf_verifyServiceUri(swigCPtr, this); - } - - public String PKCS12Cert() { - return digidocJNI.Conf_PKCS12Cert(swigCPtr, this); - } - - public String PKCS12Pass() { - return digidocJNI.Conf_PKCS12Pass(swigCPtr, this); - } - - public boolean PKCS12Disable() { - return digidocJNI.Conf_PKCS12Disable(swigCPtr, this); - } - - public boolean TSLAllowExpired() { - return digidocJNI.Conf_TSLAllowExpired(swigCPtr, this); - } - - public boolean TSLAutoUpdate() { - return digidocJNI.Conf_TSLAutoUpdate(swigCPtr, this); - } - - public String TSLCache() { - return digidocJNI.Conf_TSLCache(swigCPtr, this); - } - - public boolean TSLOnlineDigest() { - return digidocJNI.Conf_TSLOnlineDigest(swigCPtr, this); - } - - public int TSLTimeOut() { - return digidocJNI.Conf_TSLTimeOut(swigCPtr, this); - } - - public String TSLUrl() { - return digidocJNI.Conf_TSLUrl(swigCPtr, this); - } - -} diff --git a/examples/android/app/src/main/java/ee/ria/libdigidocpp/ConfV2.java b/examples/android/app/src/main/java/ee/ria/libdigidocpp/ConfV2.java deleted file mode 100644 index f82bdd00d..000000000 --- a/examples/android/app/src/main/java/ee/ria/libdigidocpp/ConfV2.java +++ /dev/null @@ -1,48 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 4.0.2 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -package ee.ria.libdigidocpp; - -public class ConfV2 extends Conf { - private transient long swigCPtr; - - protected ConfV2(long cPtr, boolean cMemoryOwn) { - super(digidocJNI.ConfV2_SWIGUpcast(cPtr), cMemoryOwn); - swigCPtr = cPtr; - } - - protected static long getCPtr(ConfV2 obj) { - return (obj == null) ? 0 : obj.swigCPtr; - } - - @SuppressWarnings("deprecation") - protected void finalize() { - delete(); - } - - public synchronized void delete() { - if (swigCPtr != 0) { - if (swigCMemOwn) { - swigCMemOwn = false; - digidocJNI.delete_ConfV2(swigCPtr); - } - swigCPtr = 0; - } - super.delete(); - } - - public ConfV2() { - this(digidocJNI.new_ConfV2(), true); - } - - public static ConfV2 instance() { - long cPtr = digidocJNI.ConfV2_instance(); - return (cPtr == 0) ? null : new ConfV2(cPtr, false); - } - -} diff --git a/examples/android/app/src/main/java/ee/ria/libdigidocpp/ConfV3.java b/examples/android/app/src/main/java/ee/ria/libdigidocpp/ConfV3.java deleted file mode 100644 index 55864f515..000000000 --- a/examples/android/app/src/main/java/ee/ria/libdigidocpp/ConfV3.java +++ /dev/null @@ -1,48 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 4.0.2 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -package ee.ria.libdigidocpp; - -public class ConfV3 extends ConfV2 { - private transient long swigCPtr; - - protected ConfV3(long cPtr, boolean cMemoryOwn) { - super(digidocJNI.ConfV3_SWIGUpcast(cPtr), cMemoryOwn); - swigCPtr = cPtr; - } - - protected static long getCPtr(ConfV3 obj) { - return (obj == null) ? 0 : obj.swigCPtr; - } - - @SuppressWarnings("deprecation") - protected void finalize() { - delete(); - } - - public synchronized void delete() { - if (swigCPtr != 0) { - if (swigCMemOwn) { - swigCMemOwn = false; - digidocJNI.delete_ConfV3(swigCPtr); - } - swigCPtr = 0; - } - super.delete(); - } - - public ConfV3() { - this(digidocJNI.new_ConfV3(), true); - } - - public static ConfV3 instance() { - long cPtr = digidocJNI.ConfV3_instance(); - return (cPtr == 0) ? null : new ConfV3(cPtr, false); - } - -} diff --git a/examples/android/app/src/main/java/ee/ria/libdigidocpp/Container.java b/examples/android/app/src/main/java/ee/ria/libdigidocpp/Container.java deleted file mode 100644 index c80157ab1..000000000 --- a/examples/android/app/src/main/java/ee/ria/libdigidocpp/Container.java +++ /dev/null @@ -1,130 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 4.0.2 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -package ee.ria.libdigidocpp; - -public class Container { - private transient long swigCPtr; - protected transient boolean swigCMemOwn; - - protected Container(long cPtr, boolean cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - protected static long getCPtr(Container obj) { - return (obj == null) ? 0 : obj.swigCPtr; - } - - @SuppressWarnings("deprecation") - protected void finalize() { - delete(); - } - - public synchronized void delete() { - if (swigCPtr != 0) { - if (swigCMemOwn) { - swigCMemOwn = false; - digidocJNI.delete_Container(swigCPtr); - } - swigCPtr = 0; - } - } - - public void save(String path) { - digidocJNI.Container_save__SWIG_0(swigCPtr, this, path); - } - - public void save() { - digidocJNI.Container_save__SWIG_1(swigCPtr, this); - } - - public String mediaType() { - return digidocJNI.Container_mediaType(swigCPtr, this); - } - - public void addDataFile(String path, String mediaType) { - digidocJNI.Container_addDataFile(swigCPtr, this, path, mediaType); - } - - public DataFiles dataFiles() { - return new DataFiles(digidocJNI.Container_dataFiles(swigCPtr, this), true); - } - - public void removeDataFile(long index) { - digidocJNI.Container_removeDataFile(swigCPtr, this, index); - } - - public void addAdESSignature(byte[] signature) { - digidocJNI.Container_addAdESSignature(swigCPtr, this, signature); - } - - public Signature prepareSignature(Signer signer) { - long cPtr = digidocJNI.Container_prepareSignature(swigCPtr, this, Signer.getCPtr(signer), signer); - return (cPtr == 0) ? null : new Signature(cPtr, false); - } - - public Signatures signatures() { - return new Signatures(digidocJNI.Container_signatures(swigCPtr, this), true); - } - - public void removeSignature(long index) { - digidocJNI.Container_removeSignature(swigCPtr, this, index); - } - - public Signature sign(Signer signer) { - long cPtr = digidocJNI.Container_sign(swigCPtr, this, Signer.getCPtr(signer), signer); - return (cPtr == 0) ? null : new Signature(cPtr, false); - } - - public static Container create(String path) { - long cPtr = digidocJNI.Container_create(path); - return (cPtr == 0) ? null : new Container(cPtr, true); - } - - public static Container open(String path) { - long cPtr = digidocJNI.Container_open(path); - return (cPtr == 0) ? null : new Container(cPtr, true); - } - - public Signature prepareWebSignature(byte[] cert, String profile, StringVector roles, String city, String state, String postalCode, String country) { - long cPtr = digidocJNI.Container_prepareWebSignature__SWIG_0(swigCPtr, this, cert, profile, StringVector.getCPtr(roles), roles, city, state, postalCode, country); - return (cPtr == 0) ? null : new Signature(cPtr, false); - } - - public Signature prepareWebSignature(byte[] cert, String profile, StringVector roles, String city, String state, String postalCode) { - long cPtr = digidocJNI.Container_prepareWebSignature__SWIG_1(swigCPtr, this, cert, profile, StringVector.getCPtr(roles), roles, city, state, postalCode); - return (cPtr == 0) ? null : new Signature(cPtr, false); - } - - public Signature prepareWebSignature(byte[] cert, String profile, StringVector roles, String city, String state) { - long cPtr = digidocJNI.Container_prepareWebSignature__SWIG_2(swigCPtr, this, cert, profile, StringVector.getCPtr(roles), roles, city, state); - return (cPtr == 0) ? null : new Signature(cPtr, false); - } - - public Signature prepareWebSignature(byte[] cert, String profile, StringVector roles, String city) { - long cPtr = digidocJNI.Container_prepareWebSignature__SWIG_3(swigCPtr, this, cert, profile, StringVector.getCPtr(roles), roles, city); - return (cPtr == 0) ? null : new Signature(cPtr, false); - } - - public Signature prepareWebSignature(byte[] cert, String profile, StringVector roles) { - long cPtr = digidocJNI.Container_prepareWebSignature__SWIG_4(swigCPtr, this, cert, profile, StringVector.getCPtr(roles), roles); - return (cPtr == 0) ? null : new Signature(cPtr, false); - } - - public Signature prepareWebSignature(byte[] cert, String profile) { - long cPtr = digidocJNI.Container_prepareWebSignature__SWIG_5(swigCPtr, this, cert, profile); - return (cPtr == 0) ? null : new Signature(cPtr, false); - } - - public Signature prepareWebSignature(byte[] cert) { - long cPtr = digidocJNI.Container_prepareWebSignature__SWIG_6(swigCPtr, this, cert); - return (cPtr == 0) ? null : new Signature(cPtr, false); - } - -} diff --git a/examples/android/app/src/main/java/ee/ria/libdigidocpp/DataFile.java b/examples/android/app/src/main/java/ee/ria/libdigidocpp/DataFile.java deleted file mode 100644 index 252cef199..000000000 --- a/examples/android/app/src/main/java/ee/ria/libdigidocpp/DataFile.java +++ /dev/null @@ -1,63 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 4.0.2 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -package ee.ria.libdigidocpp; - -public class DataFile { - private transient long swigCPtr; - protected transient boolean swigCMemOwn; - - protected DataFile(long cPtr, boolean cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - protected static long getCPtr(DataFile obj) { - return (obj == null) ? 0 : obj.swigCPtr; - } - - @SuppressWarnings("deprecation") - protected void finalize() { - delete(); - } - - public synchronized void delete() { - if (swigCPtr != 0) { - if (swigCMemOwn) { - swigCMemOwn = false; - digidocJNI.delete_DataFile(swigCPtr); - } - swigCPtr = 0; - } - } - - public String id() { - return digidocJNI.DataFile_id(swigCPtr, this); - } - - public String fileName() { - return digidocJNI.DataFile_fileName(swigCPtr, this); - } - - public long fileSize() { - return digidocJNI.DataFile_fileSize(swigCPtr, this); - } - - public String mediaType() { - return digidocJNI.DataFile_mediaType(swigCPtr, this); - } - - public byte[] calcDigest(String method) { - return digidocJNI.DataFile_calcDigest(swigCPtr, this, method); - } - - public void saveAs(String path) { - digidocJNI.DataFile_saveAs(swigCPtr, this, path); - } - -} diff --git a/examples/android/app/src/main/java/ee/ria/libdigidocpp/DataFiles.java b/examples/android/app/src/main/java/ee/ria/libdigidocpp/DataFiles.java deleted file mode 100644 index 058d82d53..000000000 --- a/examples/android/app/src/main/java/ee/ria/libdigidocpp/DataFiles.java +++ /dev/null @@ -1,147 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 4.0.2 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -package ee.ria.libdigidocpp; - -public class DataFiles extends java.util.AbstractList implements java.util.RandomAccess { - private transient long swigCPtr; - protected transient boolean swigCMemOwn; - - protected DataFiles(long cPtr, boolean cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - protected static long getCPtr(DataFiles obj) { - return (obj == null) ? 0 : obj.swigCPtr; - } - - @SuppressWarnings("deprecation") - protected void finalize() { - delete(); - } - - public synchronized void delete() { - if (swigCPtr != 0) { - if (swigCMemOwn) { - swigCMemOwn = false; - digidocJNI.delete_DataFiles(swigCPtr); - } - swigCPtr = 0; - } - } - - public DataFiles(DataFile[] initialElements) { - this(); - reserve(initialElements.length); - - for (DataFile element : initialElements) { - add(element); - } - } - - public DataFiles(Iterable initialElements) { - this(); - for (DataFile element : initialElements) { - add(element); - } - } - - public DataFile get(int index) { - return doGet(index); - } - - public DataFile set(int index, DataFile e) { - return doSet(index, e); - } - - public boolean add(DataFile e) { - modCount++; - doAdd(e); - return true; - } - - public void add(int index, DataFile e) { - modCount++; - doAdd(index, e); - } - - public DataFile remove(int index) { - modCount++; - return doRemove(index); - } - - protected void removeRange(int fromIndex, int toIndex) { - modCount++; - doRemoveRange(fromIndex, toIndex); - } - - public int size() { - return doSize(); - } - - public DataFiles() { - this(digidocJNI.new_DataFiles__SWIG_0(), true); - } - - public DataFiles(DataFiles other) { - this(digidocJNI.new_DataFiles__SWIG_1(DataFiles.getCPtr(other), other), true); - } - - public long capacity() { - return digidocJNI.DataFiles_capacity(swigCPtr, this); - } - - public void reserve(long n) { - digidocJNI.DataFiles_reserve(swigCPtr, this, n); - } - - public boolean isEmpty() { - return digidocJNI.DataFiles_isEmpty(swigCPtr, this); - } - - public void clear() { - digidocJNI.DataFiles_clear(swigCPtr, this); - } - - public DataFiles(int count, DataFile value) { - this(digidocJNI.new_DataFiles__SWIG_2(count, DataFile.getCPtr(value), value), true); - } - - private int doSize() { - return digidocJNI.DataFiles_doSize(swigCPtr, this); - } - - private void doAdd(DataFile x) { - digidocJNI.DataFiles_doAdd__SWIG_0(swigCPtr, this, DataFile.getCPtr(x), x); - } - - private void doAdd(int index, DataFile x) { - digidocJNI.DataFiles_doAdd__SWIG_1(swigCPtr, this, index, DataFile.getCPtr(x), x); - } - - private DataFile doRemove(int index) { - long cPtr = digidocJNI.DataFiles_doRemove(swigCPtr, this, index); - return (cPtr == 0) ? null : new DataFile(cPtr, false); - } - - private DataFile doGet(int index) { - long cPtr = digidocJNI.DataFiles_doGet(swigCPtr, this, index); - return (cPtr == 0) ? null : new DataFile(cPtr, false); - } - - private DataFile doSet(int index, DataFile val) { - long cPtr = digidocJNI.DataFiles_doSet(swigCPtr, this, index, DataFile.getCPtr(val), val); - return (cPtr == 0) ? null : new DataFile(cPtr, false); - } - - private void doRemoveRange(int fromIndex, int toIndex) { - digidocJNI.DataFiles_doRemoveRange(swigCPtr, this, fromIndex, toIndex); - } - -} diff --git a/examples/android/app/src/main/java/ee/ria/libdigidocpp/DigiDocConf.java b/examples/android/app/src/main/java/ee/ria/libdigidocpp/DigiDocConf.java deleted file mode 100644 index 78ea01df7..000000000 --- a/examples/android/app/src/main/java/ee/ria/libdigidocpp/DigiDocConf.java +++ /dev/null @@ -1,116 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 4.0.2 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -package ee.ria.libdigidocpp; - -public class DigiDocConf extends XmlConfV3 { - private transient long swigCPtr; - - protected DigiDocConf(long cPtr, boolean cMemoryOwn) { - super(digidocJNI.DigiDocConf_SWIGUpcast(cPtr), cMemoryOwn); - swigCPtr = cPtr; - } - - protected static long getCPtr(DigiDocConf obj) { - return (obj == null) ? 0 : obj.swigCPtr; - } - - @SuppressWarnings("deprecation") - protected void finalize() { - delete(); - } - - public synchronized void delete() { - if (swigCPtr != 0) { - if (swigCMemOwn) { - swigCMemOwn = false; - digidocJNI.delete_DigiDocConf(swigCPtr); - } - swigCPtr = 0; - } - super.delete(); - } - - public DigiDocConf(String _cache) { - this(digidocJNI.new_DigiDocConf(_cache), true); - } - - public static DigiDocConf instance() { - long cPtr = digidocJNI.DigiDocConf_instance(); - return (cPtr == 0) ? null : new DigiDocConf(cPtr, false); - } - - public int logLevel() { - return digidocJNI.DigiDocConf_logLevel(swigCPtr, this); - } - - public String logFile() { - return digidocJNI.DigiDocConf_logFile(swigCPtr, this); - } - - public String ocsp(String issuer) { - return digidocJNI.DigiDocConf_ocsp(swigCPtr, this, issuer); - } - - public String PKCS12Cert() { - return digidocJNI.DigiDocConf_PKCS12Cert(swigCPtr, this); - } - - public String TSLCache() { - return digidocJNI.DigiDocConf_TSLCache(swigCPtr, this); - } - - public String TSLUrl() { - return digidocJNI.DigiDocConf_TSLUrl(swigCPtr, this); - } - - public String verifyServiceUri() { - return digidocJNI.DigiDocConf_verifyServiceUri(swigCPtr, this); - } - - public String xsdPath() { - return digidocJNI.DigiDocConf_xsdPath(swigCPtr, this); - } - - public void setLogLevel(int level) { - digidocJNI.DigiDocConf_setLogLevel(swigCPtr, this, level); - } - - public void setLogFile(String file) { - digidocJNI.DigiDocConf_setLogFile(swigCPtr, this, file); - } - - public void setTSLCert(byte[] cert) { - digidocJNI.DigiDocConf_setTSLCert(swigCPtr, this, cert); - } - - public void addTSLCert(byte[] cert) { - digidocJNI.DigiDocConf_addTSLCert(swigCPtr, this, cert); - } - - public void setTSLUrl(String url) { - digidocJNI.DigiDocConf_setTSLUrl(swigCPtr, this, url); - } - - public void setOCSPUrls(StringMap urls) { - digidocJNI.DigiDocConf_setOCSPUrls(swigCPtr, this, StringMap.getCPtr(urls), urls); - } - - public void setOCSPTMProfiles(StringVector _TMProfiles) { - digidocJNI.DigiDocConf_setOCSPTMProfiles(swigCPtr, this, StringVector.getCPtr(_TMProfiles), _TMProfiles); - } - - public void setVerifyServiceCert(byte[] cert) { - digidocJNI.DigiDocConf_setVerifyServiceCert(swigCPtr, this, cert); - } - - public void setVerifyServiceUri(String url) { - digidocJNI.DigiDocConf_setVerifyServiceUri(swigCPtr, this, url); - } - -} diff --git a/examples/android/app/src/main/java/ee/ria/libdigidocpp/PKCS11Signer.java b/examples/android/app/src/main/java/ee/ria/libdigidocpp/PKCS11Signer.java deleted file mode 100644 index 680bb81c8..000000000 --- a/examples/android/app/src/main/java/ee/ria/libdigidocpp/PKCS11Signer.java +++ /dev/null @@ -1,51 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 4.0.2 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -package ee.ria.libdigidocpp; - -public class PKCS11Signer extends Signer { - private transient long swigCPtr; - - protected PKCS11Signer(long cPtr, boolean cMemoryOwn) { - super(digidocJNI.PKCS11Signer_SWIGUpcast(cPtr), cMemoryOwn); - swigCPtr = cPtr; - } - - protected static long getCPtr(PKCS11Signer obj) { - return (obj == null) ? 0 : obj.swigCPtr; - } - - @SuppressWarnings("deprecation") - protected void finalize() { - delete(); - } - - public synchronized void delete() { - if (swigCPtr != 0) { - if (swigCMemOwn) { - swigCMemOwn = false; - digidocJNI.delete_PKCS11Signer(swigCPtr); - } - swigCPtr = 0; - } - super.delete(); - } - - public PKCS11Signer(String driver) { - this(digidocJNI.new_PKCS11Signer__SWIG_0(driver), true); - } - - public PKCS11Signer() { - this(digidocJNI.new_PKCS11Signer__SWIG_1(), true); - } - - public void setPin(String pin) { - digidocJNI.PKCS11Signer_setPin(swigCPtr, this, pin); - } - -} diff --git a/examples/android/app/src/main/java/ee/ria/libdigidocpp/PKCS12Signer.java b/examples/android/app/src/main/java/ee/ria/libdigidocpp/PKCS12Signer.java deleted file mode 100644 index 4c046d37c..000000000 --- a/examples/android/app/src/main/java/ee/ria/libdigidocpp/PKCS12Signer.java +++ /dev/null @@ -1,43 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 4.0.2 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -package ee.ria.libdigidocpp; - -public class PKCS12Signer extends Signer { - private transient long swigCPtr; - - protected PKCS12Signer(long cPtr, boolean cMemoryOwn) { - super(digidocJNI.PKCS12Signer_SWIGUpcast(cPtr), cMemoryOwn); - swigCPtr = cPtr; - } - - protected static long getCPtr(PKCS12Signer obj) { - return (obj == null) ? 0 : obj.swigCPtr; - } - - @SuppressWarnings("deprecation") - protected void finalize() { - delete(); - } - - public synchronized void delete() { - if (swigCPtr != 0) { - if (swigCMemOwn) { - swigCMemOwn = false; - digidocJNI.delete_PKCS12Signer(swigCPtr); - } - swigCPtr = 0; - } - super.delete(); - } - - public PKCS12Signer(String path, String pass) { - this(digidocJNI.new_PKCS12Signer(path, pass), true); - } - -} diff --git a/examples/android/app/src/main/java/ee/ria/libdigidocpp/Signature.java b/examples/android/app/src/main/java/ee/ria/libdigidocpp/Signature.java deleted file mode 100644 index 4dd4e069e..000000000 --- a/examples/android/app/src/main/java/ee/ria/libdigidocpp/Signature.java +++ /dev/null @@ -1,245 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 4.0.2 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -package ee.ria.libdigidocpp; - -public class Signature { - private transient long swigCPtr; - protected transient boolean swigCMemOwn; - - protected Signature(long cPtr, boolean cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - protected static long getCPtr(Signature obj) { - return (obj == null) ? 0 : obj.swigCPtr; - } - - @SuppressWarnings("deprecation") - protected void finalize() { - delete(); - } - - public synchronized void delete() { - if (swigCPtr != 0) { - if (swigCMemOwn) { - swigCMemOwn = false; - digidocJNI.delete_Signature(swigCPtr); - } - swigCPtr = 0; - } - } - - static public class Validator { - private transient long swigCPtr; - protected transient boolean swigCMemOwn; - - protected Validator(long cPtr, boolean cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - protected static long getCPtr(Validator obj) { - return (obj == null) ? 0 : obj.swigCPtr; - } - - @SuppressWarnings("deprecation") - protected void finalize() { - delete(); - } - - public synchronized void delete() { - if (swigCPtr != 0) { - if (swigCMemOwn) { - swigCMemOwn = false; - digidocJNI.delete_Signature_Validator(swigCPtr); - } - swigCPtr = 0; - } - } - - public Validator(Signature s) { - this(digidocJNI.new_Signature_Validator(Signature.getCPtr(s), s), true); - } - - public String diagnostics() { - return digidocJNI.Signature_Validator_diagnostics(swigCPtr, this); - } - - public Signature.Validator.Status status() { - return Signature.Validator.Status.swigToEnum(digidocJNI.Signature_Validator_status(swigCPtr, this)); - } - - public final static class Status { - public final static Signature.Validator.Status Valid = new Signature.Validator.Status("Valid"); - public final static Signature.Validator.Status Warning = new Signature.Validator.Status("Warning"); - public final static Signature.Validator.Status NonQSCD = new Signature.Validator.Status("NonQSCD"); - public final static Signature.Validator.Status Test = new Signature.Validator.Status("Test"); - public final static Signature.Validator.Status Invalid = new Signature.Validator.Status("Invalid"); - public final static Signature.Validator.Status Unknown = new Signature.Validator.Status("Unknown"); - - public final int swigValue() { - return swigValue; - } - - public String toString() { - return swigName; - } - - public static Status swigToEnum(int swigValue) { - if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) - return swigValues[swigValue]; - for (int i = 0; i < swigValues.length; i++) - if (swigValues[i].swigValue == swigValue) - return swigValues[i]; - throw new IllegalArgumentException("No enum " + Status.class + " with value " + swigValue); - } - - private Status(String swigName) { - this.swigName = swigName; - this.swigValue = swigNext++; - } - - private Status(String swigName, int swigValue) { - this.swigName = swigName; - this.swigValue = swigValue; - swigNext = swigValue+1; - } - - private Status(String swigName, Status swigEnum) { - this.swigName = swigName; - this.swigValue = swigEnum.swigValue; - swigNext = this.swigValue+1; - } - - private static Status[] swigValues = { Valid, Warning, NonQSCD, Test, Invalid, Unknown }; - private static int swigNext = 0; - private final int swigValue; - private final String swigName; - } - - } - - public static String getPOLv1() { - return digidocJNI.Signature_POLv1_get(); - } - - public static String getPOLv2() { - return digidocJNI.Signature_POLv2_get(); - } - - public String id() { - return digidocJNI.Signature_id(swigCPtr, this); - } - - public String claimedSigningTime() { - return digidocJNI.Signature_claimedSigningTime(swigCPtr, this); - } - - public String trustedSigningTime() { - return digidocJNI.Signature_trustedSigningTime(swigCPtr, this); - } - - public String signatureMethod() { - return digidocJNI.Signature_signatureMethod(swigCPtr, this); - } - - public void validate() { - digidocJNI.Signature_validate__SWIG_0(swigCPtr, this); - } - - public byte[] dataToSign() { - return digidocJNI.Signature_dataToSign(swigCPtr, this); - } - - public void setSignatureValue(byte[] signatureValue) { - digidocJNI.Signature_setSignatureValue(swigCPtr, this, signatureValue); - } - - public void extendSignatureProfile(String profile) { - digidocJNI.Signature_extendSignatureProfile(swigCPtr, this, profile); - } - - public String policy() { - return digidocJNI.Signature_policy(swigCPtr, this); - } - - public String SPUri() { - return digidocJNI.Signature_SPUri(swigCPtr, this); - } - - public String profile() { - return digidocJNI.Signature_profile(swigCPtr, this); - } - - public String city() { - return digidocJNI.Signature_city(swigCPtr, this); - } - - public String stateOrProvince() { - return digidocJNI.Signature_stateOrProvince(swigCPtr, this); - } - - public String postalCode() { - return digidocJNI.Signature_postalCode(swigCPtr, this); - } - - public String countryName() { - return digidocJNI.Signature_countryName(swigCPtr, this); - } - - public StringVector signerRoles() { - return new StringVector(digidocJNI.Signature_signerRoles(swigCPtr, this), true); - } - - public String OCSPProducedAt() { - return digidocJNI.Signature_OCSPProducedAt(swigCPtr, this); - } - - public String TimeStampTime() { - return digidocJNI.Signature_TimeStampTime(swigCPtr, this); - } - - public String ArchiveTimeStampTime() { - return digidocJNI.Signature_ArchiveTimeStampTime(swigCPtr, this); - } - - public String streetAddress() { - return digidocJNI.Signature_streetAddress(swigCPtr, this); - } - - public String signedBy() { - return digidocJNI.Signature_signedBy(swigCPtr, this); - } - - public void validate(String policy) { - digidocJNI.Signature_validate__SWIG_1(swigCPtr, this, policy); - } - - public byte[] messageImprint() { - return digidocJNI.Signature_messageImprint(swigCPtr, this); - } - - public byte[] signingCertificateDer() { - return digidocJNI.Signature_signingCertificateDer(swigCPtr, this); - } - - public byte[] OCSPCertificateDer() { - return digidocJNI.Signature_OCSPCertificateDer(swigCPtr, this); - } - - public byte[] TimeStampCertificateDer() { - return digidocJNI.Signature_TimeStampCertificateDer(swigCPtr, this); - } - - public byte[] ArchiveTimeStampCertificateDer() { - return digidocJNI.Signature_ArchiveTimeStampCertificateDer(swigCPtr, this); - } - -} diff --git a/examples/android/app/src/main/java/ee/ria/libdigidocpp/Signatures.java b/examples/android/app/src/main/java/ee/ria/libdigidocpp/Signatures.java deleted file mode 100644 index e4cd29318..000000000 --- a/examples/android/app/src/main/java/ee/ria/libdigidocpp/Signatures.java +++ /dev/null @@ -1,147 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 4.0.2 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -package ee.ria.libdigidocpp; - -public class Signatures extends java.util.AbstractList implements java.util.RandomAccess { - private transient long swigCPtr; - protected transient boolean swigCMemOwn; - - protected Signatures(long cPtr, boolean cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - protected static long getCPtr(Signatures obj) { - return (obj == null) ? 0 : obj.swigCPtr; - } - - @SuppressWarnings("deprecation") - protected void finalize() { - delete(); - } - - public synchronized void delete() { - if (swigCPtr != 0) { - if (swigCMemOwn) { - swigCMemOwn = false; - digidocJNI.delete_Signatures(swigCPtr); - } - swigCPtr = 0; - } - } - - public Signatures(Signature[] initialElements) { - this(); - reserve(initialElements.length); - - for (Signature element : initialElements) { - add(element); - } - } - - public Signatures(Iterable initialElements) { - this(); - for (Signature element : initialElements) { - add(element); - } - } - - public Signature get(int index) { - return doGet(index); - } - - public Signature set(int index, Signature e) { - return doSet(index, e); - } - - public boolean add(Signature e) { - modCount++; - doAdd(e); - return true; - } - - public void add(int index, Signature e) { - modCount++; - doAdd(index, e); - } - - public Signature remove(int index) { - modCount++; - return doRemove(index); - } - - protected void removeRange(int fromIndex, int toIndex) { - modCount++; - doRemoveRange(fromIndex, toIndex); - } - - public int size() { - return doSize(); - } - - public Signatures() { - this(digidocJNI.new_Signatures__SWIG_0(), true); - } - - public Signatures(Signatures other) { - this(digidocJNI.new_Signatures__SWIG_1(Signatures.getCPtr(other), other), true); - } - - public long capacity() { - return digidocJNI.Signatures_capacity(swigCPtr, this); - } - - public void reserve(long n) { - digidocJNI.Signatures_reserve(swigCPtr, this, n); - } - - public boolean isEmpty() { - return digidocJNI.Signatures_isEmpty(swigCPtr, this); - } - - public void clear() { - digidocJNI.Signatures_clear(swigCPtr, this); - } - - public Signatures(int count, Signature value) { - this(digidocJNI.new_Signatures__SWIG_2(count, Signature.getCPtr(value), value), true); - } - - private int doSize() { - return digidocJNI.Signatures_doSize(swigCPtr, this); - } - - private void doAdd(Signature x) { - digidocJNI.Signatures_doAdd__SWIG_0(swigCPtr, this, Signature.getCPtr(x), x); - } - - private void doAdd(int index, Signature x) { - digidocJNI.Signatures_doAdd__SWIG_1(swigCPtr, this, index, Signature.getCPtr(x), x); - } - - private Signature doRemove(int index) { - long cPtr = digidocJNI.Signatures_doRemove(swigCPtr, this, index); - return (cPtr == 0) ? null : new Signature(cPtr, false); - } - - private Signature doGet(int index) { - long cPtr = digidocJNI.Signatures_doGet(swigCPtr, this, index); - return (cPtr == 0) ? null : new Signature(cPtr, false); - } - - private Signature doSet(int index, Signature val) { - long cPtr = digidocJNI.Signatures_doSet(swigCPtr, this, index, Signature.getCPtr(val), val); - return (cPtr == 0) ? null : new Signature(cPtr, false); - } - - private void doRemoveRange(int fromIndex, int toIndex) { - digidocJNI.Signatures_doRemoveRange(swigCPtr, this, fromIndex, toIndex); - } - -} diff --git a/examples/android/app/src/main/java/ee/ria/libdigidocpp/Signer.java b/examples/android/app/src/main/java/ee/ria/libdigidocpp/Signer.java deleted file mode 100644 index c0348d73d..000000000 --- a/examples/android/app/src/main/java/ee/ria/libdigidocpp/Signer.java +++ /dev/null @@ -1,103 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 4.0.2 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -package ee.ria.libdigidocpp; - -public class Signer { - private transient long swigCPtr; - protected transient boolean swigCMemOwn; - - protected Signer(long cPtr, boolean cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - protected static long getCPtr(Signer obj) { - return (obj == null) ? 0 : obj.swigCPtr; - } - - @SuppressWarnings("deprecation") - protected void finalize() { - delete(); - } - - public synchronized void delete() { - if (swigCPtr != 0) { - if (swigCMemOwn) { - swigCMemOwn = false; - digidocJNI.delete_Signer(swigCPtr); - } - swigCPtr = 0; - } - } - - public byte[] sign(String method, byte[] digest) { - return digidocJNI.Signer_sign(swigCPtr, this, method, digest); - } - - public String method() { - return digidocJNI.Signer_method(swigCPtr, this); - } - - public String profile() { - return digidocJNI.Signer_profile(swigCPtr, this); - } - - public boolean usingENProfile() { - return digidocJNI.Signer_usingENProfile(swigCPtr, this); - } - - public String city() { - return digidocJNI.Signer_city(swigCPtr, this); - } - - public String streetAddress() { - return digidocJNI.Signer_streetAddress(swigCPtr, this); - } - - public String stateOrProvince() { - return digidocJNI.Signer_stateOrProvince(swigCPtr, this); - } - - public String postalCode() { - return digidocJNI.Signer_postalCode(swigCPtr, this); - } - - public String countryName() { - return digidocJNI.Signer_countryName(swigCPtr, this); - } - - public StringVector signerRoles() { - return new StringVector(digidocJNI.Signer_signerRoles(swigCPtr, this), true); - } - - public void setMethod(String method) { - digidocJNI.Signer_setMethod(swigCPtr, this, method); - } - - public void setProfile(String profile) { - digidocJNI.Signer_setProfile(swigCPtr, this, profile); - } - - public void setENProfile(boolean enable) { - digidocJNI.Signer_setENProfile(swigCPtr, this, enable); - } - - public void setSignatureProductionPlace(String city, String stateOrProvince, String postalCode, String countryName) { - digidocJNI.Signer_setSignatureProductionPlace(swigCPtr, this, city, stateOrProvince, postalCode, countryName); - } - - public void setSignatureProductionPlaceV2(String city, String streetAddress, String stateOrProvince, String postalCode, String countryName) { - digidocJNI.Signer_setSignatureProductionPlaceV2(swigCPtr, this, city, streetAddress, stateOrProvince, postalCode, countryName); - } - - public void setSignerRoles(StringVector signerRoles) { - digidocJNI.Signer_setSignerRoles(swigCPtr, this, StringVector.getCPtr(signerRoles), signerRoles); - } - -} diff --git a/examples/android/app/src/main/java/ee/ria/libdigidocpp/StringMap.java b/examples/android/app/src/main/java/ee/ria/libdigidocpp/StringMap.java deleted file mode 100644 index 5c8ab8835..000000000 --- a/examples/android/app/src/main/java/ee/ria/libdigidocpp/StringMap.java +++ /dev/null @@ -1,221 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 4.0.2 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -package ee.ria.libdigidocpp; - -public class StringMap extends java.util.AbstractMap { - private transient long swigCPtr; - protected transient boolean swigCMemOwn; - - protected StringMap(long cPtr, boolean cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - protected static long getCPtr(StringMap obj) { - return (obj == null) ? 0 : obj.swigCPtr; - } - - @SuppressWarnings("deprecation") - protected void finalize() { - delete(); - } - - public synchronized void delete() { - if (swigCPtr != 0) { - if (swigCMemOwn) { - swigCMemOwn = false; - digidocJNI.delete_StringMap(swigCPtr); - } - swigCPtr = 0; - } - } - - - public int size() { - return sizeImpl(); - } - - public boolean containsKey(java.lang.Object key) { - if (!(key instanceof String)) { - return false; - } - - return containsImpl((String)key); - } - - public String get(java.lang.Object key) { - if (!(key instanceof String)) { - return null; - } - - Iterator itr = find((String) key); - if (itr.isNot(end())) { - return itr.getValue(); - } - - return null; - } - - public String put(String key, String value) { - Iterator itr = find((String) key); - if (itr.isNot(end())) { - String oldValue = itr.getValue(); - itr.setValue(value); - return oldValue; - } else { - putUnchecked(key, value); - return null; - } - } - - public String remove(java.lang.Object key) { - if (!(key instanceof String)) { - return null; - } - - Iterator itr = find((String) key); - if (itr.isNot(end())) { - String oldValue = itr.getValue(); - removeUnchecked(itr); - return oldValue; - } else { - return null; - } - } - - public java.util.Set> entrySet() { - java.util.Set> setToReturn = - new java.util.HashSet>(); - - Iterator itr = begin(); - final Iterator end = end(); - while (itr.isNot(end)) { - setToReturn.add(new Entry() { - private Iterator iterator; - - private Entry init(Iterator iterator) { - this.iterator = iterator; - return this; - } - - public String getKey() { - return iterator.getKey(); - } - - public String getValue() { - return iterator.getValue(); - } - - public String setValue(String newValue) { - String oldValue = iterator.getValue(); - iterator.setValue(newValue); - return oldValue; - } - }.init(itr)); - itr = itr.getNextUnchecked(); - } - - return setToReturn; - } - - public StringMap() { - this(digidocJNI.new_StringMap__SWIG_0(), true); - } - - public StringMap(StringMap other) { - this(digidocJNI.new_StringMap__SWIG_1(StringMap.getCPtr(other), other), true); - } - - static protected class Iterator { - private transient long swigCPtr; - protected transient boolean swigCMemOwn; - - protected Iterator(long cPtr, boolean cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - protected static long getCPtr(Iterator obj) { - return (obj == null) ? 0 : obj.swigCPtr; - } - - @SuppressWarnings("deprecation") - protected void finalize() { - delete(); - } - - public synchronized void delete() { - if (swigCPtr != 0) { - if (swigCMemOwn) { - swigCMemOwn = false; - digidocJNI.delete_StringMap_Iterator(swigCPtr); - } - swigCPtr = 0; - } - } - - private StringMap.Iterator getNextUnchecked() { - return new StringMap.Iterator(digidocJNI.StringMap_Iterator_getNextUnchecked(swigCPtr, this), true); - } - - private boolean isNot(StringMap.Iterator other) { - return digidocJNI.StringMap_Iterator_isNot(swigCPtr, this, StringMap.Iterator.getCPtr(other), other); - } - - private String getKey() { - return digidocJNI.StringMap_Iterator_getKey(swigCPtr, this); - } - - private String getValue() { - return digidocJNI.StringMap_Iterator_getValue(swigCPtr, this); - } - - private void setValue(String newValue) { - digidocJNI.StringMap_Iterator_setValue(swigCPtr, this, newValue); - } - - } - - public boolean isEmpty() { - return digidocJNI.StringMap_isEmpty(swigCPtr, this); - } - - public void clear() { - digidocJNI.StringMap_clear(swigCPtr, this); - } - - private StringMap.Iterator find(String key) { - return new StringMap.Iterator(digidocJNI.StringMap_find(swigCPtr, this, key), true); - } - - private StringMap.Iterator begin() { - return new StringMap.Iterator(digidocJNI.StringMap_begin(swigCPtr, this), true); - } - - private StringMap.Iterator end() { - return new StringMap.Iterator(digidocJNI.StringMap_end(swigCPtr, this), true); - } - - private int sizeImpl() { - return digidocJNI.StringMap_sizeImpl(swigCPtr, this); - } - - private boolean containsImpl(String key) { - return digidocJNI.StringMap_containsImpl(swigCPtr, this, key); - } - - private void putUnchecked(String key, String value) { - digidocJNI.StringMap_putUnchecked(swigCPtr, this, key, value); - } - - private void removeUnchecked(StringMap.Iterator itr) { - digidocJNI.StringMap_removeUnchecked(swigCPtr, this, StringMap.Iterator.getCPtr(itr), itr); - } - -} diff --git a/examples/android/app/src/main/java/ee/ria/libdigidocpp/StringVector.java b/examples/android/app/src/main/java/ee/ria/libdigidocpp/StringVector.java deleted file mode 100644 index 427a94e02..000000000 --- a/examples/android/app/src/main/java/ee/ria/libdigidocpp/StringVector.java +++ /dev/null @@ -1,144 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 4.0.2 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -package ee.ria.libdigidocpp; - -public class StringVector extends java.util.AbstractList implements java.util.RandomAccess { - private transient long swigCPtr; - protected transient boolean swigCMemOwn; - - protected StringVector(long cPtr, boolean cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - protected static long getCPtr(StringVector obj) { - return (obj == null) ? 0 : obj.swigCPtr; - } - - @SuppressWarnings("deprecation") - protected void finalize() { - delete(); - } - - public synchronized void delete() { - if (swigCPtr != 0) { - if (swigCMemOwn) { - swigCMemOwn = false; - digidocJNI.delete_StringVector(swigCPtr); - } - swigCPtr = 0; - } - } - - public StringVector(String[] initialElements) { - this(); - reserve(initialElements.length); - - for (String element : initialElements) { - add(element); - } - } - - public StringVector(Iterable initialElements) { - this(); - for (String element : initialElements) { - add(element); - } - } - - public String get(int index) { - return doGet(index); - } - - public String set(int index, String e) { - return doSet(index, e); - } - - public boolean add(String e) { - modCount++; - doAdd(e); - return true; - } - - public void add(int index, String e) { - modCount++; - doAdd(index, e); - } - - public String remove(int index) { - modCount++; - return doRemove(index); - } - - protected void removeRange(int fromIndex, int toIndex) { - modCount++; - doRemoveRange(fromIndex, toIndex); - } - - public int size() { - return doSize(); - } - - public StringVector() { - this(digidocJNI.new_StringVector__SWIG_0(), true); - } - - public StringVector(StringVector other) { - this(digidocJNI.new_StringVector__SWIG_1(StringVector.getCPtr(other), other), true); - } - - public long capacity() { - return digidocJNI.StringVector_capacity(swigCPtr, this); - } - - public void reserve(long n) { - digidocJNI.StringVector_reserve(swigCPtr, this, n); - } - - public boolean isEmpty() { - return digidocJNI.StringVector_isEmpty(swigCPtr, this); - } - - public void clear() { - digidocJNI.StringVector_clear(swigCPtr, this); - } - - public StringVector(int count, String value) { - this(digidocJNI.new_StringVector__SWIG_2(count, value), true); - } - - private int doSize() { - return digidocJNI.StringVector_doSize(swigCPtr, this); - } - - private void doAdd(String x) { - digidocJNI.StringVector_doAdd__SWIG_0(swigCPtr, this, x); - } - - private void doAdd(int index, String x) { - digidocJNI.StringVector_doAdd__SWIG_1(swigCPtr, this, index, x); - } - - private String doRemove(int index) { - return digidocJNI.StringVector_doRemove(swigCPtr, this, index); - } - - private String doGet(int index) { - return digidocJNI.StringVector_doGet(swigCPtr, this, index); - } - - private String doSet(int index, String val) { - return digidocJNI.StringVector_doSet(swigCPtr, this, index, val); - } - - private void doRemoveRange(int fromIndex, int toIndex) { - digidocJNI.StringVector_doRemoveRange(swigCPtr, this, fromIndex, toIndex); - } - -} diff --git a/examples/android/app/src/main/java/ee/ria/libdigidocpp/XmlConf.java b/examples/android/app/src/main/java/ee/ria/libdigidocpp/XmlConf.java deleted file mode 100644 index a255f2349..000000000 --- a/examples/android/app/src/main/java/ee/ria/libdigidocpp/XmlConf.java +++ /dev/null @@ -1,184 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 4.0.2 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -package ee.ria.libdigidocpp; - -public class XmlConf extends Conf { - private transient long swigCPtr; - - protected XmlConf(long cPtr, boolean cMemoryOwn) { - super(digidocJNI.XmlConf_SWIGUpcast(cPtr), cMemoryOwn); - swigCPtr = cPtr; - } - - protected static long getCPtr(XmlConf obj) { - return (obj == null) ? 0 : obj.swigCPtr; - } - - @SuppressWarnings("deprecation") - protected void finalize() { - delete(); - } - - public synchronized void delete() { - if (swigCPtr != 0) { - if (swigCMemOwn) { - swigCMemOwn = false; - digidocJNI.delete_XmlConf(swigCPtr); - } - swigCPtr = 0; - } - super.delete(); - } - - public XmlConf(String path, String schema) { - this(digidocJNI.new_XmlConf__SWIG_0(path, schema), true); - } - - public XmlConf(String path) { - this(digidocJNI.new_XmlConf__SWIG_1(path), true); - } - - public XmlConf() { - this(digidocJNI.new_XmlConf__SWIG_2(), true); - } - - public static XmlConf instance() { - long cPtr = digidocJNI.XmlConf_instance(); - return (cPtr == 0) ? null : new XmlConf(cPtr, false); - } - - public int logLevel() { - return digidocJNI.XmlConf_logLevel(swigCPtr, this); - } - - public String logFile() { - return digidocJNI.XmlConf_logFile(swigCPtr, this); - } - - public String PKCS11Driver() { - return digidocJNI.XmlConf_PKCS11Driver(swigCPtr, this); - } - - public String proxyHost() { - return digidocJNI.XmlConf_proxyHost(swigCPtr, this); - } - - public String proxyPort() { - return digidocJNI.XmlConf_proxyPort(swigCPtr, this); - } - - public String proxyUser() { - return digidocJNI.XmlConf_proxyUser(swigCPtr, this); - } - - public String proxyPass() { - return digidocJNI.XmlConf_proxyPass(swigCPtr, this); - } - - public boolean proxyForceSSL() { - return digidocJNI.XmlConf_proxyForceSSL(swigCPtr, this); - } - - public boolean proxyTunnelSSL() { - return digidocJNI.XmlConf_proxyTunnelSSL(swigCPtr, this); - } - - public String digestUri() { - return digidocJNI.XmlConf_digestUri(swigCPtr, this); - } - - public String signatureDigestUri() { - return digidocJNI.XmlConf_signatureDigestUri(swigCPtr, this); - } - - public String ocsp(String issuer) { - return digidocJNI.XmlConf_ocsp(swigCPtr, this, issuer); - } - - public String TSUrl() { - return digidocJNI.XmlConf_TSUrl(swigCPtr, this); - } - - public String verifyServiceUri() { - return digidocJNI.XmlConf_verifyServiceUri(swigCPtr, this); - } - - public String PKCS12Cert() { - return digidocJNI.XmlConf_PKCS12Cert(swigCPtr, this); - } - - public String PKCS12Pass() { - return digidocJNI.XmlConf_PKCS12Pass(swigCPtr, this); - } - - public boolean PKCS12Disable() { - return digidocJNI.XmlConf_PKCS12Disable(swigCPtr, this); - } - - public boolean TSLAutoUpdate() { - return digidocJNI.XmlConf_TSLAutoUpdate(swigCPtr, this); - } - - public String TSLCache() { - return digidocJNI.XmlConf_TSLCache(swigCPtr, this); - } - - public boolean TSLOnlineDigest() { - return digidocJNI.XmlConf_TSLOnlineDigest(swigCPtr, this); - } - - public int TSLTimeOut() { - return digidocJNI.XmlConf_TSLTimeOut(swigCPtr, this); - } - - public void setProxyHost(String host) { - digidocJNI.XmlConf_setProxyHost(swigCPtr, this, host); - } - - public void setProxyPort(String port) { - digidocJNI.XmlConf_setProxyPort(swigCPtr, this, port); - } - - public void setProxyUser(String user) { - digidocJNI.XmlConf_setProxyUser(swigCPtr, this, user); - } - - public void setProxyPass(String pass) { - digidocJNI.XmlConf_setProxyPass(swigCPtr, this, pass); - } - - public void setProxyTunnelSSL(boolean enable) { - digidocJNI.XmlConf_setProxyTunnelSSL(swigCPtr, this, enable); - } - - public void setPKCS12Cert(String cert) { - digidocJNI.XmlConf_setPKCS12Cert(swigCPtr, this, cert); - } - - public void setPKCS12Pass(String pass) { - digidocJNI.XmlConf_setPKCS12Pass(swigCPtr, this, pass); - } - - public void setPKCS12Disable(boolean disable) { - digidocJNI.XmlConf_setPKCS12Disable(swigCPtr, this, disable); - } - - public void setTSLOnlineDigest(boolean enable) { - digidocJNI.XmlConf_setTSLOnlineDigest(swigCPtr, this, enable); - } - - public void setTSLTimeOut(int timeOut) { - digidocJNI.XmlConf_setTSLTimeOut(swigCPtr, this, timeOut); - } - - public void setTSUrl(String url) { - digidocJNI.XmlConf_setTSUrl(swigCPtr, this, url); - } - -} diff --git a/examples/android/app/src/main/java/ee/ria/libdigidocpp/XmlConfV2.java b/examples/android/app/src/main/java/ee/ria/libdigidocpp/XmlConfV2.java deleted file mode 100644 index 011f9b719..000000000 --- a/examples/android/app/src/main/java/ee/ria/libdigidocpp/XmlConfV2.java +++ /dev/null @@ -1,184 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 4.0.2 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -package ee.ria.libdigidocpp; - -public class XmlConfV2 extends ConfV2 { - private transient long swigCPtr; - - protected XmlConfV2(long cPtr, boolean cMemoryOwn) { - super(digidocJNI.XmlConfV2_SWIGUpcast(cPtr), cMemoryOwn); - swigCPtr = cPtr; - } - - protected static long getCPtr(XmlConfV2 obj) { - return (obj == null) ? 0 : obj.swigCPtr; - } - - @SuppressWarnings("deprecation") - protected void finalize() { - delete(); - } - - public synchronized void delete() { - if (swigCPtr != 0) { - if (swigCMemOwn) { - swigCMemOwn = false; - digidocJNI.delete_XmlConfV2(swigCPtr); - } - swigCPtr = 0; - } - super.delete(); - } - - public XmlConfV2(String path, String schema) { - this(digidocJNI.new_XmlConfV2__SWIG_0(path, schema), true); - } - - public XmlConfV2(String path) { - this(digidocJNI.new_XmlConfV2__SWIG_1(path), true); - } - - public XmlConfV2() { - this(digidocJNI.new_XmlConfV2__SWIG_2(), true); - } - - public static XmlConfV2 instance() { - long cPtr = digidocJNI.XmlConfV2_instance(); - return (cPtr == 0) ? null : new XmlConfV2(cPtr, false); - } - - public int logLevel() { - return digidocJNI.XmlConfV2_logLevel(swigCPtr, this); - } - - public String logFile() { - return digidocJNI.XmlConfV2_logFile(swigCPtr, this); - } - - public String PKCS11Driver() { - return digidocJNI.XmlConfV2_PKCS11Driver(swigCPtr, this); - } - - public String proxyHost() { - return digidocJNI.XmlConfV2_proxyHost(swigCPtr, this); - } - - public String proxyPort() { - return digidocJNI.XmlConfV2_proxyPort(swigCPtr, this); - } - - public String proxyUser() { - return digidocJNI.XmlConfV2_proxyUser(swigCPtr, this); - } - - public String proxyPass() { - return digidocJNI.XmlConfV2_proxyPass(swigCPtr, this); - } - - public boolean proxyForceSSL() { - return digidocJNI.XmlConfV2_proxyForceSSL(swigCPtr, this); - } - - public boolean proxyTunnelSSL() { - return digidocJNI.XmlConfV2_proxyTunnelSSL(swigCPtr, this); - } - - public String digestUri() { - return digidocJNI.XmlConfV2_digestUri(swigCPtr, this); - } - - public String signatureDigestUri() { - return digidocJNI.XmlConfV2_signatureDigestUri(swigCPtr, this); - } - - public String ocsp(String issuer) { - return digidocJNI.XmlConfV2_ocsp(swigCPtr, this, issuer); - } - - public String TSUrl() { - return digidocJNI.XmlConfV2_TSUrl(swigCPtr, this); - } - - public String verifyServiceUri() { - return digidocJNI.XmlConfV2_verifyServiceUri(swigCPtr, this); - } - - public String PKCS12Cert() { - return digidocJNI.XmlConfV2_PKCS12Cert(swigCPtr, this); - } - - public String PKCS12Pass() { - return digidocJNI.XmlConfV2_PKCS12Pass(swigCPtr, this); - } - - public boolean PKCS12Disable() { - return digidocJNI.XmlConfV2_PKCS12Disable(swigCPtr, this); - } - - public boolean TSLAutoUpdate() { - return digidocJNI.XmlConfV2_TSLAutoUpdate(swigCPtr, this); - } - - public String TSLCache() { - return digidocJNI.XmlConfV2_TSLCache(swigCPtr, this); - } - - public boolean TSLOnlineDigest() { - return digidocJNI.XmlConfV2_TSLOnlineDigest(swigCPtr, this); - } - - public int TSLTimeOut() { - return digidocJNI.XmlConfV2_TSLTimeOut(swigCPtr, this); - } - - public void setProxyHost(String host) { - digidocJNI.XmlConfV2_setProxyHost(swigCPtr, this, host); - } - - public void setProxyPort(String port) { - digidocJNI.XmlConfV2_setProxyPort(swigCPtr, this, port); - } - - public void setProxyUser(String user) { - digidocJNI.XmlConfV2_setProxyUser(swigCPtr, this, user); - } - - public void setProxyPass(String pass) { - digidocJNI.XmlConfV2_setProxyPass(swigCPtr, this, pass); - } - - public void setProxyTunnelSSL(boolean enable) { - digidocJNI.XmlConfV2_setProxyTunnelSSL(swigCPtr, this, enable); - } - - public void setPKCS12Cert(String cert) { - digidocJNI.XmlConfV2_setPKCS12Cert(swigCPtr, this, cert); - } - - public void setPKCS12Pass(String pass) { - digidocJNI.XmlConfV2_setPKCS12Pass(swigCPtr, this, pass); - } - - public void setPKCS12Disable(boolean disable) { - digidocJNI.XmlConfV2_setPKCS12Disable(swigCPtr, this, disable); - } - - public void setTSLOnlineDigest(boolean enable) { - digidocJNI.XmlConfV2_setTSLOnlineDigest(swigCPtr, this, enable); - } - - public void setTSLTimeOut(int timeOut) { - digidocJNI.XmlConfV2_setTSLTimeOut(swigCPtr, this, timeOut); - } - - public void setTSUrl(String url) { - digidocJNI.XmlConfV2_setTSUrl(swigCPtr, this, url); - } - -} diff --git a/examples/android/app/src/main/java/ee/ria/libdigidocpp/XmlConfV3.java b/examples/android/app/src/main/java/ee/ria/libdigidocpp/XmlConfV3.java deleted file mode 100644 index 4db568a6c..000000000 --- a/examples/android/app/src/main/java/ee/ria/libdigidocpp/XmlConfV3.java +++ /dev/null @@ -1,184 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 4.0.2 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -package ee.ria.libdigidocpp; - -public class XmlConfV3 extends ConfV3 { - private transient long swigCPtr; - - protected XmlConfV3(long cPtr, boolean cMemoryOwn) { - super(digidocJNI.XmlConfV3_SWIGUpcast(cPtr), cMemoryOwn); - swigCPtr = cPtr; - } - - protected static long getCPtr(XmlConfV3 obj) { - return (obj == null) ? 0 : obj.swigCPtr; - } - - @SuppressWarnings("deprecation") - protected void finalize() { - delete(); - } - - public synchronized void delete() { - if (swigCPtr != 0) { - if (swigCMemOwn) { - swigCMemOwn = false; - digidocJNI.delete_XmlConfV3(swigCPtr); - } - swigCPtr = 0; - } - super.delete(); - } - - public XmlConfV3(String path, String schema) { - this(digidocJNI.new_XmlConfV3__SWIG_0(path, schema), true); - } - - public XmlConfV3(String path) { - this(digidocJNI.new_XmlConfV3__SWIG_1(path), true); - } - - public XmlConfV3() { - this(digidocJNI.new_XmlConfV3__SWIG_2(), true); - } - - public static XmlConfV3 instance() { - long cPtr = digidocJNI.XmlConfV3_instance(); - return (cPtr == 0) ? null : new XmlConfV3(cPtr, false); - } - - public int logLevel() { - return digidocJNI.XmlConfV3_logLevel(swigCPtr, this); - } - - public String logFile() { - return digidocJNI.XmlConfV3_logFile(swigCPtr, this); - } - - public String PKCS11Driver() { - return digidocJNI.XmlConfV3_PKCS11Driver(swigCPtr, this); - } - - public String proxyHost() { - return digidocJNI.XmlConfV3_proxyHost(swigCPtr, this); - } - - public String proxyPort() { - return digidocJNI.XmlConfV3_proxyPort(swigCPtr, this); - } - - public String proxyUser() { - return digidocJNI.XmlConfV3_proxyUser(swigCPtr, this); - } - - public String proxyPass() { - return digidocJNI.XmlConfV3_proxyPass(swigCPtr, this); - } - - public boolean proxyForceSSL() { - return digidocJNI.XmlConfV3_proxyForceSSL(swigCPtr, this); - } - - public boolean proxyTunnelSSL() { - return digidocJNI.XmlConfV3_proxyTunnelSSL(swigCPtr, this); - } - - public String digestUri() { - return digidocJNI.XmlConfV3_digestUri(swigCPtr, this); - } - - public String signatureDigestUri() { - return digidocJNI.XmlConfV3_signatureDigestUri(swigCPtr, this); - } - - public String ocsp(String issuer) { - return digidocJNI.XmlConfV3_ocsp(swigCPtr, this, issuer); - } - - public String TSUrl() { - return digidocJNI.XmlConfV3_TSUrl(swigCPtr, this); - } - - public String verifyServiceUri() { - return digidocJNI.XmlConfV3_verifyServiceUri(swigCPtr, this); - } - - public String PKCS12Cert() { - return digidocJNI.XmlConfV3_PKCS12Cert(swigCPtr, this); - } - - public String PKCS12Pass() { - return digidocJNI.XmlConfV3_PKCS12Pass(swigCPtr, this); - } - - public boolean PKCS12Disable() { - return digidocJNI.XmlConfV3_PKCS12Disable(swigCPtr, this); - } - - public boolean TSLAutoUpdate() { - return digidocJNI.XmlConfV3_TSLAutoUpdate(swigCPtr, this); - } - - public String TSLCache() { - return digidocJNI.XmlConfV3_TSLCache(swigCPtr, this); - } - - public boolean TSLOnlineDigest() { - return digidocJNI.XmlConfV3_TSLOnlineDigest(swigCPtr, this); - } - - public int TSLTimeOut() { - return digidocJNI.XmlConfV3_TSLTimeOut(swigCPtr, this); - } - - public void setProxyHost(String host) { - digidocJNI.XmlConfV3_setProxyHost(swigCPtr, this, host); - } - - public void setProxyPort(String port) { - digidocJNI.XmlConfV3_setProxyPort(swigCPtr, this, port); - } - - public void setProxyUser(String user) { - digidocJNI.XmlConfV3_setProxyUser(swigCPtr, this, user); - } - - public void setProxyPass(String pass) { - digidocJNI.XmlConfV3_setProxyPass(swigCPtr, this, pass); - } - - public void setProxyTunnelSSL(boolean enable) { - digidocJNI.XmlConfV3_setProxyTunnelSSL(swigCPtr, this, enable); - } - - public void setPKCS12Cert(String cert) { - digidocJNI.XmlConfV3_setPKCS12Cert(swigCPtr, this, cert); - } - - public void setPKCS12Pass(String pass) { - digidocJNI.XmlConfV3_setPKCS12Pass(swigCPtr, this, pass); - } - - public void setPKCS12Disable(boolean disable) { - digidocJNI.XmlConfV3_setPKCS12Disable(swigCPtr, this, disable); - } - - public void setTSLOnlineDigest(boolean enable) { - digidocJNI.XmlConfV3_setTSLOnlineDigest(swigCPtr, this, enable); - } - - public void setTSLTimeOut(int timeOut) { - digidocJNI.XmlConfV3_setTSLTimeOut(swigCPtr, this, timeOut); - } - - public void setTSUrl(String url) { - digidocJNI.XmlConfV3_setTSUrl(swigCPtr, this, url); - } - -} diff --git a/examples/android/app/src/main/java/ee/ria/libdigidocpp/digidoc.java b/examples/android/app/src/main/java/ee/ria/libdigidocpp/digidoc.java deleted file mode 100644 index 35444ef00..000000000 --- a/examples/android/app/src/main/java/ee/ria/libdigidocpp/digidoc.java +++ /dev/null @@ -1,36 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 4.0.2 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -package ee.ria.libdigidocpp; - -public class digidoc { - public static String appInfo() { - return digidocJNI.appInfo(); - } - - public static void terminate() { - digidocJNI.terminate(); - } - - public static String userAgent() { - return digidocJNI.userAgent(); - } - - public static String version() { - return digidocJNI.version(); - } - - public static void initializeLib(String appName, String path) { - digidocJNI.initializeLib__SWIG_0(appName, path); - } - - public static void initializeLib(String appName, String userAgent, String path) { - digidocJNI.initializeLib__SWIG_1(appName, userAgent, path); - } - -} diff --git a/examples/android/app/src/main/java/ee/ria/libdigidocpp/digidocJNI.java b/examples/android/app/src/main/java/ee/ria/libdigidocpp/digidocJNI.java deleted file mode 100644 index f7fef5094..000000000 --- a/examples/android/app/src/main/java/ee/ria/libdigidocpp/digidocJNI.java +++ /dev/null @@ -1,339 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 4.0.2 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -package ee.ria.libdigidocpp; - -public class digidocJNI { - public final static native long new_Conf(); - public final static native void delete_Conf(long jarg1); - public final static native void Conf_init(long jarg1, Conf jarg1_); - public final static native long Conf_instance(); - public final static native int Conf_logLevel(long jarg1, Conf jarg1_); - public final static native String Conf_logFile(long jarg1, Conf jarg1_); - public final static native String Conf_xsdPath(long jarg1, Conf jarg1_); - public final static native String Conf_PKCS11Driver(long jarg1, Conf jarg1_); - public final static native String Conf_proxyHost(long jarg1, Conf jarg1_); - public final static native String Conf_proxyPort(long jarg1, Conf jarg1_); - public final static native String Conf_proxyUser(long jarg1, Conf jarg1_); - public final static native String Conf_proxyPass(long jarg1, Conf jarg1_); - public final static native boolean Conf_proxyForceSSL(long jarg1, Conf jarg1_); - public final static native boolean Conf_proxyTunnelSSL(long jarg1, Conf jarg1_); - public final static native String Conf_digestUri(long jarg1, Conf jarg1_); - public final static native String Conf_signatureDigestUri(long jarg1, Conf jarg1_); - public final static native String Conf_ocsp(long jarg1, Conf jarg1_, String jarg2); - public final static native String Conf_TSUrl(long jarg1, Conf jarg1_); - public final static native String Conf_verifyServiceUri(long jarg1, Conf jarg1_); - public final static native String Conf_PKCS12Cert(long jarg1, Conf jarg1_); - public final static native String Conf_PKCS12Pass(long jarg1, Conf jarg1_); - public final static native boolean Conf_PKCS12Disable(long jarg1, Conf jarg1_); - public final static native boolean Conf_TSLAllowExpired(long jarg1, Conf jarg1_); - public final static native boolean Conf_TSLAutoUpdate(long jarg1, Conf jarg1_); - public final static native String Conf_TSLCache(long jarg1, Conf jarg1_); - public final static native boolean Conf_TSLOnlineDigest(long jarg1, Conf jarg1_); - public final static native int Conf_TSLTimeOut(long jarg1, Conf jarg1_); - public final static native String Conf_TSLUrl(long jarg1, Conf jarg1_); - public final static native long new_ConfV2(); - public final static native void delete_ConfV2(long jarg1); - public final static native long ConfV2_instance(); - public final static native long new_ConfV3(); - public final static native void delete_ConfV3(long jarg1); - public final static native long ConfV3_instance(); - public final static native String appInfo(); - public final static native void terminate(); - public final static native String userAgent(); - public final static native String version(); - public final static native void delete_Container(long jarg1); - public final static native void Container_save__SWIG_0(long jarg1, Container jarg1_, String jarg2); - public final static native void Container_save__SWIG_1(long jarg1, Container jarg1_); - public final static native String Container_mediaType(long jarg1, Container jarg1_); - public final static native void Container_addDataFile(long jarg1, Container jarg1_, String jarg2, String jarg3); - public final static native long Container_dataFiles(long jarg1, Container jarg1_); - public final static native void Container_removeDataFile(long jarg1, Container jarg1_, long jarg2); - public final static native void Container_addAdESSignature(long jarg1, Container jarg1_, byte[] jarg2); - public final static native long Container_prepareSignature(long jarg1, Container jarg1_, long jarg2, Signer jarg2_); - public final static native long Container_signatures(long jarg1, Container jarg1_); - public final static native void Container_removeSignature(long jarg1, Container jarg1_, long jarg2); - public final static native long Container_sign(long jarg1, Container jarg1_, long jarg2, Signer jarg2_); - public final static native long Container_create(String jarg1); - public final static native long Container_open(String jarg1); - public final static native long Container_prepareWebSignature__SWIG_0(long jarg1, Container jarg1_, byte[] jarg2, String jarg3, long jarg4, StringVector jarg4_, String jarg5, String jarg6, String jarg7, String jarg8); - public final static native long Container_prepareWebSignature__SWIG_1(long jarg1, Container jarg1_, byte[] jarg2, String jarg3, long jarg4, StringVector jarg4_, String jarg5, String jarg6, String jarg7); - public final static native long Container_prepareWebSignature__SWIG_2(long jarg1, Container jarg1_, byte[] jarg2, String jarg3, long jarg4, StringVector jarg4_, String jarg5, String jarg6); - public final static native long Container_prepareWebSignature__SWIG_3(long jarg1, Container jarg1_, byte[] jarg2, String jarg3, long jarg4, StringVector jarg4_, String jarg5); - public final static native long Container_prepareWebSignature__SWIG_4(long jarg1, Container jarg1_, byte[] jarg2, String jarg3, long jarg4, StringVector jarg4_); - public final static native long Container_prepareWebSignature__SWIG_5(long jarg1, Container jarg1_, byte[] jarg2, String jarg3); - public final static native long Container_prepareWebSignature__SWIG_6(long jarg1, Container jarg1_, byte[] jarg2); - public final static native void delete_DataFile(long jarg1); - public final static native String DataFile_id(long jarg1, DataFile jarg1_); - public final static native String DataFile_fileName(long jarg1, DataFile jarg1_); - public final static native long DataFile_fileSize(long jarg1, DataFile jarg1_); - public final static native String DataFile_mediaType(long jarg1, DataFile jarg1_); - public final static native byte[] DataFile_calcDigest(long jarg1, DataFile jarg1_, String jarg2); - public final static native void DataFile_saveAs(long jarg1, DataFile jarg1_, String jarg2); - public final static native long new_Signature_Validator(long jarg1, Signature jarg1_); - public final static native void delete_Signature_Validator(long jarg1); - public final static native String Signature_Validator_diagnostics(long jarg1, Signature.Validator jarg1_); - public final static native int Signature_Validator_status(long jarg1, Signature.Validator jarg1_); - public final static native String Signature_POLv1_get(); - public final static native String Signature_POLv2_get(); - public final static native void delete_Signature(long jarg1); - public final static native String Signature_id(long jarg1, Signature jarg1_); - public final static native String Signature_claimedSigningTime(long jarg1, Signature jarg1_); - public final static native String Signature_trustedSigningTime(long jarg1, Signature jarg1_); - public final static native String Signature_signatureMethod(long jarg1, Signature jarg1_); - public final static native void Signature_validate__SWIG_0(long jarg1, Signature jarg1_); - public final static native byte[] Signature_dataToSign(long jarg1, Signature jarg1_); - public final static native void Signature_setSignatureValue(long jarg1, Signature jarg1_, byte[] jarg2); - public final static native void Signature_extendSignatureProfile(long jarg1, Signature jarg1_, String jarg2); - public final static native String Signature_policy(long jarg1, Signature jarg1_); - public final static native String Signature_SPUri(long jarg1, Signature jarg1_); - public final static native String Signature_profile(long jarg1, Signature jarg1_); - public final static native String Signature_city(long jarg1, Signature jarg1_); - public final static native String Signature_stateOrProvince(long jarg1, Signature jarg1_); - public final static native String Signature_postalCode(long jarg1, Signature jarg1_); - public final static native String Signature_countryName(long jarg1, Signature jarg1_); - public final static native long Signature_signerRoles(long jarg1, Signature jarg1_); - public final static native String Signature_OCSPProducedAt(long jarg1, Signature jarg1_); - public final static native String Signature_TimeStampTime(long jarg1, Signature jarg1_); - public final static native String Signature_ArchiveTimeStampTime(long jarg1, Signature jarg1_); - public final static native String Signature_streetAddress(long jarg1, Signature jarg1_); - public final static native String Signature_signedBy(long jarg1, Signature jarg1_); - public final static native void Signature_validate__SWIG_1(long jarg1, Signature jarg1_, String jarg2); - public final static native byte[] Signature_messageImprint(long jarg1, Signature jarg1_); - public final static native byte[] Signature_signingCertificateDer(long jarg1, Signature jarg1_); - public final static native byte[] Signature_OCSPCertificateDer(long jarg1, Signature jarg1_); - public final static native byte[] Signature_TimeStampCertificateDer(long jarg1, Signature jarg1_); - public final static native byte[] Signature_ArchiveTimeStampCertificateDer(long jarg1, Signature jarg1_); - public final static native long new_XmlConf__SWIG_0(String jarg1, String jarg2); - public final static native long new_XmlConf__SWIG_1(String jarg1); - public final static native long new_XmlConf__SWIG_2(); - public final static native void delete_XmlConf(long jarg1); - public final static native long XmlConf_instance(); - public final static native int XmlConf_logLevel(long jarg1, XmlConf jarg1_); - public final static native String XmlConf_logFile(long jarg1, XmlConf jarg1_); - public final static native String XmlConf_PKCS11Driver(long jarg1, XmlConf jarg1_); - public final static native String XmlConf_proxyHost(long jarg1, XmlConf jarg1_); - public final static native String XmlConf_proxyPort(long jarg1, XmlConf jarg1_); - public final static native String XmlConf_proxyUser(long jarg1, XmlConf jarg1_); - public final static native String XmlConf_proxyPass(long jarg1, XmlConf jarg1_); - public final static native boolean XmlConf_proxyForceSSL(long jarg1, XmlConf jarg1_); - public final static native boolean XmlConf_proxyTunnelSSL(long jarg1, XmlConf jarg1_); - public final static native String XmlConf_digestUri(long jarg1, XmlConf jarg1_); - public final static native String XmlConf_signatureDigestUri(long jarg1, XmlConf jarg1_); - public final static native String XmlConf_ocsp(long jarg1, XmlConf jarg1_, String jarg2); - public final static native String XmlConf_TSUrl(long jarg1, XmlConf jarg1_); - public final static native String XmlConf_verifyServiceUri(long jarg1, XmlConf jarg1_); - public final static native String XmlConf_PKCS12Cert(long jarg1, XmlConf jarg1_); - public final static native String XmlConf_PKCS12Pass(long jarg1, XmlConf jarg1_); - public final static native boolean XmlConf_PKCS12Disable(long jarg1, XmlConf jarg1_); - public final static native boolean XmlConf_TSLAutoUpdate(long jarg1, XmlConf jarg1_); - public final static native String XmlConf_TSLCache(long jarg1, XmlConf jarg1_); - public final static native boolean XmlConf_TSLOnlineDigest(long jarg1, XmlConf jarg1_); - public final static native int XmlConf_TSLTimeOut(long jarg1, XmlConf jarg1_); - public final static native void XmlConf_setProxyHost(long jarg1, XmlConf jarg1_, String jarg2); - public final static native void XmlConf_setProxyPort(long jarg1, XmlConf jarg1_, String jarg2); - public final static native void XmlConf_setProxyUser(long jarg1, XmlConf jarg1_, String jarg2); - public final static native void XmlConf_setProxyPass(long jarg1, XmlConf jarg1_, String jarg2); - public final static native void XmlConf_setProxyTunnelSSL(long jarg1, XmlConf jarg1_, boolean jarg2); - public final static native void XmlConf_setPKCS12Cert(long jarg1, XmlConf jarg1_, String jarg2); - public final static native void XmlConf_setPKCS12Pass(long jarg1, XmlConf jarg1_, String jarg2); - public final static native void XmlConf_setPKCS12Disable(long jarg1, XmlConf jarg1_, boolean jarg2); - public final static native void XmlConf_setTSLOnlineDigest(long jarg1, XmlConf jarg1_, boolean jarg2); - public final static native void XmlConf_setTSLTimeOut(long jarg1, XmlConf jarg1_, int jarg2); - public final static native void XmlConf_setTSUrl(long jarg1, XmlConf jarg1_, String jarg2); - public final static native long new_XmlConfV2__SWIG_0(String jarg1, String jarg2); - public final static native long new_XmlConfV2__SWIG_1(String jarg1); - public final static native long new_XmlConfV2__SWIG_2(); - public final static native void delete_XmlConfV2(long jarg1); - public final static native long XmlConfV2_instance(); - public final static native int XmlConfV2_logLevel(long jarg1, XmlConfV2 jarg1_); - public final static native String XmlConfV2_logFile(long jarg1, XmlConfV2 jarg1_); - public final static native String XmlConfV2_PKCS11Driver(long jarg1, XmlConfV2 jarg1_); - public final static native String XmlConfV2_proxyHost(long jarg1, XmlConfV2 jarg1_); - public final static native String XmlConfV2_proxyPort(long jarg1, XmlConfV2 jarg1_); - public final static native String XmlConfV2_proxyUser(long jarg1, XmlConfV2 jarg1_); - public final static native String XmlConfV2_proxyPass(long jarg1, XmlConfV2 jarg1_); - public final static native boolean XmlConfV2_proxyForceSSL(long jarg1, XmlConfV2 jarg1_); - public final static native boolean XmlConfV2_proxyTunnelSSL(long jarg1, XmlConfV2 jarg1_); - public final static native String XmlConfV2_digestUri(long jarg1, XmlConfV2 jarg1_); - public final static native String XmlConfV2_signatureDigestUri(long jarg1, XmlConfV2 jarg1_); - public final static native String XmlConfV2_ocsp(long jarg1, XmlConfV2 jarg1_, String jarg2); - public final static native String XmlConfV2_TSUrl(long jarg1, XmlConfV2 jarg1_); - public final static native String XmlConfV2_verifyServiceUri(long jarg1, XmlConfV2 jarg1_); - public final static native String XmlConfV2_PKCS12Cert(long jarg1, XmlConfV2 jarg1_); - public final static native String XmlConfV2_PKCS12Pass(long jarg1, XmlConfV2 jarg1_); - public final static native boolean XmlConfV2_PKCS12Disable(long jarg1, XmlConfV2 jarg1_); - public final static native boolean XmlConfV2_TSLAutoUpdate(long jarg1, XmlConfV2 jarg1_); - public final static native String XmlConfV2_TSLCache(long jarg1, XmlConfV2 jarg1_); - public final static native boolean XmlConfV2_TSLOnlineDigest(long jarg1, XmlConfV2 jarg1_); - public final static native int XmlConfV2_TSLTimeOut(long jarg1, XmlConfV2 jarg1_); - public final static native void XmlConfV2_setProxyHost(long jarg1, XmlConfV2 jarg1_, String jarg2); - public final static native void XmlConfV2_setProxyPort(long jarg1, XmlConfV2 jarg1_, String jarg2); - public final static native void XmlConfV2_setProxyUser(long jarg1, XmlConfV2 jarg1_, String jarg2); - public final static native void XmlConfV2_setProxyPass(long jarg1, XmlConfV2 jarg1_, String jarg2); - public final static native void XmlConfV2_setProxyTunnelSSL(long jarg1, XmlConfV2 jarg1_, boolean jarg2); - public final static native void XmlConfV2_setPKCS12Cert(long jarg1, XmlConfV2 jarg1_, String jarg2); - public final static native void XmlConfV2_setPKCS12Pass(long jarg1, XmlConfV2 jarg1_, String jarg2); - public final static native void XmlConfV2_setPKCS12Disable(long jarg1, XmlConfV2 jarg1_, boolean jarg2); - public final static native void XmlConfV2_setTSLOnlineDigest(long jarg1, XmlConfV2 jarg1_, boolean jarg2); - public final static native void XmlConfV2_setTSLTimeOut(long jarg1, XmlConfV2 jarg1_, int jarg2); - public final static native void XmlConfV2_setTSUrl(long jarg1, XmlConfV2 jarg1_, String jarg2); - public final static native long new_XmlConfV3__SWIG_0(String jarg1, String jarg2); - public final static native long new_XmlConfV3__SWIG_1(String jarg1); - public final static native long new_XmlConfV3__SWIG_2(); - public final static native void delete_XmlConfV3(long jarg1); - public final static native long XmlConfV3_instance(); - public final static native int XmlConfV3_logLevel(long jarg1, XmlConfV3 jarg1_); - public final static native String XmlConfV3_logFile(long jarg1, XmlConfV3 jarg1_); - public final static native String XmlConfV3_PKCS11Driver(long jarg1, XmlConfV3 jarg1_); - public final static native String XmlConfV3_proxyHost(long jarg1, XmlConfV3 jarg1_); - public final static native String XmlConfV3_proxyPort(long jarg1, XmlConfV3 jarg1_); - public final static native String XmlConfV3_proxyUser(long jarg1, XmlConfV3 jarg1_); - public final static native String XmlConfV3_proxyPass(long jarg1, XmlConfV3 jarg1_); - public final static native boolean XmlConfV3_proxyForceSSL(long jarg1, XmlConfV3 jarg1_); - public final static native boolean XmlConfV3_proxyTunnelSSL(long jarg1, XmlConfV3 jarg1_); - public final static native String XmlConfV3_digestUri(long jarg1, XmlConfV3 jarg1_); - public final static native String XmlConfV3_signatureDigestUri(long jarg1, XmlConfV3 jarg1_); - public final static native String XmlConfV3_ocsp(long jarg1, XmlConfV3 jarg1_, String jarg2); - public final static native String XmlConfV3_TSUrl(long jarg1, XmlConfV3 jarg1_); - public final static native String XmlConfV3_verifyServiceUri(long jarg1, XmlConfV3 jarg1_); - public final static native String XmlConfV3_PKCS12Cert(long jarg1, XmlConfV3 jarg1_); - public final static native String XmlConfV3_PKCS12Pass(long jarg1, XmlConfV3 jarg1_); - public final static native boolean XmlConfV3_PKCS12Disable(long jarg1, XmlConfV3 jarg1_); - public final static native boolean XmlConfV3_TSLAutoUpdate(long jarg1, XmlConfV3 jarg1_); - public final static native String XmlConfV3_TSLCache(long jarg1, XmlConfV3 jarg1_); - public final static native boolean XmlConfV3_TSLOnlineDigest(long jarg1, XmlConfV3 jarg1_); - public final static native int XmlConfV3_TSLTimeOut(long jarg1, XmlConfV3 jarg1_); - public final static native void XmlConfV3_setProxyHost(long jarg1, XmlConfV3 jarg1_, String jarg2); - public final static native void XmlConfV3_setProxyPort(long jarg1, XmlConfV3 jarg1_, String jarg2); - public final static native void XmlConfV3_setProxyUser(long jarg1, XmlConfV3 jarg1_, String jarg2); - public final static native void XmlConfV3_setProxyPass(long jarg1, XmlConfV3 jarg1_, String jarg2); - public final static native void XmlConfV3_setProxyTunnelSSL(long jarg1, XmlConfV3 jarg1_, boolean jarg2); - public final static native void XmlConfV3_setPKCS12Cert(long jarg1, XmlConfV3 jarg1_, String jarg2); - public final static native void XmlConfV3_setPKCS12Pass(long jarg1, XmlConfV3 jarg1_, String jarg2); - public final static native void XmlConfV3_setPKCS12Disable(long jarg1, XmlConfV3 jarg1_, boolean jarg2); - public final static native void XmlConfV3_setTSLOnlineDigest(long jarg1, XmlConfV3 jarg1_, boolean jarg2); - public final static native void XmlConfV3_setTSLTimeOut(long jarg1, XmlConfV3 jarg1_, int jarg2); - public final static native void XmlConfV3_setTSUrl(long jarg1, XmlConfV3 jarg1_, String jarg2); - public final static native void delete_Signer(long jarg1); - public final static native byte[] Signer_sign(long jarg1, Signer jarg1_, String jarg2, byte[] jarg3); - public final static native String Signer_method(long jarg1, Signer jarg1_); - public final static native String Signer_profile(long jarg1, Signer jarg1_); - public final static native boolean Signer_usingENProfile(long jarg1, Signer jarg1_); - public final static native String Signer_city(long jarg1, Signer jarg1_); - public final static native String Signer_streetAddress(long jarg1, Signer jarg1_); - public final static native String Signer_stateOrProvince(long jarg1, Signer jarg1_); - public final static native String Signer_postalCode(long jarg1, Signer jarg1_); - public final static native String Signer_countryName(long jarg1, Signer jarg1_); - public final static native long Signer_signerRoles(long jarg1, Signer jarg1_); - public final static native void Signer_setMethod(long jarg1, Signer jarg1_, String jarg2); - public final static native void Signer_setProfile(long jarg1, Signer jarg1_, String jarg2); - public final static native void Signer_setENProfile(long jarg1, Signer jarg1_, boolean jarg2); - public final static native void Signer_setSignatureProductionPlace(long jarg1, Signer jarg1_, String jarg2, String jarg3, String jarg4, String jarg5); - public final static native void Signer_setSignatureProductionPlaceV2(long jarg1, Signer jarg1_, String jarg2, String jarg3, String jarg4, String jarg5, String jarg6); - public final static native void Signer_setSignerRoles(long jarg1, Signer jarg1_, long jarg2, StringVector jarg2_); - public final static native long new_PKCS12Signer(String jarg1, String jarg2); - public final static native void delete_PKCS12Signer(long jarg1); - public final static native long new_PKCS11Signer__SWIG_0(String jarg1); - public final static native long new_PKCS11Signer__SWIG_1(); - public final static native void delete_PKCS11Signer(long jarg1); - public final static native void PKCS11Signer_setPin(long jarg1, PKCS11Signer jarg1_, String jarg2); - public final static native long new_DigiDocConf(String jarg1); - public final static native long DigiDocConf_instance(); - public final static native int DigiDocConf_logLevel(long jarg1, DigiDocConf jarg1_); - public final static native String DigiDocConf_logFile(long jarg1, DigiDocConf jarg1_); - public final static native String DigiDocConf_ocsp(long jarg1, DigiDocConf jarg1_, String jarg2); - public final static native String DigiDocConf_PKCS12Cert(long jarg1, DigiDocConf jarg1_); - public final static native String DigiDocConf_TSLCache(long jarg1, DigiDocConf jarg1_); - public final static native String DigiDocConf_TSLUrl(long jarg1, DigiDocConf jarg1_); - public final static native String DigiDocConf_verifyServiceUri(long jarg1, DigiDocConf jarg1_); - public final static native String DigiDocConf_xsdPath(long jarg1, DigiDocConf jarg1_); - public final static native void DigiDocConf_setLogLevel(long jarg1, DigiDocConf jarg1_, int jarg2); - public final static native void DigiDocConf_setLogFile(long jarg1, DigiDocConf jarg1_, String jarg2); - public final static native void DigiDocConf_setTSLCert(long jarg1, DigiDocConf jarg1_, byte[] jarg2); - public final static native void DigiDocConf_addTSLCert(long jarg1, DigiDocConf jarg1_, byte[] jarg2); - public final static native void DigiDocConf_setTSLUrl(long jarg1, DigiDocConf jarg1_, String jarg2); - public final static native void DigiDocConf_setOCSPUrls(long jarg1, DigiDocConf jarg1_, long jarg2, StringMap jarg2_); - public final static native void DigiDocConf_setOCSPTMProfiles(long jarg1, DigiDocConf jarg1_, long jarg2, StringVector jarg2_); - public final static native void DigiDocConf_setVerifyServiceCert(long jarg1, DigiDocConf jarg1_, byte[] jarg2); - public final static native void DigiDocConf_setVerifyServiceUri(long jarg1, DigiDocConf jarg1_, String jarg2); - public final static native void delete_DigiDocConf(long jarg1); - public final static native void initializeLib__SWIG_0(String jarg1, String jarg2); - public final static native void initializeLib__SWIG_1(String jarg1, String jarg2, String jarg3); - public final static native long new_StringVector__SWIG_0(); - public final static native long new_StringVector__SWIG_1(long jarg1, StringVector jarg1_); - public final static native long StringVector_capacity(long jarg1, StringVector jarg1_); - public final static native void StringVector_reserve(long jarg1, StringVector jarg1_, long jarg2); - public final static native boolean StringVector_isEmpty(long jarg1, StringVector jarg1_); - public final static native void StringVector_clear(long jarg1, StringVector jarg1_); - public final static native long new_StringVector__SWIG_2(int jarg1, String jarg2); - public final static native int StringVector_doSize(long jarg1, StringVector jarg1_); - public final static native void StringVector_doAdd__SWIG_0(long jarg1, StringVector jarg1_, String jarg2); - public final static native void StringVector_doAdd__SWIG_1(long jarg1, StringVector jarg1_, int jarg2, String jarg3); - public final static native String StringVector_doRemove(long jarg1, StringVector jarg1_, int jarg2); - public final static native String StringVector_doGet(long jarg1, StringVector jarg1_, int jarg2); - public final static native String StringVector_doSet(long jarg1, StringVector jarg1_, int jarg2, String jarg3); - public final static native void StringVector_doRemoveRange(long jarg1, StringVector jarg1_, int jarg2, int jarg3); - public final static native void delete_StringVector(long jarg1); - public final static native long new_StringMap__SWIG_0(); - public final static native long new_StringMap__SWIG_1(long jarg1, StringMap jarg1_); - public final static native long StringMap_Iterator_getNextUnchecked(long jarg1, StringMap.Iterator jarg1_); - public final static native boolean StringMap_Iterator_isNot(long jarg1, StringMap.Iterator jarg1_, long jarg2, StringMap.Iterator jarg2_); - public final static native String StringMap_Iterator_getKey(long jarg1, StringMap.Iterator jarg1_); - public final static native String StringMap_Iterator_getValue(long jarg1, StringMap.Iterator jarg1_); - public final static native void StringMap_Iterator_setValue(long jarg1, StringMap.Iterator jarg1_, String jarg2); - public final static native void delete_StringMap_Iterator(long jarg1); - public final static native boolean StringMap_isEmpty(long jarg1, StringMap jarg1_); - public final static native void StringMap_clear(long jarg1, StringMap jarg1_); - public final static native long StringMap_find(long jarg1, StringMap jarg1_, String jarg2); - public final static native long StringMap_begin(long jarg1, StringMap jarg1_); - public final static native long StringMap_end(long jarg1, StringMap jarg1_); - public final static native int StringMap_sizeImpl(long jarg1, StringMap jarg1_); - public final static native boolean StringMap_containsImpl(long jarg1, StringMap jarg1_, String jarg2); - public final static native void StringMap_putUnchecked(long jarg1, StringMap jarg1_, String jarg2, String jarg3); - public final static native void StringMap_removeUnchecked(long jarg1, StringMap jarg1_, long jarg2, StringMap.Iterator jarg2_); - public final static native void delete_StringMap(long jarg1); - public final static native long new_DataFiles__SWIG_0(); - public final static native long new_DataFiles__SWIG_1(long jarg1, DataFiles jarg1_); - public final static native long DataFiles_capacity(long jarg1, DataFiles jarg1_); - public final static native void DataFiles_reserve(long jarg1, DataFiles jarg1_, long jarg2); - public final static native boolean DataFiles_isEmpty(long jarg1, DataFiles jarg1_); - public final static native void DataFiles_clear(long jarg1, DataFiles jarg1_); - public final static native long new_DataFiles__SWIG_2(int jarg1, long jarg2, DataFile jarg2_); - public final static native int DataFiles_doSize(long jarg1, DataFiles jarg1_); - public final static native void DataFiles_doAdd__SWIG_0(long jarg1, DataFiles jarg1_, long jarg2, DataFile jarg2_); - public final static native void DataFiles_doAdd__SWIG_1(long jarg1, DataFiles jarg1_, int jarg2, long jarg3, DataFile jarg3_); - public final static native long DataFiles_doRemove(long jarg1, DataFiles jarg1_, int jarg2); - public final static native long DataFiles_doGet(long jarg1, DataFiles jarg1_, int jarg2); - public final static native long DataFiles_doSet(long jarg1, DataFiles jarg1_, int jarg2, long jarg3, DataFile jarg3_); - public final static native void DataFiles_doRemoveRange(long jarg1, DataFiles jarg1_, int jarg2, int jarg3); - public final static native void delete_DataFiles(long jarg1); - public final static native long new_Signatures__SWIG_0(); - public final static native long new_Signatures__SWIG_1(long jarg1, Signatures jarg1_); - public final static native long Signatures_capacity(long jarg1, Signatures jarg1_); - public final static native void Signatures_reserve(long jarg1, Signatures jarg1_, long jarg2); - public final static native boolean Signatures_isEmpty(long jarg1, Signatures jarg1_); - public final static native void Signatures_clear(long jarg1, Signatures jarg1_); - public final static native long new_Signatures__SWIG_2(int jarg1, long jarg2, Signature jarg2_); - public final static native int Signatures_doSize(long jarg1, Signatures jarg1_); - public final static native void Signatures_doAdd__SWIG_0(long jarg1, Signatures jarg1_, long jarg2, Signature jarg2_); - public final static native void Signatures_doAdd__SWIG_1(long jarg1, Signatures jarg1_, int jarg2, long jarg3, Signature jarg3_); - public final static native long Signatures_doRemove(long jarg1, Signatures jarg1_, int jarg2); - public final static native long Signatures_doGet(long jarg1, Signatures jarg1_, int jarg2); - public final static native long Signatures_doSet(long jarg1, Signatures jarg1_, int jarg2, long jarg3, Signature jarg3_); - public final static native void Signatures_doRemoveRange(long jarg1, Signatures jarg1_, int jarg2, int jarg3); - public final static native void delete_Signatures(long jarg1); - public final static native long ConfV2_SWIGUpcast(long jarg1); - public final static native long ConfV3_SWIGUpcast(long jarg1); - public final static native long XmlConf_SWIGUpcast(long jarg1); - public final static native long XmlConfV2_SWIGUpcast(long jarg1); - public final static native long XmlConfV3_SWIGUpcast(long jarg1); - public final static native long PKCS12Signer_SWIGUpcast(long jarg1); - public final static native long PKCS11Signer_SWIGUpcast(long jarg1); - public final static native long DigiDocConf_SWIGUpcast(long jarg1); -} diff --git a/examples/android/build.gradle b/examples/android/build.gradle index 0ad92e93d..a67529685 100644 --- a/examples/android/build.gradle +++ b/examples/android/build.gradle @@ -1,18 +1,11 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { - jcenter() google() + mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:4.1.3' - } -} - -allprojects { - repositories { - jcenter() - google() + classpath 'com.android.tools.build:gradle:7.0.1' } } diff --git a/examples/android/gradle.properties b/examples/android/gradle.properties index 5465fec0e..52f5917cb 100644 --- a/examples/android/gradle.properties +++ b/examples/android/gradle.properties @@ -1,2 +1,19 @@ -android.enableJetifier=true -android.useAndroidX=true \ No newline at end of file +# Project-wide Gradle settings. +# IDE (e.g. Android Studio) users: +# Gradle settings configured through the IDE *will override* +# any settings specified in this file. +# For more details on how to configure your build environment visit +# http://www.gradle.org/docs/current/userguide/build_environment.html +# Specifies the JVM arguments used for the daemon process. +# The setting is particularly useful for tweaking memory settings. +org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 +# When configured, Gradle will run in incubating parallel mode. +# This option should only be used with decoupled projects. More details, visit +# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects +# org.gradle.parallel=true +# AndroidX package structure to make it clearer which packages are bundled with the +# Android operating system, and which are packaged with your app"s APK +# https://developer.android.com/topic/libraries/support-library/androidx-rn +android.useAndroidX=true +# Automatically convert third-party libraries to use AndroidX +android.enableJetifier=true \ No newline at end of file diff --git a/examples/android/gradle/wrapper/gradle-wrapper.properties b/examples/android/gradle/wrapper/gradle-wrapper.properties index 9d2abac7c..78bc2e558 100644 --- a/examples/android/gradle/wrapper/gradle-wrapper.properties +++ b/examples/android/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-all.zip diff --git a/examples/android/settings.gradle b/examples/android/settings.gradle index e7b4def49..7e72ac4fe 100644 --- a/examples/android/settings.gradle +++ b/examples/android/settings.gradle @@ -1 +1,8 @@ +dependencyResolutionManagement { + repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) + repositories { + google() + mavenCentral() + } +} include ':app' diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 040c828c6..a9b091ed8 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -308,6 +308,8 @@ if(WIN32) elseif(APPLE) target_link_libraries(digidocpp PUBLIC "-framework CoreFoundation") elseif(ANDROID) + find_package(Iconv) + target_link_libraries(digidocpp PRIVATE Iconv::Iconv) set_property(SOURCE minizip/ioapi.c APPEND PROPERTY COMPILE_DEFINITIONS IOAPI_NO_64) set_property(TARGET minizip digidocpp_priv digidocpp APPEND PROPERTY COMPILE_DEFINITIONS __ANDROID_API__=${CMAKE_SYSTEM_VERSION}) endif()