FileDocCategorySizeDatePackage
Message.javaAPI DocExample2385Sun Oct 25 18:13:36 GMT 1998None

Message

public class Message extends Object implements Serializable

Fields Summary
SignedObject
object
transient Certificate
certificate
Constructors Summary
Methods Summary
private voidreadObject(java.io.ObjectInputStream in)

		in.defaultReadObject();
		try {
			byte b[] = (byte []) in.readObject();
			// In 1.2 beta 4, we must use a certificate factory for this
			// X509Certificate x509 = X509Certificate.getInstance(
			// 									new ByteArrayInputStream(b));
			// certificate = x509;
			CertificateFactory cf = CertificateFactory.getInstance("X509");
			certificate = cf.generateCertificate(new ByteArrayInputStream(b));
		} catch (CertificateException ce) {
			throw new IOException("Can't de-serialize object " + ce);
		}
	
private voidwriteObject(java.io.ObjectOutputStream out)

		out.defaultWriteObject();
		try {
			out.writeObject(certificate.getEncoded());
		} catch (CertificateEncodingException cee) {
			throw new IOException("Can't serialize object " + cee);
		}