Example #1
0
        static void n_ShowMessage_Ljava_lang_String_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::Com.Jcraft.Jsch.IUserInfo __this = global::Java.Lang.Object.GetObject <global::Com.Jcraft.Jsch.IUserInfo> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            string p0 = JNIEnv.GetString(native_p0, JniHandleOwnership.DoNotTransfer);

            __this.ShowMessage(p0);
        }
 static void n_Add_Lcom_jcraft_jsch_HostKey_Lcom_jcraft_jsch_UserInfo_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1)
 {
     global::Com.Jcraft.Jsch.KnownHosts __this = global::Java.Lang.Object.GetObject <global::Com.Jcraft.Jsch.KnownHosts> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Jcraft.Jsch.HostKey    p0     = global::Java.Lang.Object.GetObject <global::Com.Jcraft.Jsch.HostKey> (native_p0, JniHandleOwnership.DoNotTransfer);
     global::Com.Jcraft.Jsch.IUserInfo  p1     = (global::Com.Jcraft.Jsch.IUserInfo)global::Java.Lang.Object.GetObject <global::Com.Jcraft.Jsch.IUserInfo> (native_p1, JniHandleOwnership.DoNotTransfer);
     __this.Add(p0, p1);
 }
Example #3
0
        static bool n_PromptYesNo_Ljava_lang_String_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::Com.Jcraft.Jsch.IUserInfo __this = global::Java.Lang.Object.GetObject <global::Com.Jcraft.Jsch.IUserInfo> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            string p0    = JNIEnv.GetString(native_p0, JniHandleOwnership.DoNotTransfer);
            bool   __ret = __this.PromptYesNo(p0);

            return(__ret);
        }
 public void Add(global::Com.Jcraft.Jsch.HostKey p0, global::Com.Jcraft.Jsch.IUserInfo p1)
 {
     if (id_add_Lcom_jcraft_jsch_HostKey_Lcom_jcraft_jsch_UserInfo_ == IntPtr.Zero)
     {
         id_add_Lcom_jcraft_jsch_HostKey_Lcom_jcraft_jsch_UserInfo_ = JNIEnv.GetMethodID(class_ref, "add", "(Lcom/jcraft/jsch/HostKey;Lcom/jcraft/jsch/UserInfo;)V");
     }
     JNIEnv.CallVoidMethod(Handle, id_add_Lcom_jcraft_jsch_HostKey_Lcom_jcraft_jsch_UserInfo_, new JValue(p0), new JValue(p1));
 }
        public virtual void Add(global::Com.Jcraft.Jsch.HostKey p0, global::Com.Jcraft.Jsch.IUserInfo p1)
        {
            if (id_add_Lcom_jcraft_jsch_HostKey_Lcom_jcraft_jsch_UserInfo_ == IntPtr.Zero)
            {
                id_add_Lcom_jcraft_jsch_HostKey_Lcom_jcraft_jsch_UserInfo_ = JNIEnv.GetMethodID(class_ref, "add", "(Lcom/jcraft/jsch/HostKey;Lcom/jcraft/jsch/UserInfo;)V");
            }

            if (GetType() == ThresholdType)
            {
                JNIEnv.CallVoidMethod(Handle, id_add_Lcom_jcraft_jsch_HostKey_Lcom_jcraft_jsch_UserInfo_, new JValue(p0), new JValue(p1));
            }
            else
            {
                JNIEnv.CallNonvirtualVoidMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "add", "(Lcom/jcraft/jsch/HostKey;Lcom/jcraft/jsch/UserInfo;)V"), new JValue(p0), new JValue(p1));
            }
        }
Example #6
0
 static IntPtr n_GetPassphrase(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Jcraft.Jsch.IUserInfo __this = global::Java.Lang.Object.GetObject <global::Com.Jcraft.Jsch.IUserInfo> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.NewString(__this.Passphrase));
 }