/// <summary> /// Deserialize the {@code CertificateRevokedException} instance. /// </summary> //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: private void readObject(java.io.ObjectInputStream ois) throws java.io.IOException, ClassNotFoundException private void ReadObject(ObjectInputStream ois) { // Read in the non-transient fields // (revocationDate, reason, authority) ois.DefaultReadObject(); // Defensively copy the revocation date RevocationDate_Renamed = new DateTime(RevocationDate_Renamed.Ticks); // Read in the size (number of mappings) of the extensions map // and create the extensions map int size = ois.ReadInt(); if (size == 0) { Extensions_Renamed = Collections.EmptyMap(); } else { Extensions_Renamed = new Dictionary <String, Extension>(size); } // Read in the extensions and put the mappings in the extensions map for (int i = 0; i < size; i++) { String oid = (String)ois.ReadObject(); bool critical = ois.ReadBoolean(); int length = ois.ReadInt(); sbyte[] extVal = new sbyte[length]; ois.ReadFully(extVal); Extension ext = sun.security.x509.Extension.newExtension(new ObjectIdentifier(oid), critical, extVal); Extensions_Renamed[oid] = ext; } }
/// <exception cref="System.IO.IOException"/> /// <exception cref="System.TypeLoadException"/> private void ReadObject(ObjectInputStream @in) { byte[] buf = new byte[@in.ReadInt()]; @in.ReadFully(buf); metadata = new KeyProvider.Metadata(buf); }