<!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.Signer
</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.Signature.html#_top_">Previous</a>  <a href="Package-java.security.html">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class java.security.Signer
</h1>
<pre>
<a href="java.lang.Object.html#_top_">java.lang.Object</a>
   |
   +----<a href="java.security.Identity.html#_top_">java.security.Identity</a>
           |
           +----java.security.Signer
</pre>
<hr>
<dl>
  <dt> public abstract class <b>Signer</b>
  <dt> extends <a href="java.security.Identity.html#_top_">Identity</a>
</dl>
This class is used to represent an Identity that can also digitally
 sign data.
 <p>The management of a signer's private keys is an important and
 sensitive issue that should be handled by subclasses as appropriate
 to their intended use.
<p>
<dl>
    <dt> <b>See Also:</b>
    <dd> <a href="java.security.Identity.html#_top_">Identity</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="#Signer()"><b>Signer</b></a>()
  <dd> 
 Creates a signer.
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#Signer(java.lang.String)"><b>Signer</b></a>(String)
  <dd> 
 Creates a signer with the specified identity name.
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#Signer(java.lang.String, java.security.IdentityScope)"><b>Signer</b></a>(String, IdentityScope)
  <dd> 
 Creates a signer with the specified identity name and scope.
</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="#getPrivateKey()"><b>getPrivateKey</b></a>()
  <dd>  Returns this signer's private key.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setKeyPair(java.security.KeyPair)"><b>setKeyPair</b></a>(KeyPair)
  <dd>  Sets the key pair (public key and private key) for this signer.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#toString()"><b>toString</b></a>()
  <dd>  Returns a string of information about the signer.
</dl>
<a name="constructors"></a>
<h2>
  <img src="images/constructors.gif" width=231 height=38 alt="Constructors">
</h2>
<a name="Signer"></a>
<a name="Signer()"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>Signer</b>
<pre>
 protected Signer()
</pre>
<dl>
  <dd> Creates a signer. This constructor should only be used for 
 serialization.
<p>
</dl>
<a name="Signer(java.lang.String)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>Signer</b>
<pre>
 public Signer(<a href="java.lang.String.html#_top_">String</a> name)
</pre>
<dl>
  <dd> Creates a signer with the specified identity name.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> name - the identity name.
  </dl></dd>
</dl>
<a name="Signer(java.lang.String, java.security.IdentityScope)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>Signer</b>
<pre>
 public Signer(<a href="java.lang.String.html#_top_">String</a> name,
               <a href="java.security.IdentityScope.html#_top_">IdentityScope</a> scope) throws <a href="java.security.KeyManagementException.html#_top_">KeyManagementException</a>
</pre>
<dl>
  <dd> Creates a signer with the specified identity name and scope.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> name - the identity name.
    <dd> scope - the scope of the identity.
    <dt> <b>Throws:</b> <a href="java.security.KeyManagementException.html#_top_">KeyManagementException</a>
    <dd> if there is already an identity
 with the same name in the scope.
  </dl></dd>
</dl>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="getPrivateKey()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getPrivateKey"><b>getPrivateKey</b></a>
<pre>
 public <a href="java.security.PrivateKey.html#_top_">PrivateKey</a> getPrivateKey()
</pre>
<dl>
  <dd> Returns this signer's private key.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> this signer's private key, or null if the private key has
 not yet been set.
  </dl></dd>
</dl>
<a name="setKeyPair(java.security.KeyPair)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setKeyPair"><b>setKeyPair</b></a>
<pre>
 public final void setKeyPair(<a href="java.security.KeyPair.html#_top_">KeyPair</a> pair) throws <a href="java.security.InvalidParameterException.html#_top_">InvalidParameterException</a>, <a href="java.security.KeyException.html#_top_">KeyException</a>
</pre>
<dl>
  <dd> Sets the key pair (public key and private key) for this signer.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> pair - an initialized key pair.
    <dt> <b>Throws:</b> <a href="java.security.InvalidParameterException.html#_top_">InvalidParameterException</a>
    <dd> if the key pair is not
 properly initialized.
    <dt> <b>Throws:</b> <a href="java.security.KeyException.html#_top_">KeyException</a>
    <dd> if the key pair cannot be set for any
 other reason.
  </dl></dd>
</dl>
<a name="toString()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="toString"><b>toString</b></a>
<pre>
 public <a href="java.lang.String.html#_top_">String</a> toString()
</pre>
<dl>
  <dd> Returns a string of information about the signer.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> a string of information about the signer.
    <dt> <b>Overrides:</b>
    <dd> <a href="java.security.Identity.html#toString()">toString</a> in class <a href="java.security.Identity.html#_top_">Identity</a>
  </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.Signature.html#_top_">Previous</a>  <a href="Package-java.security.html">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
