/lib/bouncycastle/docs/org/bouncycastle/jce/spec/ElGamalPublicKeySpec.html

https://bitbucket.org/arkban/somersault · HTML · 274 lines · 219 code · 33 blank · 22 comment · 0 complexity · d1a806157b92535cbe43efb4fc28fab0 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:41 EST 2010 -->
  6. <TITLE>
  7. ElGamalPublicKeySpec (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="ElGamalPublicKeySpec (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/jce/spec/ElGamalPrivateKeySpec.html" title="class in org.bouncycastle.jce.spec"><B>PREV CLASS</B></A>&nbsp;
  50. &nbsp;<A HREF="../../../../org/bouncycastle/jce/spec/GOST28147ParameterSpec.html" title="class in org.bouncycastle.jce.spec"><B>NEXT CLASS</B></A></FONT></TD>
  51. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  52. <A HREF="../../../../index.html?org/bouncycastle/jce/spec/ElGamalPublicKeySpec.html" target="_top"><B>FRAMES</B></A> &nbsp;
  53. &nbsp;<A HREF="ElGamalPublicKeySpec.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;FIELD&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.jce.spec</FONT>
  80. <BR>
  81. Class ElGamalPublicKeySpec</H2>
  82. <PRE>
  83. java.lang.Object
  84. <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../org/bouncycastle/jce/spec/ElGamalKeySpec.html" title="class in org.bouncycastle.jce.spec">org.bouncycastle.jce.spec.ElGamalKeySpec</A>
  85. <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.bouncycastle.jce.spec.ElGamalPublicKeySpec</B>
  86. </PRE>
  87. <DL>
  88. <DT><B>All Implemented Interfaces:</B> <DD>java.security.spec.KeySpec</DD>
  89. </DL>
  90. <HR>
  91. <DL>
  92. <DT><PRE>public class <B>ElGamalPublicKeySpec</B><DT>extends <A HREF="../../../../org/bouncycastle/jce/spec/ElGamalKeySpec.html" title="class in org.bouncycastle.jce.spec">ElGamalKeySpec</A></DL>
  93. </PRE>
  94. <P>
  95. This class specifies an ElGamal public key with its associated parameters.
  96. <P>
  97. <P>
  98. <DL>
  99. <DT><B>See Also:</B><DD><A HREF="../../../../org/bouncycastle/jce/spec/ElGamalPrivateKeySpec.html" title="class in org.bouncycastle.jce.spec"><CODE>ElGamalPrivateKeySpec</CODE></A></DL>
  100. <HR>
  101. <P>
  102. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  103. <A NAME="constructor_summary"><!-- --></A>
  104. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  105. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  106. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  107. <B>Constructor Summary</B></FONT></TH>
  108. </TR>
  109. <TR BGCOLOR="white" CLASS="TableRowColor">
  110. <TD><CODE><B><A HREF="../../../../org/bouncycastle/jce/spec/ElGamalPublicKeySpec.html#ElGamalPublicKeySpec(java.math.BigInteger, org.bouncycastle.jce.spec.ElGamalParameterSpec)">ElGamalPublicKeySpec</A></B>(java.math.BigInteger&nbsp;y,
  111. <A HREF="../../../../org/bouncycastle/jce/spec/ElGamalParameterSpec.html" title="class in org.bouncycastle.jce.spec">ElGamalParameterSpec</A>&nbsp;spec)</CODE>
  112. <BR>
  113. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  114. </TR>
  115. </TABLE>
  116. &nbsp;
  117. <!-- ========== METHOD SUMMARY =========== -->
  118. <A NAME="method_summary"><!-- --></A>
  119. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  120. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  121. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  122. <B>Method Summary</B></FONT></TH>
  123. </TR>
  124. <TR BGCOLOR="white" CLASS="TableRowColor">
  125. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  126. <CODE>&nbsp;java.math.BigInteger</CODE></FONT></TD>
  127. <TD><CODE><B><A HREF="../../../../org/bouncycastle/jce/spec/ElGamalPublicKeySpec.html#getY()">getY</A></B>()</CODE>
  128. <BR>
  129. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the public value <code>y</code>.</TD>
  130. </TR>
  131. </TABLE>
  132. &nbsp;<A NAME="methods_inherited_from_class_org.bouncycastle.jce.spec.ElGamalKeySpec"><!-- --></A>
  133. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  134. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  135. <TH ALIGN="left"><B>Methods inherited from class org.bouncycastle.jce.spec.<A HREF="../../../../org/bouncycastle/jce/spec/ElGamalKeySpec.html" title="class in org.bouncycastle.jce.spec">ElGamalKeySpec</A></B></TH>
  136. </TR>
  137. <TR BGCOLOR="white" CLASS="TableRowColor">
  138. <TD><CODE><A HREF="../../../../org/bouncycastle/jce/spec/ElGamalKeySpec.html#getParams()">getParams</A></CODE></TD>
  139. </TR>
  140. </TABLE>
  141. &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  142. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  143. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  144. <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
  145. </TR>
  146. <TR BGCOLOR="white" CLASS="TableRowColor">
  147. <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
  148. </TR>
  149. </TABLE>
  150. &nbsp;
  151. <P>
  152. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  153. <A NAME="constructor_detail"><!-- --></A>
  154. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  155. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  156. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  157. <B>Constructor Detail</B></FONT></TH>
  158. </TR>
  159. </TABLE>
  160. <A NAME="ElGamalPublicKeySpec(java.math.BigInteger, org.bouncycastle.jce.spec.ElGamalParameterSpec)"><!-- --></A><H3>
  161. ElGamalPublicKeySpec</H3>
  162. <PRE>
  163. public <B>ElGamalPublicKeySpec</B>(java.math.BigInteger&nbsp;y,
  164. <A HREF="../../../../org/bouncycastle/jce/spec/ElGamalParameterSpec.html" title="class in org.bouncycastle.jce.spec">ElGamalParameterSpec</A>&nbsp;spec)</PRE>
  165. <DL>
  166. </DL>
  167. <!-- ============ METHOD DETAIL ========== -->
  168. <A NAME="method_detail"><!-- --></A>
  169. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  170. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  171. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  172. <B>Method Detail</B></FONT></TH>
  173. </TR>
  174. </TABLE>
  175. <A NAME="getY()"><!-- --></A><H3>
  176. getY</H3>
  177. <PRE>
  178. public java.math.BigInteger <B>getY</B>()</PRE>
  179. <DL>
  180. <DD>Returns the public value <code>y</code>.
  181. <P>
  182. <DD><DL>
  183. <DT><B>Returns:</B><DD>the public value <code>y</code></DL>
  184. </DD>
  185. </DL>
  186. <!-- ========= END OF CLASS DATA ========= -->
  187. <HR>
  188. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  189. <A NAME="navbar_bottom"><!-- --></A>
  190. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  191. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  192. <TR>
  193. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  194. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  195. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  196. <TR ALIGN="center" VALIGN="top">
  197. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  198. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  199. <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  200. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  201. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  202. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  203. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  204. </TR>
  205. </TABLE>
  206. </TD>
  207. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  208. <b>Bouncy Castle Cryptography Library 1.45</b></EM>
  209. </TD>
  210. </TR>
  211. <TR>
  212. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  213. &nbsp;<A HREF="../../../../org/bouncycastle/jce/spec/ElGamalPrivateKeySpec.html" title="class in org.bouncycastle.jce.spec"><B>PREV CLASS</B></A>&nbsp;
  214. &nbsp;<A HREF="../../../../org/bouncycastle/jce/spec/GOST28147ParameterSpec.html" title="class in org.bouncycastle.jce.spec"><B>NEXT CLASS</B></A></FONT></TD>
  215. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  216. <A HREF="../../../../index.html?org/bouncycastle/jce/spec/ElGamalPublicKeySpec.html" target="_top"><B>FRAMES</B></A> &nbsp;
  217. &nbsp;<A HREF="ElGamalPublicKeySpec.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  218. &nbsp;<SCRIPT type="text/javascript">
  219. <!--
  220. if(window==top) {
  221. document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  222. }
  223. //-->
  224. </SCRIPT>
  225. <NOSCRIPT>
  226. <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
  227. </NOSCRIPT>
  228. </FONT></TD>
  229. </TR>
  230. <TR>
  231. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  232. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  233. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  234. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  235. </TR>
  236. </TABLE>
  237. <A NAME="skip-navbar_bottom"></A>
  238. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  239. <HR>
  240. </BODY>
  241. </HTML>