protected virtual unsafe void CreateBuffers(global::Javax.Net.Ssl.ISSLSession session)
        {
            const string __id = "createBuffers.(Ljavax/net/ssl/SSLSession;)V";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((session == null) ? IntPtr.Zero : ((global::Java.Lang.Object)session).Handle);
                _members.InstanceMethods.InvokeVirtualVoidMethod(__id, this, __args);
            } finally {
            }
        }
예제 #2
0
        public static unsafe global::Okhttp3.Handshake Get(global::Javax.Net.Ssl.ISSLSession session)
        {
            const string __id = "get.(Ljavax/net/ssl/SSLSession;)Lokhttp3/Handshake;";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((session == null) ? IntPtr.Zero : ((global::Java.Lang.Object)session).Handle);
                var __rm = _members.StaticMethods.InvokeObjectMethod(__id, __args);
                return(global::Java.Lang.Object.GetObject <global::Okhttp3.Handshake> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
            }
        }
        public unsafe bool Verify(string host, global::Javax.Net.Ssl.ISSLSession session)
        {
            const string __id        = "verify.(Ljava/lang/String;Ljavax/net/ssl/SSLSession;)Z";
            IntPtr       native_host = JNIEnv.NewString(host);

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [2];
                __args [0] = new JniArgumentValue(native_host);
                __args [1] = new JniArgumentValue((session == null) ? IntPtr.Zero : ((global::Java.Lang.Object)session).Handle);
                var __rm = _members.InstanceMethods.InvokeAbstractBooleanMethod(__id, this, __args);
                return(__rm);
            } finally {
                JNIEnv.DeleteLocalRef(native_host);
            }
        }
예제 #4
0
 public bool Verify(string @string, global::Javax.Net.Ssl.ISSLSession sSLSession)                         /* MethodBuilder.Create */
 {
     return(default(bool));
 }
 static void n_CreateBuffers_Ljavax_net_ssl_SSLSession_(IntPtr jnienv, IntPtr native__this, IntPtr native_session)
 {
     global::Com.Clevertap.Android.Sdk.Java_websocket.SSLSocketChannel2 __this = global::Java.Lang.Object.GetObject <global::Com.Clevertap.Android.Sdk.Java_websocket.SSLSocketChannel2> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Javax.Net.Ssl.ISSLSession session = (global::Javax.Net.Ssl.ISSLSession)global::Java.Lang.Object.GetObject <global::Javax.Net.Ssl.ISSLSession> (native_session, JniHandleOwnership.DoNotTransfer);
     __this.CreateBuffers(session);
 }