|
Server : Apache/2.2.2 (Fedora) System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686 User : apache ( 48) PHP Version : 5.2.9 Disable Function : NONE Directory : /usr/share/javadoc/cryptix-3.2.0/xjava/security/interfaces/ |
Upload File : |
<?xml version="1.0" encoding="US-ASCII"?>
<!DOCTYPE html PUBLIC "-//gnu.org///DTD XHTML 1.1 plus Target 1.0//EN" "../../../resources/xhtml11-target10.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><title>RSAKeyPairGenerator (cryptix JavaDoc)</title><script src="../../../resources/gjdoc.js" type="text/javascript"><!-- this comment required for konqueror 3.2.2 --></script><meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"/><meta name="generator" content="GNU Gjdoc Standard Doclet"/><meta name="keywords" content="xjava.security.interfaces.RSAKeyPairGenerator class"/><meta name="keywords" content="initialize()"/><link rel="stylesheet" type="text/css" href="../../../resources/gjdochtml-clean-layout.css" title="GNU Clean"/><link rel="stylesheet" type="text/css" href="../../../resources/gjdochtml-clean-color1.css" title="GNU Clean"/></head><body class="content class" onload="if(parent.contentPageLoaded)parent.contentPageLoaded(document.title)"><table class="navbar div top"><tr><td class="navbar div top"><div class="navbar div top"><span class="navbar item enabled"><a href="../../../overview-summary.html">Overview</a></span> <span class="navbar item enabled"><a href="package-summary.html">Package</a></span> <span class="navbar item enabled"><a href="tree.html">Tree</a></span> <span class="navbar item enabled"><a href="../../../alphaindex.html">Index</a></span> <span class="navbar item enabled"><a href="../../../deprecated.html">Deprecated</a></span> <span class="navbar item enabled"><a href="../../../about.html">About</a></span></div></td></tr><tr><td class="navi"><a href="../../../xjava/security/interfaces/RSAKey.html">Prev Class</a> | Next Class</td><td class="navi"><a href="../../../index.html" title="Show in a frameset" target="_top">Frames</a> | <a href="RSAKeyPairGenerator.html" title="Show without frames" target="_top">No Frames</a> </td></tr><tr><td class="navi">Summary: Nested | Field | <a href="#summary-methods">Method</a> | Constr</td><td class="navi">Detail: Nested | Field | <a href="#detail-methods">Method</a> | Constr</td></tr></table><div class="class title outer"><h3 class="class title-package">xjava.security.interfaces</h3><h1 class="class title-class">Interface RSAKeyPairGenerator</h1></div><dl class="class knownimplementing"><dt class="header"><b>Known Implementing Classes:</b></dt><dd class="item"><a href="../../../cryptix/provider/rsa/BaseRSAKeyPairGenerator.html" title="Class in cryptix.provider.rsa">BaseRSAKeyPairGenerator</a></dd></dl><hr/><div class="class synopsis outer"><div class="class synopsis declaration"><code>public interface <b class="class synopsis name">RSAKeyPairGenerator</b></code></div></div><hr/><div class="class description"> An interface to an object capable of generating RSA key pairs. The
generator is first initialized, then used to generate one or more
key pairs.
<p/>
Users wishing to indicate the public exponent, and to generate a key
pair suitable for use with the RSA algorithm typically
<ol><li> Get a key pair generator for the RSA algorithm by calling the
KeyPairGenerator <code>getInstance</code> method with "RSA"
as its argument.<p/>
</li><li> Initialize the generator by casting the result to an
RSAKeyPairGenerator and calling the <code>initialize</code>
method from this RSAKeyPairGenerator interface.<p/>
</li><li> Generate one or more key pairs by calling the
<code>generateKeyPair</code> method from the KeyPairGenerator
class, as often as desired.
</li></ol>
<p/>
Note: it is not always necessary to do algorithm-specific
initialization for an RSA key pair generator. That is, it is not always
necessary to call the <code>initialize</code> method in this interface.
Algorithm-independent initialization using the <code>initialize</code>
method in the KeyPairGenerator interface is all that is needed when you
accept defaults for algorithm-specific parameters.
<p/><b>$Revision: 1.2 $</b>
</div><div class="taglet"><dl class="tag list"><dt class="tag section header"><b>Author:</b></dt><dd class="tag item">David Hopwood</dd></dl></div><div class="taglet"><dl class="tag list"><dt class="tag section header"><b>Since:</b></dt><dd>IJCE 1.0</dd></dl></div><div class="taglet"></div><div class="taglet"></div><div class="taglet"><dl class="tag list"><dt class="tag section header"><b>See Also:</b></dt><dd><code>java.security.KeyPairGenerator</code></dd></dl></div><div class="taglet"></div><div class="taglet"></div><a name="summary-methods" id="summary-methods"/><dl class="table container"><dd><table class="class summary" border="1" width="100%"><tr class="table header"><td colspan="2"><h2 class="table header">Method Summary</h2></td></tr><tr><td class="left" valign="top"><code class="synopsis"> void</code></td><td class="right"><dl class="list"><dt class="synopsis"><code><a href="#initialize(int,BigInteger,SecureRandom)">initialize</a>(int strength, BigInteger publicExponent, SecureRandom random)</code></dt><dd class="description"> Initializes the key pair generator using the specified "strength"
(desired key length in bits), public exponent, and source of random
bits.</dd></dl></td></tr></table></dd></dl><a name="detail-methods" id="detail-methods"/><h2 class="section header">Method Details</h2><div class="section"><a name="initialize(int,BigInteger,SecureRandom)" id="initialize(int,BigInteger,SecureRandom)"/><div class="member detail outer"><h3 class="member detail name">initialize</h3><pre class="member detail synopsis">public void initialize(int strength,
BigInteger publicExponent,
SecureRandom random)
throws InvalidParameterException</pre><blockquote class="member detail name"><div class="member detail description"> Initializes the key pair generator using the specified "strength"
(desired key length in bits), public exponent, and source of random
bits. Typical values for the public exponent are the Fermat primes
F4 and F0 (65537 and 3) and, less commonly, 17.
</div><div class="taglet"></div><div class="taglet"></div><div class="taglet"></div><div class="taglet"></div><div class="taglet"></div></blockquote></div></div><p class="navbar bottom spacer"> </p><table class="navbar div bottom"><tr><td><div class="navbar div top"><span class="navbar item enabled"><a href="../../../overview-summary.html">Overview</a></span> <span class="navbar item enabled"><a href="package-summary.html">Package</a></span> <span class="navbar item enabled"><a href="tree.html">Tree</a></span> <span class="navbar item enabled"><a href="../../../alphaindex.html">Index</a></span> <span class="navbar item enabled"><a href="../../../deprecated.html">Deprecated</a></span> <span class="navbar item enabled"><a href="../../../about.html">About</a></span></div></td></tr></table></body></html>