PageRenderTime 104ms CodeModel.GetById 16ms app.highlight 73ms RepoModel.GetById 1ms app.codeStats 0ms

/lib/bouncycastle/docs/org/bouncycastle/asn1/pkcs/RSAPrivateKeyStructure.html

https://bitbucket.org/arkban/somersault
HTML | 544 lines | 465 code | 56 blank | 23 comment | 0 complexity | 0a14eec3afdafa1cac41b73a557c56de MD5 | raw file
Possible License(s): LGPL-2.1, BSD-3-Clause, Apache-2.0
  1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2<!--NewPage-->
  3<HTML>
  4<HEAD>
  5<!-- Generated by javadoc (build 1.6.0) on Mon Jan 11 13:46:34 EST 2010 -->
  6<TITLE>
  7RSAPrivateKeyStructure (Bouncy Castle Library 1.45 API Specification)
  8</TITLE>
  9
 10<META NAME="date" CONTENT="2010-01-11">
 11
 12<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
 13
 14<SCRIPT type="text/javascript">
 15function windowTitle()
 16{
 17    if (location.href.indexOf('is-external=true') == -1) {
 18        parent.document.title="RSAPrivateKeyStructure (Bouncy Castle Library 1.45 API Specification)";
 19    }
 20}
 21</SCRIPT>
 22<NOSCRIPT>
 23</NOSCRIPT>
 24
 25</HEAD>
 26
 27<BODY BGCOLOR="white" onload="windowTitle();">
 28<HR>
 29
 30
 31<!-- ========= START OF TOP NAVBAR ======= -->
 32<A NAME="navbar_top"><!-- --></A>
 33<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
 34<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
 35<TR>
 36<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
 37<A NAME="navbar_top_firstrow"><!-- --></A>
 38<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
 39  <TR ALIGN="center" VALIGN="top">
 40  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
 41  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
 42  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
 43  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
 44  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
 45  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
 46  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
 47  </TR>
 48</TABLE>
 49</TD>
 50<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
 51<b>Bouncy Castle Cryptography Library 1.45</b></EM>
 52</TD>
 53</TR>
 54
 55<TR>
 56<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 57&nbsp;<A HREF="../../../../org/bouncycastle/asn1/pkcs/RSAESOAEPparams.html" title="class in org.bouncycastle.asn1.pkcs"><B>PREV CLASS</B></A>&nbsp;
 58&nbsp;<A HREF="../../../../org/bouncycastle/asn1/pkcs/RSASSAPSSparams.html" title="class in org.bouncycastle.asn1.pkcs"><B>NEXT CLASS</B></A></FONT></TD>
 59<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 60  <A HREF="../../../../index.html?org/bouncycastle/asn1/pkcs/RSAPrivateKeyStructure.html" target="_top"><B>FRAMES</B></A>  &nbsp;
 61&nbsp;<A HREF="RSAPrivateKeyStructure.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
 62&nbsp;<SCRIPT type="text/javascript">
 63  <!--
 64  if(window==top) {
 65    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
 66  }
 67  //-->
 68</SCRIPT>
 69<NOSCRIPT>
 70  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
 71</NOSCRIPT>
 72
 73
 74</FONT></TD>
 75</TR>
 76<TR>
 77<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 78  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_org.bouncycastle.asn1.ASN1Encodable">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
 79<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 80DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
 81</TR>
 82</TABLE>
 83<A NAME="skip-navbar_top"></A>
 84<!-- ========= END OF TOP NAVBAR ========= -->
 85
 86<HR>
 87<!-- ======== START OF CLASS DATA ======== -->
 88<H2>
 89<FONT SIZE="-1">
 90org.bouncycastle.asn1.pkcs</FONT>
 91<BR>
 92Class RSAPrivateKeyStructure</H2>
 93<PRE>
 94java.lang.Object
 95  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../org/bouncycastle/asn1/ASN1Encodable.html" title="class in org.bouncycastle.asn1">org.bouncycastle.asn1.ASN1Encodable</A>
 96      <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.bouncycastle.asn1.pkcs.RSAPrivateKeyStructure</B>
 97</PRE>
 98<DL>
 99<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../org/bouncycastle/asn1/DEREncodable.html" title="interface in org.bouncycastle.asn1">DEREncodable</A></DD>
