mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-20 19:29:48 +08:00
7b245d2461
* java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue. (newVal): Renamed to newValue. * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt. * java/beans/beancontext/BeanContextServiceRevokedEvent.java (revokeNow): Renamed to invalidateRefs. * java/io/OptionalDataException.java: Updated FIXME. (eof): New placeholder field. (length); Ditto. * java/io/WriteAbortedException.java (message): Made transient. * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2. * java/lang/Throwable.java (stackTrace): Made transient. * java/net/InetAddress.java: Made Serializable. * java/security/KeyPair.java: Made Serializable. * java/security/Provider.java: Replaced with Classpath version that implements serialization and proper methods. * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats. (limits): Renamed to choiceLimits. Serialization changes per: http://java.sun.com/products/jdk/1.2/docs/api/serialized-form.html From-SVN: r34726
42 lines
840 B
Java
42 lines
840 B
Java
/* Copyright (C) 2000 Free Software Foundation
|
|
|
|
This file is part of libgcj.
|
|
|
|
This software is copyrighted work licensed under the terms of the
|
|
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
|
details. */
|
|
|
|
package java.security;
|
|
|
|
/**
|
|
* @author Tom Tromey <tromey@cygnus.com>
|
|
* @date February 9, 2000.
|
|
*/
|
|
|
|
/* Written using on-line Java Platform 1.2 API Specification.
|
|
* Status: Believed complete and correct.
|
|
*/
|
|
|
|
public class KeyPair implements java.io.Serializable
|
|
{
|
|
public KeyPair (PublicKey publicKey, PrivateKey privateKey)
|
|
{
|
|
this.publicKey = publicKey;
|
|
this.privateKey = privateKey;
|
|
}
|
|
|
|
public PublicKey getPublic ()
|
|
{
|
|
return publicKey;
|
|
}
|
|
|
|
public PrivateKey getPrivate ()
|
|
{
|
|
return privateKey;
|
|
}
|
|
|
|
// The keys.
|
|
private PublicKey publicKey;
|
|
private PrivateKey privateKey;
|
|
}
|