<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Wed Jul 28 01:21:15 GMT 1999 -->
<title>
  Class java.security.KeyPair
</title>
</head>
<body>
<a name="_top_"></a>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.security.html">This Package</a>  <a href="java.security.IdentityScope.html#_top_">Previous</a>  <a href="java.security.KeyPairGenerator.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class java.security.KeyPair
</h1>
<pre>
<a href="java.lang.Object.html#_top_">java.lang.Object</a>
   |
   +----java.security.KeyPair
</pre>
<hr>
<dl>
  <dt> public final class <b>KeyPair</b>
  <dt> extends <a href="java.lang.Object.html#_top_">Object</a>
</dl>
<p>This class is a simple holder for a key pair (a public key and a
 private key). It does not enforce any security, and, when initialized,
 should be treated like a PrivateKey.
<p>
<dl>
    <dt> <b>See Also:</b>
    <dd> <a href="java.security.PublicKey.html#_top_">PublicKey</a>, <a href="java.security.PrivateKey.html#_top_">PrivateKey</a>
</dl>
<hr>
<a name="index"></a>
<h2>
  <img src="images/constructor-index.gif" width=275 height=38 alt="Constructor Index">
</h2>
<dl>
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#KeyPair(java.security.PublicKey, java.security.PrivateKey)"><b>KeyPair</b></a>(PublicKey, PrivateKey)
  <dd>  Constructs a key with the specified public key and private key.
</dl>
<h2>
  <img src="images/method-index.gif" width=207 height=38 alt="Method Index">
</h2>
<dl>
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getPrivate()"><b>getPrivate</b></a>()
  <dd>  Returns the private key from this key pair.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getPublic()"><b>getPublic</b></a>()
  <dd>  Returns the public key from this key pair.
</dl>
<a name="constructors"></a>
<h2>
  <img src="images/constructors.gif" width=231 height=38 alt="Constructors">
</h2>
<a name="KeyPair"></a>
<a name="KeyPair(java.security.PublicKey, java.security.PrivateKey)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>KeyPair</b>
<pre>
 public KeyPair(<a href="java.security.PublicKey.html#_top_">PublicKey</a> publicKey,
                <a href="java.security.PrivateKey.html#_top_">PrivateKey</a> privateKey)
</pre>
<dl>
  <dd> Constructs a key with the specified public key and private key.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> publicKey - the public key.
    <dd> privateKey - the private key.
  </dl></dd>
</dl>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="getPublic()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getPublic"><b>getPublic</b></a>
<pre>
 public <a href="java.security.PublicKey.html#_top_">PublicKey</a> getPublic()
</pre>
<dl>
  <dd> Returns the public key from this key pair.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the public key.
  </dl></dd>
</dl>
<a name="getPrivate()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getPrivate"><b>getPrivate</b></a>
<pre>
 public <a href="java.security.PrivateKey.html#_top_">PrivateKey</a> getPrivate()
</pre>
<dl>
  <dd> Returns the private key from this key pair.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the private key.
  </dl></dd>
</dl>
<hr>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.security.html">This Package</a>  <a href="java.security.IdentityScope.html#_top_">Previous</a>  <a href="java.security.KeyPairGenerator.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
