public virtual IX509Store GetCrls() { Asn1Set certificates = originatorInfo.Certificates; if (certificates != null) { global::System.Collections.IList list = Platform.CreateArrayList(certificates.Count); { global::System.Collections.IEnumerator enumerator = certificates.GetEnumerator(); try { while (enumerator.MoveNext()) { Asn1Encodable asn1Encodable = (Asn1Encodable)enumerator.get_Current(); Asn1Object asn1Object = asn1Encodable.ToAsn1Object(); if (asn1Object is Asn1Sequence) { list.Add((object)new X509Crl(CertificateList.GetInstance(asn1Object))); } } } finally { global::System.IDisposable disposable = enumerator as global::System.IDisposable; if (disposable != null) { disposable.Dispose(); } } } return(X509StoreFactory.Create("CRL/Collection", new X509CollectionStoreParameters((global::System.Collections.ICollection)list))); } return(X509StoreFactory.Create("CRL/Collection", new X509CollectionStoreParameters((global::System.Collections.ICollection)Platform.CreateArrayList()))); }
protected virtual unsafe global::System.Collections.IList ToItems(global::System.Collections.IList p0) { if (id_toItems_Ljava_util_List_ == IntPtr.Zero) { id_toItems_Ljava_util_List_ = JNIEnv.GetMethodID(class_ref, "toItems", "(Ljava/util/List;)Ljava/util/List;"); } IntPtr native_p0 = global::Android.Runtime.JavaList.ToLocalJniHandle(p0); try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(native_p0); global::System.Collections.IList __ret; if (GetType() == ThresholdType) { __ret = global::Android.Runtime.JavaList.FromJniHandle(JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_toItems_Ljava_util_List_, __args), JniHandleOwnership.TransferLocalRef); } else { __ret = global::Android.Runtime.JavaList.FromJniHandle(JNIEnv.CallNonvirtualObjectMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "toItems", "(Ljava/util/List;)Ljava/util/List;"), __args), JniHandleOwnership.TransferLocalRef); } return(__ret); } finally { JNIEnv.DeleteLocalRef(native_p0); } }
public static CertificateRequest Parse(TlsContext context, Stream input) { //IL_0047: Unknown result type (might be due to invalid IL or missing references) //IL_004e: Expected O, but got Unknown int num = TlsUtilities.ReadUint8(input); byte[] array = new byte[num]; for (int i = 0; i < num; i++) { array[i] = TlsUtilities.ReadUint8(input); } global::System.Collections.IList supportedSignatureAlgorithms = null; if (TlsUtilities.IsTlsV12(context)) { supportedSignatureAlgorithms = TlsUtilities.ParseSupportedSignatureAlgorithms(allowAnonymous: false, input); } global::System.Collections.IList list = Platform.CreateArrayList(); byte[] array2 = TlsUtilities.ReadOpaque16(input); MemoryStream val = new MemoryStream(array2, false); while (((Stream)val).get_Position() < ((Stream)val).get_Length()) { byte[] encoding = TlsUtilities.ReadOpaque16((Stream)(object)val); Asn1Object obj = TlsUtilities.ReadDerObject(encoding); list.Add((object)X509Name.GetInstance(obj)); } return(new CertificateRequest(array, supportedSignatureAlgorithms, list)); }
public TlsECDHKeyExchange(int keyExchange, global::System.Collections.IList supportedSignatureAlgorithms, int[] namedCurves, byte[] clientECPointFormats, byte[] serverECPointFormats) : base(keyExchange, supportedSignatureAlgorithms) { //IL_004d: Unknown result type (might be due to invalid IL or missing references) switch (keyExchange) { case 19: mTlsSigner = new TlsRsaSigner(); break; case 17: mTlsSigner = new TlsECDsaSigner(); break; case 16: case 18: mTlsSigner = null; break; default: throw new InvalidOperationException("unsupported key exchange algorithm"); } mNamedCurves = namedCurves; mClientECPointFormats = clientECPointFormats; mServerECPointFormats = serverECPointFormats; }
public static OcspStatusRequest Parse(Stream input) { //IL_001b: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Expected O, but got Unknown global::System.Collections.IList list = Platform.CreateArrayList(); int num = TlsUtilities.ReadUint16(input); if (num > 0) { byte[] array = TlsUtilities.ReadFully(num, input); MemoryStream val = new MemoryStream(array, false); do { byte[] encoding = TlsUtilities.ReadOpaque16((Stream)(object)val); ResponderID instance = ResponderID.GetInstance(TlsUtilities.ReadDerObject(encoding)); list.Add((object)instance); }while (((Stream)val).get_Position() < ((Stream)val).get_Length()); } X509Extensions requestExtensions = null; int num2 = TlsUtilities.ReadUint16(input); if (num2 > 0) { byte[] encoding2 = TlsUtilities.ReadFully(num2, input); requestExtensions = X509Extensions.GetInstance(TlsUtilities.ReadDerObject(encoding2)); } return(new OcspStatusRequest(list, requestExtensions)); }
public virtual void SetCertPathCheckers(global::System.Collections.IList checkers) { certPathCheckers = Platform.CreateArrayList(); if (checkers == null) { return; } global::System.Collections.IEnumerator enumerator = ((global::System.Collections.IEnumerable)checkers).GetEnumerator(); try { while (enumerator.MoveNext()) { PkixCertPathChecker pkixCertPathChecker = (PkixCertPathChecker)enumerator.get_Current(); certPathCheckers.Add(pkixCertPathChecker.Clone()); } } finally { global::System.IDisposable disposable = enumerator as global::System.IDisposable; if (disposable != null) { disposable.Dispose(); } } }
public X509Name(global::System.Collections.IList ordering, IDictionary attributes, X509NameEntryConverter converter) { //IL_005e: Unknown result type (might be due to invalid IL or missing references) this.converter = converter; global::System.Collections.IEnumerator enumerator = ((global::System.Collections.IEnumerable)ordering).GetEnumerator(); try { while (enumerator.MoveNext()) { DerObjectIdentifier derObjectIdentifier = (DerObjectIdentifier)enumerator.get_Current(); object obj = attributes.get_Item((object)derObjectIdentifier); if (obj == null) { throw new ArgumentException(string.Concat((object)"No attribute for object id - ", (object)derObjectIdentifier, (object)" - passed to distinguished name")); } this.ordering.Add((object)derObjectIdentifier); added.Add((object)false); values.Add(obj); } } finally { global::System.IDisposable disposable = enumerator as global::System.IDisposable; if (disposable != null) { disposable.Dispose(); } } }
private DerObjectIdentifier[] GetExtensionOids(bool isCritical) { global::System.Collections.IList list = Platform.CreateArrayList(); global::System.Collections.IEnumerator enumerator = ((global::System.Collections.IEnumerable)ordering).GetEnumerator(); try { while (enumerator.MoveNext()) { DerObjectIdentifier derObjectIdentifier = (DerObjectIdentifier)enumerator.get_Current(); X509Extension x509Extension = (X509Extension)extensions.get_Item((object)derObjectIdentifier); if (x509Extension.IsCritical == isCritical) { list.Add((object)derObjectIdentifier); } } } finally { global::System.IDisposable disposable = enumerator as global::System.IDisposable; if (disposable != null) { disposable.Dispose(); } } return(ToOidArray(list)); }
public virtual void Init(bool forEncryption, ICipherParameters parameters) { this.forEncryption = forEncryption; if (parameters is ParametersWithRandom) { parameters = ((ParametersWithRandom)parameters).Parameters; } key = (NaccacheSternKeyParameters)parameters; if (this.forEncryption) { return; } NaccacheSternPrivateKeyParameters naccacheSternPrivateKeyParameters = (NaccacheSternPrivateKeyParameters)key; global::System.Collections.IList smallPrimesList = naccacheSternPrivateKeyParameters.SmallPrimesList; lookup = new global::System.Collections.IList[((global::System.Collections.ICollection)smallPrimesList).get_Count()]; for (int i = 0; i < ((global::System.Collections.ICollection)smallPrimesList).get_Count(); i++) { BigInteger bigInteger = (BigInteger)smallPrimesList.get_Item(i); int intValue = bigInteger.IntValue; lookup[i] = Platform.CreateArrayList(intValue); lookup[i].Add((object)BigInteger.One); BigInteger bigInteger2 = BigInteger.Zero; for (int j = 1; j < intValue; j++) { bigInteger2 = bigInteger2.Add(naccacheSternPrivateKeyParameters.PhiN); BigInteger e = bigInteger2.Divide(bigInteger); lookup[i].Add((object)naccacheSternPrivateKeyParameters.G.ModPow(e, naccacheSternPrivateKeyParameters.Modulus)); } } }
private X509Extensions(Asn1Sequence seq) { //IL_0069: Unknown result type (might be due to invalid IL or missing references) ordering = Platform.CreateArrayList(); global::System.Collections.IEnumerator enumerator = seq.GetEnumerator(); try { while (enumerator.MoveNext()) { Asn1Encodable asn1Encodable = (Asn1Encodable)enumerator.get_Current(); Asn1Sequence instance = Asn1Sequence.GetInstance(asn1Encodable.ToAsn1Object()); if (instance.Count < 2 || instance.Count > 3) { throw new ArgumentException(string.Concat((object)"Bad sequence size: ", (object)instance.Count)); } DerObjectIdentifier instance2 = DerObjectIdentifier.GetInstance(instance[0].ToAsn1Object()); bool critical = instance.Count == 3 && DerBoolean.GetInstance(instance[1].ToAsn1Object()).IsTrue; Asn1OctetString instance3 = Asn1OctetString.GetInstance(instance[instance.Count - 1].ToAsn1Object()); extensions.Add((object)instance2, (object)new X509Extension(critical, instance3)); ordering.Add((object)instance2); } } finally { global::System.IDisposable disposable = enumerator as global::System.IDisposable; if (disposable != null) { disposable.Dispose(); } } }
public X509Extensions(ArrayList ordering, Hashtable extensions) { if (ordering == null) { this.ordering = Platform.CreateArrayList(extensions.get_Keys()); } else { this.ordering = Platform.CreateArrayList((global::System.Collections.ICollection)ordering); } global::System.Collections.IEnumerator enumerator = ((global::System.Collections.IEnumerable) this.ordering).GetEnumerator(); try { while (enumerator.MoveNext()) { DerObjectIdentifier derObjectIdentifier = (DerObjectIdentifier)enumerator.get_Current(); this.extensions.Add((object)derObjectIdentifier, (object)(X509Extension)extensions.get_Item((object)derObjectIdentifier)); } } finally { global::System.IDisposable disposable = enumerator as global::System.IDisposable; if (disposable != null) { disposable.Dispose(); } } }
private global::System.Collections.IList GetCertList() { global::System.Collections.IList list = Platform.CreateArrayList(); Asn1Sequence certs = req.OptionalSignature.Certs; if (certs != null) { global::System.Collections.IEnumerator enumerator = certs.GetEnumerator(); try { while (enumerator.MoveNext()) { Asn1Encodable asn1Encodable = (Asn1Encodable)enumerator.get_Current(); try { list.Add((object)new X509CertificateParser().ReadCertificate(asn1Encodable.GetEncoded())); } catch (global::System.Exception e) { throw new OcspException("can't re-encode certificate!", e); } } return(list); } finally { global::System.IDisposable disposable = enumerator as global::System.IDisposable; if (disposable != null) { disposable.Dispose(); } } } return(list); }
protected internal static void WriteSupplementalData(Stream output, global::System.Collections.IList supplementalData) { //IL_0000: Unknown result type (might be due to invalid IL or missing references) //IL_0006: Expected O, but got Unknown MemoryStream val = new MemoryStream(); global::System.Collections.IEnumerator enumerator = ((global::System.Collections.IEnumerable)supplementalData).GetEnumerator(); try { while (enumerator.MoveNext()) { SupplementalDataEntry supplementalDataEntry = (SupplementalDataEntry)enumerator.get_Current(); int dataType = supplementalDataEntry.DataType; TlsUtilities.CheckUint16(dataType); TlsUtilities.WriteUint16(dataType, (Stream)(object)val); TlsUtilities.WriteOpaque16(supplementalDataEntry.Data, (Stream)(object)val); } } finally { global::System.IDisposable disposable = enumerator as global::System.IDisposable; if (disposable != null) { disposable.Dispose(); } } byte[] buf = val.ToArray(); TlsUtilities.WriteOpaque24(buf, output); }
protected virtual void SendSupplementalDataMessage(global::System.Collections.IList supplementalData) { HandshakeMessage handshakeMessage = new HandshakeMessage(23); WriteSupplementalData((Stream)(object)handshakeMessage, supplementalData); handshakeMessage.WriteToRecordStream(this); }
private static PgpPublicKey AddCert(PgpPublicKey key, object id, PgpSignature certification) { PgpPublicKey pgpPublicKey = new PgpPublicKey(key); global::System.Collections.IList list = null; for (int i = 0; i != ((global::System.Collections.ICollection)pgpPublicKey.ids).get_Count(); i++) { if (id.Equals(pgpPublicKey.ids.get_Item(i))) { list = (global::System.Collections.IList)pgpPublicKey.idSigs.get_Item(i); } } if (list != null) { list.Add((object)certification); } else { list = Platform.CreateArrayList(); list.Add((object)certification); pgpPublicKey.ids.Add(id); pgpPublicKey.idTrusts.Add((object)null); pgpPublicKey.idSigs.Add((object)list); } return(pgpPublicKey); }
public static PgpSecretKeyRing CopyWithNewPassword(PgpSecretKeyRing ring, char[] oldPassPhrase, char[] newPassPhrase, SymmetricKeyAlgorithmTag newEncAlgorithm, SecureRandom rand) { global::System.Collections.IList list = Platform.CreateArrayList(((global::System.Collections.ICollection)ring.keys).get_Count()); global::System.Collections.IEnumerator enumerator = ring.GetSecretKeys().GetEnumerator(); try { while (enumerator.MoveNext()) { PgpSecretKey pgpSecretKey = (PgpSecretKey)enumerator.get_Current(); if (pgpSecretKey.IsPrivateKeyEmpty) { list.Add((object)pgpSecretKey); } else { list.Add((object)PgpSecretKey.CopyWithNewPassword(pgpSecretKey, oldPassPhrase, newPassPhrase, newEncAlgorithm, rand)); } } } finally { global::System.IDisposable disposable = enumerator as global::System.IDisposable; if (disposable != null) { disposable.Dispose(); } } return(new PgpSecretKeyRing(list, ring.extraPubKeys)); }
public virtual void ProcessClientSupplementalData(global::System.Collections.IList clientSupplementalData) { if (clientSupplementalData != null) { throw new TlsFatalAlert(10); } }
protected virtual void HandleSupplementalData(global::System.Collections.IList serverSupplementalData) { mTlsClient.ProcessServerSupplementalData(serverSupplementalData); mConnectionState = 3; mKeyExchange = mTlsClient.GetKeyExchange(); mKeyExchange.Init(Context); }
public virtual void SetStores(global::System.Collections.IList stores) { //IL_0040: Unknown result type (might be due to invalid IL or missing references) if (stores == null) { this.stores = Platform.CreateArrayList(); return; } global::System.Collections.IEnumerator enumerator = ((global::System.Collections.IEnumerable)stores).GetEnumerator(); try { while (enumerator.MoveNext()) { object current = enumerator.get_Current(); if (!(current is IX509Store)) { throw new InvalidCastException("All elements of list must be of type " + typeof(IX509Store).get_FullName()); } } } finally { global::System.IDisposable disposable = enumerator as global::System.IDisposable; if (disposable != null) { disposable.Dispose(); } } this.stores = Platform.CreateArrayList((global::System.Collections.ICollection)stores); }
internal PgpPublicKey(PublicKeyPacket publicPk, TrustPacket trustPk, global::System.Collections.IList sigs) { this.publicPk = publicPk; this.trustPk = trustPk; subSigs = sigs; Init(); }
static TspUtil() { EmptySet = CollectionUtilities.ReadOnly((ISet) new HashSet()); EmptyList = CollectionUtilities.ReadOnly(Platform.CreateArrayList()); digestLengths = Platform.CreateHashtable(); digestNames = Platform.CreateHashtable(); digestLengths.Add((object)PkcsObjectIdentifiers.MD5.Id, (object)16); digestLengths.Add((object)OiwObjectIdentifiers.IdSha1.Id, (object)20); digestLengths.Add((object)NistObjectIdentifiers.IdSha224.Id, (object)28); digestLengths.Add((object)NistObjectIdentifiers.IdSha256.Id, (object)32); digestLengths.Add((object)NistObjectIdentifiers.IdSha384.Id, (object)48); digestLengths.Add((object)NistObjectIdentifiers.IdSha512.Id, (object)64); digestLengths.Add((object)TeleTrusTObjectIdentifiers.RipeMD128.Id, (object)16); digestLengths.Add((object)TeleTrusTObjectIdentifiers.RipeMD160.Id, (object)20); digestLengths.Add((object)TeleTrusTObjectIdentifiers.RipeMD256.Id, (object)32); digestLengths.Add((object)CryptoProObjectIdentifiers.GostR3411.Id, (object)32); digestNames.Add((object)PkcsObjectIdentifiers.MD5.Id, (object)"MD5"); digestNames.Add((object)OiwObjectIdentifiers.IdSha1.Id, (object)"SHA1"); digestNames.Add((object)NistObjectIdentifiers.IdSha224.Id, (object)"SHA224"); digestNames.Add((object)NistObjectIdentifiers.IdSha256.Id, (object)"SHA256"); digestNames.Add((object)NistObjectIdentifiers.IdSha384.Id, (object)"SHA384"); digestNames.Add((object)NistObjectIdentifiers.IdSha512.Id, (object)"SHA512"); digestNames.Add((object)PkcsObjectIdentifiers.Sha1WithRsaEncryption.Id, (object)"SHA1"); digestNames.Add((object)PkcsObjectIdentifiers.Sha224WithRsaEncryption.Id, (object)"SHA224"); digestNames.Add((object)PkcsObjectIdentifiers.Sha256WithRsaEncryption.Id, (object)"SHA256"); digestNames.Add((object)PkcsObjectIdentifiers.Sha384WithRsaEncryption.Id, (object)"SHA384"); digestNames.Add((object)PkcsObjectIdentifiers.Sha512WithRsaEncryption.Id, (object)"SHA512"); digestNames.Add((object)TeleTrusTObjectIdentifiers.RipeMD128.Id, (object)"RIPEMD128"); digestNames.Add((object)TeleTrusTObjectIdentifiers.RipeMD160.Id, (object)"RIPEMD160"); digestNames.Add((object)TeleTrusTObjectIdentifiers.RipeMD256.Id, (object)"RIPEMD256"); digestNames.Add((object)CryptoProObjectIdentifiers.GostR3411.Id, (object)"GOST3411"); }
internal PgpPublicKey(PublicKeyPacket publicPk, global::System.Collections.IList ids, global::System.Collections.IList idSigs) { this.publicPk = publicPk; this.ids = ids; this.idSigs = idSigs; Init(); }
private void InitParams(IDictionary parameters) { global::System.Collections.IEnumerator enumerator = ((global::System.Collections.IEnumerable)parameters.get_Keys()).GetEnumerator(); global::System.Collections.IList list = Platform.CreateArrayList(); global::System.Collections.IList list2 = Platform.CreateArrayList(); while (enumerator.MoveNext()) { int num = (int)enumerator.get_Current(); byte[] value = (byte[])parameters.get_Item((object)num); if (num == 0) { key = value; } else if (num < 48) { list.Add((object)new Parameter(num, value)); } else { list2.Add((object)new Parameter(num, value)); } } preMessageParameters = new Parameter[((global::System.Collections.ICollection)list).get_Count()]; ((global::System.Collections.ICollection)list).CopyTo((global::System.Array)preMessageParameters, 0); global::System.Array.Sort((global::System.Array)preMessageParameters); postMessageParameters = new Parameter[((global::System.Collections.ICollection)list2).get_Count()]; ((global::System.Collections.ICollection)list2).CopyTo((global::System.Array)postMessageParameters, 0); global::System.Array.Sort((global::System.Array)postMessageParameters); }
public global::System.Collections.IEnumerable GetUserAttributes() { global::System.Collections.IList list = Platform.CreateArrayList(); global::System.Collections.IEnumerator enumerator = ((global::System.Collections.IEnumerable)ids).GetEnumerator(); try { while (enumerator.MoveNext()) { object current = enumerator.get_Current(); if (current is PgpUserAttributeSubpacketVector) { list.Add(current); } } } finally { global::System.IDisposable disposable = enumerator as global::System.IDisposable; if (disposable != null) { disposable.Dispose(); } } return(new EnumerableProxy((global::System.Collections.IEnumerable)list)); }
public ItemizedOverlayWithBubble(global::Android.Content.Context p0, global::System.Collections.IList p1, global::Osmdroid.Views.MapView p2, global::Osmdroid.Bonuspack.Overlays.InfoWindow p3) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { if (Handle != IntPtr.Zero) { return; } IntPtr native_p1 = global::Android.Runtime.JavaList.ToLocalJniHandle(p1);; if (GetType() != typeof(ItemizedOverlayWithBubble)) { SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Landroid/content/Context;Ljava/util/List;Lorg/osmdroid/views/MapView;Lorg/osmdroid/bonuspack/overlays/InfoWindow;)V", new JValue(p0), new JValue(native_p1), new JValue(p2), new JValue(p3)), JniHandleOwnership.TransferLocalRef); global::Android.Runtime.JNIEnv.FinishCreateInstance(Handle, "(Landroid/content/Context;Ljava/util/List;Lorg/osmdroid/views/MapView;Lorg/osmdroid/bonuspack/overlays/InfoWindow;)V", new JValue(p0), new JValue(native_p1), new JValue(p2), new JValue(p3)); JNIEnv.DeleteLocalRef(native_p1); return; } if (id_ctor_Landroid_content_Context_Ljava_util_List_Lorg_osmdroid_views_MapView_Lorg_osmdroid_bonuspack_overlays_InfoWindow_ == IntPtr.Zero) { id_ctor_Landroid_content_Context_Ljava_util_List_Lorg_osmdroid_views_MapView_Lorg_osmdroid_bonuspack_overlays_InfoWindow_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Landroid/content/Context;Ljava/util/List;Lorg/osmdroid/views/MapView;Lorg/osmdroid/bonuspack/overlays/InfoWindow;)V"); } SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Landroid_content_Context_Ljava_util_List_Lorg_osmdroid_views_MapView_Lorg_osmdroid_bonuspack_overlays_InfoWindow_, new JValue(p0), new JValue(native_p1), new JValue(p2), new JValue(p3)), JniHandleOwnership.TransferLocalRef); JNIEnv.FinishCreateInstance(Handle, class_ref, id_ctor_Landroid_content_Context_Ljava_util_List_Lorg_osmdroid_views_MapView_Lorg_osmdroid_bonuspack_overlays_InfoWindow_, new JValue(p0), new JValue(native_p1), new JValue(p2), new JValue(p3)); JNIEnv.DeleteLocalRef(native_p1); }
public global::System.Collections.IEnumerable GetSignaturesOfType(int signatureType) { global::System.Collections.IList list = Platform.CreateArrayList(); global::System.Collections.IEnumerator enumerator = GetSignatures().GetEnumerator(); try { while (enumerator.MoveNext()) { PgpSignature pgpSignature = (PgpSignature)enumerator.get_Current(); if (pgpSignature.SignatureType == signatureType) { list.Add((object)pgpSignature); } } } finally { global::System.IDisposable disposable = enumerator as global::System.IDisposable; if (disposable != null) { disposable.Dispose(); } } return(new EnumerableProxy((global::System.Collections.IEnumerable)list)); }
public static unsafe global::System.Collections.IList GetListFromDocument(global::Org.W3c.Dom.IDocument p0, string p1, string p2, string p3, global::Com.Mopub.Mobileads.Util.XmlUtils.INodeProcessor p4) { if (id_getListFromDocument_Lorg_w3c_dom_Document_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Lcom_mopub_mobileads_util_XmlUtils_NodeProcessor_ == IntPtr.Zero) { id_getListFromDocument_Lorg_w3c_dom_Document_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Lcom_mopub_mobileads_util_XmlUtils_NodeProcessor_ = JNIEnv.GetStaticMethodID(class_ref, "getListFromDocument", "(Lorg/w3c/dom/Document;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/mopub/mobileads/util/XmlUtils$NodeProcessor;)Ljava/util/List;"); } IntPtr native_p1 = JNIEnv.NewString(p1); IntPtr native_p2 = JNIEnv.NewString(p2); IntPtr native_p3 = JNIEnv.NewString(p3); try { JValue *__args = stackalloc JValue [5]; __args [0] = new JValue(p0); __args [1] = new JValue(native_p1); __args [2] = new JValue(native_p2); __args [3] = new JValue(native_p3); __args [4] = new JValue(p4); global::System.Collections.IList __ret = global::Android.Runtime.JavaList.FromJniHandle(JNIEnv.CallStaticObjectMethod(class_ref, id_getListFromDocument_Lorg_w3c_dom_Document_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Lcom_mopub_mobileads_util_XmlUtils_NodeProcessor_, __args), JniHandleOwnership.TransferLocalRef); return(__ret); } finally { JNIEnv.DeleteLocalRef(native_p1); JNIEnv.DeleteLocalRef(native_p2); JNIEnv.DeleteLocalRef(native_p3); } }
public global::System.Collections.IEnumerable GetSignatures() { global::System.Collections.IList list = subSigs; if (list == null) { list = Platform.CreateArrayList((global::System.Collections.ICollection)keySigs); { global::System.Collections.IEnumerator enumerator = ((global::System.Collections.IEnumerable)idSigs).GetEnumerator(); try { while (enumerator.MoveNext()) { global::System.Collections.ICollection range = (global::System.Collections.ICollection)enumerator.get_Current(); CollectionUtilities.AddRange(list, (global::System.Collections.IEnumerable)range); } } finally { global::System.IDisposable disposable = enumerator as global::System.IDisposable; if (disposable != null) { disposable.Dispose(); } } } } return(new EnumerableProxy((global::System.Collections.IEnumerable)list)); }
public virtual void Encode(Stream output) { global::System.Collections.IList list = Platform.CreateArrayList(mCertificateList.Length); int num = 0; X509CertificateStructure[] array = mCertificateList; foreach (Asn1Encodable asn1Encodable in array) { byte[] encoded = asn1Encodable.GetEncoded("DER"); list.Add((object)encoded); num += encoded.Length + 3; } TlsUtilities.CheckUint24(num); TlsUtilities.WriteUint24(num, output); global::System.Collections.IEnumerator enumerator = ((global::System.Collections.IEnumerable)list).GetEnumerator(); try { while (enumerator.MoveNext()) { byte[] buf = (byte[])enumerator.get_Current(); TlsUtilities.WriteOpaque24(buf, output); } } finally { global::System.IDisposable disposable = enumerator as global::System.IDisposable; if (disposable != null) { disposable.Dispose(); } } }
public global::System.Collections.ICollection GetMatches(IX509Selector selector) { if (selector == null) { return((global::System.Collections.ICollection)Platform.CreateArrayList(_local)); } global::System.Collections.IList list = Platform.CreateArrayList(); global::System.Collections.IEnumerator enumerator = ((global::System.Collections.IEnumerable)_local).GetEnumerator(); try { while (enumerator.MoveNext()) { object current = enumerator.get_Current(); if (selector.Match(current)) { list.Add(current); } } return((global::System.Collections.ICollection)list); } finally { global::System.IDisposable disposable = enumerator as global::System.IDisposable; if (disposable != null) { disposable.Dispose(); } } }