s.fisco-bcos-tars-sdk.3.5.0.source-code.KeyFactory Maven / Gradle / Ivy
The newest version!
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (https://www.swig.org).
* Version 4.1.1
*
* Do not make changes to this file unless you know what you are doing - modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package org.fisco.bcos.sdk.tars;
public class KeyFactory {
private transient long swigCPtr;
private transient boolean swigCMemOwn;
protected KeyFactory(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(KeyFactory obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
protected void swigSetCMemOwn(boolean own) {
swigCMemOwn = own;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
bcosJNI.delete_KeyFactory(swigCPtr);
}
swigCPtr = 0;
}
}
public SWIGTYPE_p_std__shared_ptrT_KeyInterface_t createKey(SWIGTYPE_p_bcos__bytesConstRef _keyData) {
return new SWIGTYPE_p_std__shared_ptrT_KeyInterface_t(bcosJNI.KeyFactory_createKey__SWIG_0(swigCPtr, this, SWIGTYPE_p_bcos__bytesConstRef.getCPtr(_keyData)), true);
}
public SWIGTYPE_p_std__shared_ptrT_KeyInterface_t createKey(SWIGTYPE_p_std__vectorT_unsigned_char_t _keyData) {
return new SWIGTYPE_p_std__shared_ptrT_KeyInterface_t(bcosJNI.KeyFactory_createKey__SWIG_1(swigCPtr, this, SWIGTYPE_p_std__vectorT_unsigned_char_t.getCPtr(_keyData)), true);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy