static IntPtr n_FindByIssuerAndSignature_Ljava_security_cert_X509Certificate_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::Okhttp3.Internal.Tls.TrustRootIndex __this = global::Java.Lang.Object.GetObject <global::Okhttp3.Internal.Tls.TrustRootIndex> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Java.Security.Cert.X509Certificate  p0     = global::Java.Lang.Object.GetObject <global::Java.Security.Cert.X509Certificate> (native_p0, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.FindByIssuerAndSignature(p0));

            return(__ret);
        }
        public unsafe global::Java.Security.Cert.X509Certificate FindByIssuerAndSignature(global::Java.Security.Cert.X509Certificate p0)
        {
            if (id_findByIssuerAndSignature_Ljava_security_cert_X509Certificate_ == IntPtr.Zero)
            {
                id_findByIssuerAndSignature_Ljava_security_cert_X509Certificate_ = JNIEnv.GetMethodID(class_ref, "findByIssuerAndSignature", "(Ljava/security/cert/X509Certificate;)Ljava/security/cert/X509Certificate;");
            }
            JValue *__args = stackalloc JValue [1];

            __args [0] = new JValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
            global::Java.Security.Cert.X509Certificate __ret = global::Java.Lang.Object.GetObject <global::Java.Security.Cert.X509Certificate> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_findByIssuerAndSignature_Ljava_security_cert_X509Certificate_, __args), JniHandleOwnership.TransferLocalRef);
            return(__ret);
        }
コード例 #3
0
 public unsafe void 鷭(global::Java.Security.Cert.X509Certificate p0)
 {
     if (id_鷭_Ljava_security_cert_X509Certificate_ == IntPtr.Zero)
     {
         id_鷭_Ljava_security_cert_X509Certificate_ = JNIEnv.GetMethodID(class_ref, "鷭", "(Ljava/security/cert/X509Certificate;)V");
     }
     try {
         JValue *__args = stackalloc JValue [1];
         __args [0] = new JValue(p0);
         JNIEnv.CallVoidMethod(Handle, id_鷭_Ljava_security_cert_X509Certificate_, __args);
     } finally {
     }
 }
        public unsafe bool Verify(string host, global::Java.Security.Cert.X509Certificate certificate)
        {
            const string __id        = "verify.(Ljava/lang/String;Ljava/security/cert/X509Certificate;)Z";
            IntPtr       native_host = JNIEnv.NewString(host);

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [2];
                __args [0] = new JniArgumentValue(native_host);
                __args [1] = new JniArgumentValue((certificate == null) ? IntPtr.Zero : ((global::Java.Lang.Object)certificate).Handle);
                var __rm = _members.InstanceMethods.InvokeAbstractBooleanMethod(__id, this, __args);
                return(__rm);
            } finally {
                JNIEnv.DeleteLocalRef(native_host);
            }
        }
コード例 #5
0
 public void Verify(string @string, global::Java.Security.Cert.X509Certificate x509Certificate)                         /* MethodBuilder.Create */
 {
 }
コード例 #6
0
 public static string[] GetDNSSubjectAlts(global::Java.Security.Cert.X509Certificate cert)                         /* MethodBuilder.Create */
 {
     return(default(string[]));
 }
コード例 #7
0
ファイル: Android.Net.Http.cs プロジェクト: slagusev/api
 public SslError(int error, global::Java.Security.Cert.X509Certificate certificate)                         /* MethodBuilder.Create */
 {
 }