100</DL>
101<HR>
102<DL>
103<DT><PRE>public class <B>RSAPrivateKeyStructure</B><DT>extends <A HREF="../../../../org/bouncycastle/asn1/ASN1Encodable.html" title="class in org.bouncycastle.asn1">ASN1Encodable</A></DL>
104</PRE>
105
106<P>
107<HR>
108
109<P>
110<!-- =========== FIELD SUMMARY =========== -->
111
112<A NAME="field_summary"><!-- --></A>
113<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
114<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
115<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
116<B>Field Summary</B></FONT></TH>
117</TR>
118</TABLE>
119&nbsp;<A NAME="fields_inherited_from_class_org.bouncycastle.asn1.ASN1Encodable"><!-- --></A>
120<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
121<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
122<TH ALIGN="left"><B>Fields inherited from class org.bouncycastle.asn1.<A HREF="../../../../org/bouncycastle/asn1/ASN1Encodable.html" title="class in org.bouncycastle.asn1">ASN1Encodable</A></B></TH>
123</TR>
124<TR BGCOLOR="white" CLASS="TableRowColor">
125<TD><CODE><A HREF="../../../../org/bouncycastle/asn1/ASN1Encodable.html#BER">BER</A>, <A HREF="../../../../org/bouncycastle/asn1/ASN1Encodable.html#DER">DER</A></CODE></TD>
126</TR>
127</TABLE>
128&nbsp;
129<!-- ======== CONSTRUCTOR SUMMARY ======== -->
130
131<A NAME="constructor_summary"><!-- --></A>
132<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
133<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
134<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
135<B>Constructor Summary</B></FONT></TH>
136</TR>
137<TR BGCOLOR="white" CLASS="TableRowColor">
138<TD><CODE><B><A HREF="../../../../org/bouncycastle/asn1/pkcs/RSAPrivateKeyStructure.html#RSAPrivateKeyStructure(org.bouncycastle.asn1.ASN1Sequence)">RSAPrivateKeyStructure</A></B>(<A HREF="../../../../org/bouncycastle/asn1/ASN1Sequence.html" title="class in org.bouncycastle.asn1">ASN1Sequence</A>&nbsp;seq)</CODE>
139
140<BR>
141&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
142</TR>
143<TR BGCOLOR="white" CLASS="TableRowColor">
144<TD><CODE><B><A HREF="../../../../org/bouncycastle/asn1/pkcs/RSAPrivateKeyStructure.html#RSAPrivateKeyStructure(java.math.BigInteger, java.math.BigInteger, java.math.BigInteger, java.math.BigInteger, java.math.BigInteger, java.math.BigInteger, java.math.BigInteger, java.math.BigInteger)">RSAPrivateKeyStructure</A></B>(java.math.BigInteger&nbsp;modulus,
145                       java.math.BigInteger&nbsp;publicExponent,
146                       java.math.BigInteger&nbsp;privateExponent,
147                       java.math.BigInteger&nbsp;prime1,
148                       java.math.BigInteger&nbsp;prime2,
149                       java.math.BigInteger&nbsp;exponent1,
150                       java.math.BigInteger&nbsp;exponent2,
151                       java.math.BigInteger&nbsp;coefficient)</CODE>
152
153<BR>
154&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
155</TR>
156</TABLE>
157&nbsp;
158<!-- ========== METHOD SUMMARY =========== -->
159
160<A NAME="method_summary"><!-- --></A>
161<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
162<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
163<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
164<B>Method Summary</B></FONT></TH>
165</TR>
166<TR BGCOLOR="white" CLASS="TableRowColor">
167<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
168<CODE>&nbsp;java.math.BigInteger</CODE></FONT></TD>
169<TD><CODE><B><A HREF="../../../../org/bouncycastle/asn1/pkcs/RSAPrivateKeyStructure.html#getCoefficient()">getCoefficient</A></B>()</CODE>
170
171<BR>
172&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
173</TR>
174<TR BGCOLOR="white" CLASS="TableRowColor">
175<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
176<CODE>&nbsp;java.math.BigInteger</CODE></FONT></TD>
177<TD><CODE><B><A HREF="../../../../org/bouncycastle/asn1/pkcs/RSAPrivateKeyStructure.html#getExponent1()">getExponent1</A></B>()</CODE>
178
179<BR>
180&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
181</TR>
182<TR BGCOLOR="white" CLASS="TableRowColor">
183<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
184<CODE>&nbsp;java.math.BigInteger</CODE></FONT></TD>
185<TD><CODE><B><A HREF="../../../../org/bouncycastle/asn1/pkcs/RSAPrivateKeyStructure.html#getExponent2()">getExponent2</A></B>()</CODE>
186
187<BR>
188&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
189</TR>
190<TR BGCOLOR="white" CLASS="TableRowColor">
191<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
192<CODE>static&nbsp;<A HREF="../../../../org/bouncycastle/asn1/pkcs/RSAPrivateKeyStructure.html" title="class in org.bouncycastle.asn1.pkcs">RSAPrivateKeyStructure</A></CODE></FONT></TD>
193<TD><CODE><B><A HREF="../../../../org/bouncycastle/asn1/pkcs/RSAPrivateKeyStructure.html#getInstance(org.bouncycastle.asn1.ASN1TaggedObject, boolean)">getInstance</A></B>(<A HREF="../../../../org/bouncycastle/asn1/ASN1TaggedObject.html" title="class in org.bouncycastle.asn1">ASN1TaggedObject</A>&nbsp;obj,
194            boolean&nbsp;explicit)</CODE>
195
196<BR>
197&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
198</TR>
199<TR BGCOLOR="white" CLASS="TableRowColor">
200<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
201<CODE>static&nbsp;<A HREF="../../../../org/bouncycastle/asn1/pkcs/RSAPrivateKeyStructure.html" title="class in org.bouncycastle.asn1.pkcs">RSAPrivateKeyStructure</A></CODE></FONT></TD>
202<TD><CODE><B><A HREF="../../../../org/bouncycastle/asn1/pkcs/RSAPrivateKeyStructure.html#getInstance(java.lang.Object)">getInstance</A></B>(java.lang.Object&nbsp;obj)</CODE>
203
204<BR>
205&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
206</TR>
207<TR BGCOLOR="white" CLASS="TableRowColor">
208<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
209<CODE>&nbsp;java.math.BigInteger</CODE></FONT></TD>
210<TD><CODE><B><A HREF="../../../../org/bouncycastle/asn1/pkcs/RSAPrivateKeyStructure.html#getModulus()">getModulus</A></B>()</CODE>
211
212<BR>
213&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
214</TR>
215<TR BGCOLOR="white" CLASS="TableRowColor">
216<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
217<CODE>&nbsp;java.math.BigInteger</CODE></FONT></TD>
218<TD><CODE><B><A HREF="../../../../org/bouncycastle/asn1/pkcs/RSAPrivateKeyStructure.html#getPrime1()">getPrime1</A></B>()</CODE>
219
220<BR>
221&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
222</TR>
223<TR BGCOLOR="white" CLASS="TableRowColor">
224<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
225<CODE>&nbsp;java.math.BigInteger</CODE></FONT></TD>
226<TD><CODE><B><A HREF="../../../../org/bouncycastle/asn1/pkcs/RSAPrivateKeyStructure.html#getPrime2()">getPrime2</A></B>()</CODE>
227
228<BR>
229&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
230</TR>
231<TR BGCOLOR="white" CLASS="TableRowColor">
232<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
233<CODE>&nbsp;java.math.BigInteger</CODE></FONT></TD>
234<TD><CODE><B><A HREF="../../../../org/bouncycastle/asn1/pkcs/RSAPrivateKeyStructure.html#getPrivateExponent()">getPrivateExponent</A></B>()</CODE>
235
236<BR>
237&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
238</TR>
239<TR BGCOLOR="white" CLASS="TableRowColor">
240<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
241<CODE>&nbsp;java.math.BigInteger</CODE></FONT></TD>
242<TD><CODE><B><A HREF="../../../../org/bouncycastle/asn1/pkcs/RSAPrivateKeyStructure.html#getPublicExponent()">getPublicExponent</A></B>()</CODE>
243
244<BR>
245&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
246</TR>
247<TR BGCOLOR="white" CLASS="TableRowColor">
248<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
249<CODE>&nbsp;int</CODE></FONT></TD>
250<TD><CODE><B><A HREF="../../../../org/bouncycastle/asn1/pkcs/RSAPrivateKeyStructure.html#getVersion()">getVersion</A></B>()</CODE>
251
252<BR>
253&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
254</TR>
255<TR BGCOLOR="white" CLASS="TableRowColor">
256<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
257<CODE>&nbsp;<A HREF="../../../../org/bouncycastle/asn1/DERObject.html" title="class in org.bouncycastle.asn1">DERObject</A></CODE></FONT></TD>
258<TD><CODE><B><A HREF="../../../../org/bouncycastle/asn1/pkcs/RSAPrivateKeyStructure.html#toASN1Object()">toASN1Object</A></B>()</CODE>
259
260<BR>
261&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This outputs the key in PKCS1v2 format.</TD>
262</TR>
263</TABLE>
264&nbsp;<A NAME="methods_inherited_from_class_org.bouncycastle.asn1.ASN1Encodable"><!-- --></A>
265<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
266<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
267<TH ALIGN="left"><B>Methods inherited from class org.bouncycastle.asn1.<A HREF="../../../../org/bouncycastle/asn1/ASN1Encodable.html" title="class in org.bouncycastle.asn1">ASN1Encodable</A></B></TH>
268</TR>
269<TR BGCOLOR="white" CLASS="TableRowColor">
270<TD><CODE><A HREF="../../../../org/bouncycastle/asn1/ASN1Encodable.html#equals(java.lang.Object)">equals</A>, <A HREF="../../../../org/bouncycastle/asn1/ASN1Encodable.html#getDEREncoded()">getDEREncoded</A>, <A HREF="../../../../org/bouncycastle/asn1/ASN1Encodable.html#getDERObject()">getDERObject</A>, <A HREF="../../../../org/bouncycastle/asn1/ASN1Encodable.html#getEncoded()">getEncoded</A>, <A HREF="../../../../org/bouncycastle/asn1/ASN1Encodable.html#getEncoded(java.lang.String)">getEncoded</A>, <A HREF="../../../../org/bouncycastle/asn1/ASN1Encodable.html#hashCode()">hashCode</A></CODE></TD>
271</TR>
272</TABLE>
273&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
274<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
275<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
276<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
277</TR>
278<TR BGCOLOR="white" CLASS="TableRowColor">
279<TD><CODE>clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
280</TR>
281</TABLE>
282&nbsp;
283<P>
284
285<!-- ========= CONSTRUCTOR DETAIL ======== -->
286
287<A NAME="constructor_detail"><!-- --></A>
288<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
289<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
290<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
291<B>Constructor Detail</B></FONT></TH>
292</TR>
293</TABLE>
294
295<A NAME="RSAPrivateKeyStructure(java.math.BigInteger, java.math.BigInteger, java.math.BigInteger, java.math.BigInteger, java.math.BigInteger, java.math.BigInteger, java.math.BigInteger, java.math.BigInteger)"><!-- --></A><H3>
296RSAPrivateKeyStructure</H3>
297<PRE>
298public <B>RSAPrivateKeyStructure</B>(java.math.BigInteger&nbsp;modulus,
299                              java.math.BigInteger&nbsp;publicExponent,
300                              java.math.BigInteger&nbsp;privateExponent,
301                              java.math.BigInteger&nbsp;prime1,
302                              java.math.BigInteger&nbsp;prime2,
303                              java.math.BigInteger&nbsp;exponent1,
304                              java.math.BigInteger&nbsp;exponent2,
305                              java.math.BigInteger&nbsp;coefficient)</PRE>
306<DL>
307</DL>
308<HR>
309
310<A NAME="RSAPrivateKeyStructure(org.bouncycastle.asn1.ASN1Sequence)"><!-- --></A><H3>
311RSAPrivateKeyStructure</H3>
312<PRE>
313public <B>RSAPrivateKeyStructure</B>(<A HREF="../../../../org/bouncycastle/asn1/ASN1Sequence.html" title="class in org.bouncycastle.asn1">ASN1Sequence</A>&nbsp;seq)</PRE>
314<DL>
315</DL>
316
317<!-- ============ METHOD DETAIL ========== -->
318
319<A NAME="method_detail"><!-- --></A>
320<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
321<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
322<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
323<B>Method Detail</B></FONT></TH>
324</TR>
325</TABLE>
326
327<A NAME="getInstance(org.bouncycastle.asn1.ASN1TaggedObject, boolean)"><!-- --></A><H3>
328getInstance</H3>
329<PRE>
330public static <A HREF="../../../../org/bouncycastle/asn1/pkcs/RSAPrivateKeyStructure.html" title="class in org.bouncycastle.asn1.pkcs">RSAPrivateKeyStructure</A> <B>getInstance</B>(<A HREF="../../../../org/bouncycastle/asn1/ASN1TaggedObject.html" title="class in org.bouncycastle.asn1">ASN1TaggedObject</A>&nbsp;obj,
331                                                 boolean&nbsp;explicit)</PRE>
332<DL>
333<DD><DL>
334</DL>
335</DD>
336</DL>
337<HR>
338
339<A NAME="getInstance(java.lang.Object)"><!-- --></A><H3>
340getInstance</H3>
341<PRE>
342public static <A HREF="../../../../org/bouncycastle/asn1/pkcs/RSAPrivateKeyStructure.html" title="class in org.bouncycastle.asn1.pkcs">RSAPrivateKeyStructure</A> <B>getInstance</B>(java.lang.Object&nbsp;obj)</PRE>
343<DL>
344<DD><DL>
345</DL>
346</DD>
347</DL>
348<HR>
349
350<A NAME="getVersion()"><!-- --></A><H3>
351getVersion</H3>
352<PRE>
353public int <B>getVersion</B>()</PRE>
354<DL>
355<DD><DL>
356</DL>
357</DD>
358</DL>
359<HR>
360
361<A NAME="getModulus()"><!-- --></A><H3>
362getModulus</H3>
363<PRE>
364public java.math.BigInteger <B>getModulus</B>()</PRE>
365<DL>
366<DD><DL>
367</DL>
368</DD>
369</DL>
370<HR>
371
372<A NAME="getPublicExponent()"><!-- --></A><H3>
373getPublicExponent</H3>
374<PRE>
375public java.math.BigInteger <B>getPublicExponent</B>()</PRE>
376<DL>
377<DD><DL>
378</DL>
379</DD>
380</DL>
381<HR>
382
383<A NAME="getPrivateExponent()"><!-- --></A><H3>
384getPrivateExponent</H3>
385<PRE>
386public java.math.BigInteger <B>getPrivateExponent</B>()</PRE>
387<DL>
388<DD><DL>
389</DL>
390</DD>
391</DL>
392<HR>
393
394<A NAME="getPrime1()"><!-- --></A><H3>
395getPrime1</H3>
396<PRE>
397public java.math.BigInteger <B>getPrime1</B>()</PRE>
398<DL>
399<DD><DL>
400</DL>
401</DD>
402</DL>
403<HR>
404
405<A NAME="getPrime2()"><!-- --></A><H3>
406getPrime2</H3>
407<PRE>
408public java.math.BigInteger <B>getPrime2</B>()</PRE>
409<DL>
410<DD><DL>
411</DL>
412</DD>
413</DL>
414<HR>
415
416<A NAME="getExponent1()"><!-- --></A><H3>
417getExponent1</H3>
418<PRE>
419public java.math.BigInteger <B>getExponent1</B>()</PRE>
420<DL>
421<DD><DL>
422</DL>
423</DD>
424</DL>
425<HR>
426
427<A NAME="getExponent2()"><!-- --></A><H3>
428getExponent2</H3>
429<PRE>
430public java.math.BigInteger <B>getExponent2</B>()</PRE>
431<DL>
432<DD><DL>
433</DL>
434</DD>
435</DL>
436<HR>
437
438<A NAME="getCoefficient()"><!-- --></A><H3>
439getCoefficient</H3>
440<PRE>
441public java.math.BigInteger <B>getCoefficient</B>()</PRE>
442<DL>
443<DD><DL>
444</DL>
445</DD>
446</DL>
447<HR>
448
449<A NAME="toASN1Object()"><!-- --></A><H3>
450toASN1Object</H3>
451<PRE>
452public <A HREF="../../../../org/bouncycastle/asn1/DERObject.html" title="class in org.bouncycastle.asn1">DERObject</A> <B>toASN1Object</B>()</PRE>
453<DL>
454<DD>This outputs the key in PKCS1v2 format.
455 <pre>
456      RSAPrivateKey ::= SEQUENCE {
457                          version Version,
458                          modulus INTEGER, -- n
459                          publicExponent INTEGER, -- e
460                          privateExponent INTEGER, -- d
461                          prime1 INTEGER, -- p
462                          prime2 INTEGER, -- q
463                          exponent1 INTEGER, -- d mod (p-1)
464                          exponent2 INTEGER, -- d mod (q-1)
465                          coefficient INTEGER, -- (inverse of q) mod p
466                          otherPrimeInfos OtherPrimeInfos OPTIONAL
467                      }
468
469      Version ::= INTEGER { two-prime(0), multi(1) }
470        (CONSTRAINED BY {-- version must be multi if otherPrimeInfos present --})
471 </pre>
472 <p>
473 This routine is written to output PKCS1 version 2.1, private keys.
474<P>
475<DD><DL>
476<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/bouncycastle/asn1/ASN1Encodable.html#toASN1Object()">toASN1Object</A></CODE> in class <CODE><A HREF="../../../../org/bouncycastle/asn1/ASN1Encodable.html" title="class in org.bouncycastle.asn1">ASN1Encodable</A></CODE></DL>
477</DD>
478<DD><DL>
479</DL>
480</DD>
481</DL>
482<!-- ========= END OF CLASS DATA ========= -->
483<HR>
484
485
486<!-- ======= START OF BOTTOM NAVBAR ====== -->
487<A NAME="navbar_bottom"><!-- --></A>
488<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
489<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
490<TR>
491<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
492<A NAME="navbar_bottom_firstrow"><!-- --></A>
493<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
494  <TR ALIGN="center" VALIGN="top">
495  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
496  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
497  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
498  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
499  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
500  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
501  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
502  </TR>
503</TABLE>
504</TD>
505<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
506<b>Bouncy Castle Cryptography Library 1.45</b></EM>
507</TD>
508</TR>
509
510<TR>
511<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
512&nbsp;<A HREF="../../../../org/bouncycastle/asn1/pkcs/RSAESOAEPparams.html" title="class in org.bouncycastle.asn1.pkcs"><B>PREV CLASS</B></A>&nbsp;
513&nbsp;<A HREF="../../../../org/bouncycastle/asn1/pkcs/RSASSAPSSparams.html" title="class in org.bouncycastle.asn1.pkcs"><B>NEXT CLASS</B></A></FONT></TD>
514<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
515  <A HREF="../../../../index.html?org/bouncycastle/asn1/pkcs/RSAPrivateKeyStructure.html" target="_top"><B>FRAMES</B></A>  &nbsp;
516&nbsp;<A HREF="RSAPrivateKeyStructure.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
517&nbsp;<SCRIPT type="text/javascript">
518  <!--
519  if(window==top) {
520    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
521  }
522  //-->
523</SCRIPT>
524<NOSCRIPT>
525  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
526</NOSCRIPT>
527
528
529</FONT></TD>
530</TR>
531<TR>
532<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
533  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_org.bouncycastle.asn1.ASN1Encodable">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
534<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
535DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
536</TR>
537</TABLE>
538<A NAME="skip-navbar_bottom"></A>
539<!-- ======== END OF BOTTOM NAVBAR ======= -->
540
541<HR>
542
543</BODY>
544</HTML>