static IntPtr n_GetBytes_Landroid_content_Context_Ljava_lang_String_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1)
        {
            global::Anet.Channel.Security.ISecurity __this = global::Java.Lang.Object.GetObject <global::Anet.Channel.Security.ISecurity> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Android.Content.Context         p0     = global::Java.Lang.Object.GetObject <global::Android.Content.Context> (native_p0, JniHandleOwnership.DoNotTransfer);
            string p1    = JNIEnv.GetString(native_p1, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.NewArray(__this.GetBytes(p0, p1));

            return(__ret);
        }
Exemplo n.º 2
0
        public unsafe global::Anet.Channel.Security.ISecurity CreateNonSecurity(string p0)
        {
            if (id_createNonSecurity_Ljava_lang_String_ == IntPtr.Zero)
            {
                id_createNonSecurity_Ljava_lang_String_ = JNIEnv.GetMethodID(class_ref, "createNonSecurity", "(Ljava/lang/String;)Lanet/channel/security/ISecurity;");
            }
            IntPtr  native_p0 = JNIEnv.NewString(p0);
            JValue *__args    = stackalloc JValue [1];

            __args [0] = new JValue(native_p0);
            global::Anet.Channel.Security.ISecurity __ret = global::Java.Lang.Object.GetObject <global::Anet.Channel.Security.ISecurity> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_createNonSecurity_Ljava_lang_String_, __args), JniHandleOwnership.TransferLocalRef);
            JNIEnv.DeleteLocalRef(native_p0);
            return(__ret);
        }
        static bool n_SaveBytes_Landroid_content_Context_Ljava_lang_String_arrayB(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1, IntPtr native_p2)
        {
            global::Anet.Channel.Security.ISecurity __this = global::Java.Lang.Object.GetObject <global::Anet.Channel.Security.ISecurity> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Android.Content.Context         p0     = global::Java.Lang.Object.GetObject <global::Android.Content.Context> (native_p0, JniHandleOwnership.DoNotTransfer);
            string p1 = JNIEnv.GetString(native_p1, JniHandleOwnership.DoNotTransfer);

            byte[] p2    = (byte[])JNIEnv.GetArray(native_p2, JniHandleOwnership.DoNotTransfer, typeof(byte));
            bool   __ret = __this.SaveBytes(p0, p1, p2);

            if (p2 != null)
            {
                JNIEnv.CopyArray(p2, native_p2);
            }
            return(__ret);
        }
        static IntPtr n_Decrypt_Landroid_content_Context_Ljava_lang_String_Ljava_lang_String_arrayB(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1, IntPtr native_p2, IntPtr native_p3)
        {
            global::Anet.Channel.Security.ISecurity __this = global::Java.Lang.Object.GetObject <global::Anet.Channel.Security.ISecurity> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Android.Content.Context         p0     = global::Java.Lang.Object.GetObject <global::Android.Content.Context> (native_p0, JniHandleOwnership.DoNotTransfer);
            string p1 = JNIEnv.GetString(native_p1, JniHandleOwnership.DoNotTransfer);
            string p2 = JNIEnv.GetString(native_p2, JniHandleOwnership.DoNotTransfer);

            byte[] p3    = (byte[])JNIEnv.GetArray(native_p3, JniHandleOwnership.DoNotTransfer, typeof(byte));
            IntPtr __ret = JNIEnv.NewArray(__this.Decrypt(p0, p1, p2, p3));

            if (p3 != null)
            {
                JNIEnv.CopyArray(p3, native_p3);
            }
            return(__ret);
        }
 static bool n_IsSecOff(IntPtr jnienv, IntPtr native__this)
 {
     global::Anet.Channel.Security.ISecurity __this = global::Java.Lang.Object.GetObject <global::Anet.Channel.Security.ISecurity> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.IsSecOff);
 }