コード例 #8
0
ファイル: Android.Net.Http.cs プロジェクト: slagusev/api
 public SslCertificate(global::Java.Security.Cert.X509Certificate certificate)                         /* MethodBuilder.Create */
 {
 }
            public override unsafe global::Java.Security.Cert.X509Certificate FindByIssuerAndSignature(global::Java.Security.Cert.X509Certificate cert)
            {
                const string __id = "findByIssuerAndSignature.(Ljava/security/cert/X509Certificate;)Ljava/security/cert/X509Certificate;";

                try {
                    JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                    __args [0] = new JniArgumentValue((cert == null) ? IntPtr.Zero : ((global::Java.Lang.Object)cert).Handle);
                    var __rm = _members.InstanceMethods.InvokeAbstractObjectMethod(__id, this, __args);
                    return(global::Java.Lang.Object.GetObject <global::Java.Security.Cert.X509Certificate> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
                } finally {
                }
            }
 public abstract global::Java.Security.Cert.X509Certificate FindByIssuerAndSignature(global::Java.Security.Cert.X509Certificate p0);
            public virtual unsafe global::Com.Microsoft.Identity.Common.Internal.Providers.Keys.CertificateCredential.CertificateCredentialBuilder Certificate(global::Java.Security.Cert.X509Certificate certificate)
            {
                const string __id = "certificate.(Ljava/security/cert/X509Certificate;)Lcom/microsoft/identity/common/internal/providers/keys/CertificateCredential$CertificateCredentialBuilder;";

                try {
                    JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                    __args [0] = new JniArgumentValue((certificate == null) ? IntPtr.Zero : ((global::Java.Lang.Object)certificate).Handle);
                    var __rm = _members.InstanceMethods.InvokeVirtualObjectMethod(__id, this, __args);
                    return(global::Java.Lang.Object.GetObject <global::Com.Microsoft.Identity.Common.Internal.Providers.Keys.CertificateCredential.CertificateCredentialBuilder> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
                } finally {
                    global::System.GC.KeepAlive(certificate);
                }
            }
コード例 #12
0
 public SslError(int int32, global::Java.Security.Cert.X509Certificate x509Certificate, string @string)                         /* MethodBuilder.Create */
 {
 }
        public static unsafe global::System.Collections.Generic.IList <string> AllSubjectAltNames(global::Java.Security.Cert.X509Certificate certificate)
        {
            const string __id = "allSubjectAltNames.(Ljava/security/cert/X509Certificate;)Ljava/util/List;";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((certificate == null) ? IntPtr.Zero : ((global::Java.Lang.Object)certificate).Handle);
                var __rm = _members.StaticMethods.InvokeObjectMethod(__id, __args);
                return(global::Android.Runtime.JavaList <string> .FromJniHandle(__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
            }
        }
コード例 #14
0
        public virtual unsafe string GenerateSignedJWT(string nonce, string audience, global::Java.Security.Interfaces.IRSAPrivateKey privateKey, global::Java.Security.Interfaces.IRSAPublicKey pubKey, global::Java.Security.Cert.X509Certificate cert)
        {
            const string __id            = "generateSignedJWT.(Ljava/lang/String;Ljava/lang/String;Ljava/security/interfaces/RSAPrivateKey;Ljava/security/interfaces/RSAPublicKey;Ljava/security/cert/X509Certificate;)Ljava/lang/String;";
            IntPtr       native_nonce    = JNIEnv.NewString(nonce);
            IntPtr       native_audience = JNIEnv.NewString(audience);

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [5];
                __args [0] = new JniArgumentValue(native_nonce);
                __args [1] = new JniArgumentValue(native_audience);
                __args [2] = new JniArgumentValue((privateKey == null) ? IntPtr.Zero : ((global::Java.Lang.Object)privateKey).Handle);
                __args [3] = new JniArgumentValue((pubKey == null) ? IntPtr.Zero : ((global::Java.Lang.Object)pubKey).Handle);
                __args [4] = new JniArgumentValue((cert == null) ? IntPtr.Zero : ((global::Java.Lang.Object)cert).Handle);
                var __rm = _members.InstanceMethods.InvokeVirtualObjectMethod(__id, this, __args);
                return(JNIEnv.GetString(__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
                JNIEnv.DeleteLocalRef(native_nonce);
                JNIEnv.DeleteLocalRef(native_audience);
                global::System.GC.KeepAlive(privateKey);
                global::System.GC.KeepAlive(pubKey);
                global::System.GC.KeepAlive(cert);
            }
        }
コード例 #15
0
 public static string[] GetCNs(global::Java.Security.Cert.X509Certificate x509Certificate)                         /* MethodBuilder.Create */
 {
     return(default(string[]));
 }