/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

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