/lib/bouncycastle/docs/org/bouncycastle/asn1/x509/RoleSyntax.html

https://bitbucket.org/arkban/somersault · HTML · 517 lines · 438 code · 56 blank · 23 comment · 0 complexity · aebe7d41b004e21ad1519312423a46a8 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. RoleSyntax (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="RoleSyntax (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/x509/ReasonFlags.html" title="class in org.bouncycastle.asn1.x509"><B>PREV CLASS</B></A>&nbsp;
  50. &nbsp;<A HREF="../../../../org/bouncycastle/asn1/x509/RSAPublicKeyStructure.html" title="class in org.bouncycastle.asn1.x509"><B>NEXT CLASS</B></A></FONT></TD>
  51. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  52. <A HREF="../../../../index.html?org/bouncycastle/asn1/x509/RoleSyntax.html" target="_top"><B>FRAMES</B></A> &nbsp;
  53. &nbsp;<A HREF="RoleSyntax.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.x509</FONT>
  80. <BR>
  81. Class RoleSyntax</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.x509.RoleSyntax</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>RoleSyntax</B><DT>extends <A HREF="../../../../org/bouncycastle/asn1/ASN1Encodable.html" title="class in org.bouncycastle.asn1">ASN1Encodable</A></DL>
  93. </PRE>
  94. <P>
  95. Implementation of the RoleSyntax object as specified by the RFC3281.
  96. <pre>
  97. RoleSyntax ::= SEQUENCE {
  98. roleAuthority [0] GeneralNames OPTIONAL,
  99. roleName [1] GeneralName
  100. }
  101. </pre>
  102. <P>
  103. <P>
  104. <HR>
  105. <P>
  106. <!-- =========== FIELD SUMMARY =========== -->
  107. <A NAME="field_summary"><!-- --></A>
  108. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  109. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  110. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  111. <B>Field Summary</B></FONT></TH>
  112. </TR>
  113. </TABLE>
  114. &nbsp;<A NAME="fields_inherited_from_class_org.bouncycastle.asn1.ASN1Encodable"><!-- --></A>
  115. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  116. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  117. <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>
  118. </TR>
  119. <TR BGCOLOR="white" CLASS="TableRowColor">
  120. <TD><CODE><A HREF="../../../../org/bouncycastle/asn1/ASN1Encodable.html#BER">BER</A>, <A HREF="../../../../org/bouncycastle/asn1/ASN1Encodable.html#DER">DER</A></CODE></TD>
  121. </TR>
  122. </TABLE>
  123. &nbsp;
  124. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  125. <A NAME="constructor_summary"><!-- --></A>
  126. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  127. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  128. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  129. <B>Constructor Summary</B></FONT></TH>
  130. </TR>
  131. <TR BGCOLOR="white" CLASS="TableRowColor">
  132. <TD><CODE><B><A HREF="../../../../org/bouncycastle/asn1/x509/RoleSyntax.html#RoleSyntax(org.bouncycastle.asn1.ASN1Sequence)">RoleSyntax</A></B>(<A HREF="../../../../org/bouncycastle/asn1/ASN1Sequence.html" title="class in org.bouncycastle.asn1">ASN1Sequence</A>&nbsp;seq)</CODE>
  133. <BR>
  134. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructor that builds an instance of <code>RoleSyntax</code> by
  135. extracting the encoded elements from the <code>ASN1Sequence</code>
  136. object supplied.</TD>
  137. </TR>
  138. <TR BGCOLOR="white" CLASS="TableRowColor">
  139. <TD><CODE><B><A HREF="../../../../org/bouncycastle/asn1/x509/RoleSyntax.html#RoleSyntax(org.bouncycastle.asn1.x509.GeneralName)">RoleSyntax</A></B>(<A HREF="../../../../org/bouncycastle/asn1/x509/GeneralName.html" title="class in org.bouncycastle.asn1.x509">GeneralName</A>&nbsp;roleName)</CODE>
  140. <BR>
  141. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructor.</TD>
  142. </TR>
  143. <TR BGCOLOR="white" CLASS="TableRowColor">
  144. <TD><CODE><B><A HREF="../../../../org/bouncycastle/asn1/x509/RoleSyntax.html#RoleSyntax(org.bouncycastle.asn1.x509.GeneralNames, org.bouncycastle.asn1.x509.GeneralName)">RoleSyntax</A></B>(<A HREF="../../../../org/bouncycastle/asn1/x509/GeneralNames.html" title="class in org.bouncycastle.asn1.x509">GeneralNames</A>&nbsp;roleAuthority,
  145. <A HREF="../../../../org/bouncycastle/asn1/x509/GeneralName.html" title="class in org.bouncycastle.asn1.x509">GeneralName</A>&nbsp;roleName)</CODE>
  146. <BR>
  147. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructor.</TD>
  148. </TR>
  149. <TR BGCOLOR="white" CLASS="TableRowColor">
  150. <TD><CODE><B><A HREF="../../../../org/bouncycastle/asn1/x509/RoleSyntax.html#RoleSyntax(java.lang.String)">RoleSyntax</A></B>(java.lang.String&nbsp;roleName)</CODE>
  151. <BR>
  152. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Utility constructor.</TD>
  153. </TR>
  154. </TABLE>
  155. &nbsp;
  156. <!-- ========== METHOD SUMMARY =========== -->
  157. <A NAME="method_summary"><!-- --></A>
  158. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  159. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  160. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  161. <B>Method Summary</B></FONT></TH>
  162. </TR>
  163. <TR BGCOLOR="white" CLASS="TableRowColor">
  164. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  165. <CODE>static&nbsp;<A HREF="../../../../org/bouncycastle/asn1/x509/RoleSyntax.html" title="class in org.bouncycastle.asn1.x509">RoleSyntax</A></CODE></FONT></TD>
  166. <TD><CODE><B><A HREF="../../../../org/bouncycastle/asn1/x509/RoleSyntax.html#getInstance(java.lang.Object)">getInstance</A></B>(java.lang.Object&nbsp;obj)</CODE>
  167. <BR>
  168. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RoleSyntax factory method.</TD>
  169. </TR>
  170. <TR BGCOLOR="white" CLASS="TableRowColor">
  171. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  172. <CODE>&nbsp;<A HREF="../../../../org/bouncycastle/asn1/x509/GeneralNames.html" title="class in org.bouncycastle.asn1.x509">GeneralNames</A></CODE></FONT></TD>
  173. <TD><CODE><B><A HREF="../../../../org/bouncycastle/asn1/x509/RoleSyntax.html#getRoleAuthority()">getRoleAuthority</A></B>()</CODE>
  174. <BR>
  175. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the role authority of this RoleSyntax.</TD>
  176. </TR>
  177. <TR BGCOLOR="white" CLASS="TableRowColor">
  178. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  179. <CODE>&nbsp;java.lang.String[]</CODE></FONT></TD>
  180. <TD><CODE><B><A HREF="../../../../org/bouncycastle/asn1/x509/RoleSyntax.html#getRoleAuthorityAsString()">getRoleAuthorityAsString</A></B>()</CODE>
  181. <BR>
  182. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the role authority as a <code>String[]</code> object.</TD>
  183. </TR>
  184. <TR BGCOLOR="white" CLASS="TableRowColor">
  185. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  186. <CODE>&nbsp;<A HREF="../../../../org/bouncycastle/asn1/x509/GeneralName.html" title="class in org.bouncycastle.asn1.x509">GeneralName</A></CODE></FONT></TD>
  187. <TD><CODE><B><A HREF="../../../../org/bouncycastle/asn1/x509/RoleSyntax.html#getRoleName()">getRoleName</A></B>()</CODE>
  188. <BR>
  189. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the role name of this RoleSyntax.</TD>
  190. </TR>
  191. <TR BGCOLOR="white" CLASS="TableRowColor">
  192. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  193. <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  194. <TD><CODE><B><A HREF="../../../../org/bouncycastle/asn1/x509/RoleSyntax.html#getRoleNameAsString()">getRoleNameAsString</A></B>()</CODE>
  195. <BR>
  196. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the role name as a <code>java.lang.String</code> object.</TD>
  197. </TR>
  198. <TR BGCOLOR="white" CLASS="TableRowColor">
  199. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  200. <CODE>&nbsp;<A HREF="../../../../org/bouncycastle/asn1/DERObject.html" title="class in org.bouncycastle.asn1">DERObject</A></CODE></FONT></TD>
  201. <TD><CODE><B><A HREF="../../../../org/bouncycastle/asn1/x509/RoleSyntax.html#toASN1Object()">toASN1Object</A></B>()</CODE>
  202. <BR>
  203. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Implementation of the method <code>toASN1Object</code> as
  204. required by the superclass <code>ASN1Encodable</code>.</TD>
  205. </TR>
  206. <TR BGCOLOR="white" CLASS="TableRowColor">
  207. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  208. <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  209. <TD><CODE><B><A HREF="../../../../org/bouncycastle/asn1/x509/RoleSyntax.html#toString()">toString</A></B>()</CODE>
  210. <BR>
  211. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  212. </TR>
  213. </TABLE>
  214. &nbsp;<A NAME="methods_inherited_from_class_org.bouncycastle.asn1.ASN1Encodable"><!-- --></A>
  215. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  216. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  217. <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>
  218. </TR>
  219. <TR BGCOLOR="white" CLASS="TableRowColor">
  220. <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>
  221. </TR>
  222. </TABLE>
  223. &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  224. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  225. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  226. <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
  227. </TR>
  228. <TR BGCOLOR="white" CLASS="TableRowColor">
  229. <TD><CODE>clone, finalize, getClass, notify, notifyAll, wait, wait, wait</CODE></TD>
  230. </TR>
  231. </TABLE>
  232. &nbsp;
  233. <P>
  234. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  235. <A NAME="constructor_detail"><!-- --></A>
  236. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  237. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  238. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  239. <B>Constructor Detail</B></FONT></TH>
  240. </TR>
  241. </TABLE>
  242. <A NAME="RoleSyntax(org.bouncycastle.asn1.x509.GeneralNames, org.bouncycastle.asn1.x509.GeneralName)"><!-- --></A><H3>
  243. RoleSyntax</H3>
  244. <PRE>
  245. public <B>RoleSyntax</B>(<A HREF="../../../../org/bouncycastle/asn1/x509/GeneralNames.html" title="class in org.bouncycastle.asn1.x509">GeneralNames</A>&nbsp;roleAuthority,
  246. <A HREF="../../../../org/bouncycastle/asn1/x509/GeneralName.html" title="class in org.bouncycastle.asn1.x509">GeneralName</A>&nbsp;roleName)</PRE>
  247. <DL>
  248. <DD>Constructor.
  249. <P>
  250. <DL>
  251. <DT><B>Parameters:</B><DD><CODE>roleAuthority</CODE> - the role authority of this RoleSyntax.<DD><CODE>roleName</CODE> - the role name of this RoleSyntax.</DL>
  252. </DL>
  253. <HR>
  254. <A NAME="RoleSyntax(org.bouncycastle.asn1.x509.GeneralName)"><!-- --></A><H3>
  255. RoleSyntax</H3>
  256. <PRE>
  257. public <B>RoleSyntax</B>(<A HREF="../../../../org/bouncycastle/asn1/x509/GeneralName.html" title="class in org.bouncycastle.asn1.x509">GeneralName</A>&nbsp;roleName)</PRE>
  258. <DL>
  259. <DD>Constructor. Invoking this constructor is the same as invoking
  260. <code>new RoleSyntax(null, roleName)</code>.
  261. <P>
  262. <DL>
  263. <DT><B>Parameters:</B><DD><CODE>roleName</CODE> - the role name of this RoleSyntax.</DL>
  264. </DL>
  265. <HR>
  266. <A NAME="RoleSyntax(java.lang.String)"><!-- --></A><H3>
  267. RoleSyntax</H3>
  268. <PRE>
  269. public <B>RoleSyntax</B>(java.lang.String&nbsp;roleName)</PRE>
  270. <DL>
  271. <DD>Utility constructor. Takes a <code>String</code> argument representing
  272. the role name, builds a <code>GeneralName</code> to hold the role name
  273. and calls the constructor that takes a <code>GeneralName</code>.
  274. <P>
  275. <DL>
  276. <DT><B>Parameters:</B><DD><CODE>roleName</CODE> - </DL>
  277. </DL>
  278. <HR>
  279. <A NAME="RoleSyntax(org.bouncycastle.asn1.ASN1Sequence)"><!-- --></A><H3>
  280. RoleSyntax</H3>
  281. <PRE>
  282. public <B>RoleSyntax</B>(<A HREF="../../../../org/bouncycastle/asn1/ASN1Sequence.html" title="class in org.bouncycastle.asn1">ASN1Sequence</A>&nbsp;seq)</PRE>
  283. <DL>
  284. <DD>Constructor that builds an instance of <code>RoleSyntax</code> by
  285. extracting the encoded elements from the <code>ASN1Sequence</code>
  286. object supplied.
  287. <P>
  288. <DL>
  289. <DT><B>Parameters:</B><DD><CODE>seq</CODE> - an instance of <code>ASN1Sequence</code> that holds
  290. the encoded elements used to build this <code>RoleSyntax</code>.</DL>
  291. </DL>
  292. <!-- ============ METHOD DETAIL ========== -->
  293. <A NAME="method_detail"><!-- --></A>
  294. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  295. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  296. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  297. <B>Method Detail</B></FONT></TH>
  298. </TR>
  299. </TABLE>
  300. <A NAME="getInstance(java.lang.Object)"><!-- --></A><H3>
  301. getInstance</H3>
  302. <PRE>
  303. public static <A HREF="../../../../org/bouncycastle/asn1/x509/RoleSyntax.html" title="class in org.bouncycastle.asn1.x509">RoleSyntax</A> <B>getInstance</B>(java.lang.Object&nbsp;obj)</PRE>
  304. <DL>
  305. <DD>RoleSyntax factory method.
  306. <P>
  307. <DD><DL>
  308. <DT><B>Parameters:</B><DD><CODE>obj</CODE> - the object used to construct an instance of <code>
  309. RoleSyntax</code>. It must be an instance of <code>RoleSyntax
  310. </code> or <code>ASN1Sequence</code>.
  311. <DT><B>Returns:</B><DD>the instance of <code>RoleSyntax</code> built from the
  312. supplied object.
  313. <DT><B>Throws:</B>
  314. <DD><CODE>java.lang.IllegalArgumentException</CODE> - if the object passed
  315. to the factory is not an instance of <code>RoleSyntax</code> or
  316. <code>ASN1Sequence</code>.</DL>
  317. </DD>
  318. </DL>
  319. <HR>
  320. <A NAME="getRoleAuthority()"><!-- --></A><H3>
  321. getRoleAuthority</H3>
  322. <PRE>
  323. public <A HREF="../../../../org/bouncycastle/asn1/x509/GeneralNames.html" title="class in org.bouncycastle.asn1.x509">GeneralNames</A> <B>getRoleAuthority</B>()</PRE>
  324. <DL>
  325. <DD>Gets the role authority of this RoleSyntax.
  326. <P>
  327. <DD><DL>
  328. <DT><B>Returns:</B><DD>an instance of <code>GeneralNames</code> holding the
  329. role authority of this RoleSyntax.</DL>
  330. </DD>
  331. </DL>
  332. <HR>
  333. <A NAME="getRoleName()"><!-- --></A><H3>
  334. getRoleName</H3>
  335. <PRE>
  336. public <A HREF="../../../../org/bouncycastle/asn1/x509/GeneralName.html" title="class in org.bouncycastle.asn1.x509">GeneralName</A> <B>getRoleName</B>()</PRE>
  337. <DL>
  338. <DD>Gets the role name of this RoleSyntax.
  339. <P>
  340. <DD><DL>
  341. <DT><B>Returns:</B><DD>an instance of <code>GeneralName</code> holding the
  342. role name of this RoleSyntax.</DL>
  343. </DD>
  344. </DL>
  345. <HR>
  346. <A NAME="getRoleNameAsString()"><!-- --></A><H3>
  347. getRoleNameAsString</H3>
  348. <PRE>
  349. public java.lang.String <B>getRoleNameAsString</B>()</PRE>
  350. <DL>
  351. <DD>Gets the role name as a <code>java.lang.String</code> object.
  352. <P>
  353. <DD><DL>
  354. <DT><B>Returns:</B><DD>the role name of this RoleSyntax represented as a
  355. <code>java.lang.String</code> object.</DL>
  356. </DD>
  357. </DL>
  358. <HR>
  359. <A NAME="getRoleAuthorityAsString()"><!-- --></A><H3>
  360. getRoleAuthorityAsString</H3>
  361. <PRE>
  362. public java.lang.String[] <B>getRoleAuthorityAsString</B>()</PRE>
  363. <DL>
  364. <DD>Gets the role authority as a <code>String[]</code> object.
  365. <P>
  366. <DD><DL>
  367. <DT><B>Returns:</B><DD>the role authority of this RoleSyntax represented as a
  368. <code>String[]</code> array.</DL>
  369. </DD>
  370. </DL>
  371. <HR>
  372. <A NAME="toASN1Object()"><!-- --></A><H3>
  373. toASN1Object</H3>
  374. <PRE>
  375. public <A HREF="../../../../org/bouncycastle/asn1/DERObject.html" title="class in org.bouncycastle.asn1">DERObject</A> <B>toASN1Object</B>()</PRE>
  376. <DL>
  377. <DD>Implementation of the method <code>toASN1Object</code> as
  378. required by the superclass <code>ASN1Encodable</code>.
  379. <pre>
  380. RoleSyntax ::= SEQUENCE {
  381. roleAuthority [0] GeneralNames OPTIONAL,
  382. roleName [1] GeneralName
  383. }
  384. </pre>
  385. <P>
  386. <DD><DL>
  387. <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>
  388. </DD>
  389. <DD><DL>
  390. </DL>
  391. </DD>
  392. </DL>
  393. <HR>
  394. <A NAME="toString()"><!-- --></A><H3>
  395. toString</H3>
  396. <PRE>
  397. public java.lang.String <B>toString</B>()</PRE>
  398. <DL>
  399. <DD><DL>
  400. <DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL>
  401. </DD>
  402. <DD><DL>
  403. </DL>
  404. </DD>
  405. </DL>
  406. <!-- ========= END OF CLASS DATA ========= -->
  407. <HR>
  408. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  409. <A NAME="navbar_bottom"><!-- --></A>
  410. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  411. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  412. <TR>
  413. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  414. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  415. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  416. <TR ALIGN="center" VALIGN="top">
  417. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  418. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  419. <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  420. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  421. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  422. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  423. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  424. </TR>
  425. </TABLE>
  426. </TD>
  427. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  428. <b>Bouncy Castle Cryptography Library 1.45</b></EM>
  429. </TD>
  430. </TR>
  431. <TR>
  432. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  433. &nbsp;<A HREF="../../../../org/bouncycastle/asn1/x509/ReasonFlags.html" title="class in org.bouncycastle.asn1.x509"><B>PREV CLASS</B></A>&nbsp;
  434. &nbsp;<A HREF="../../../../org/bouncycastle/asn1/x509/RSAPublicKeyStructure.html" title="class in org.bouncycastle.asn1.x509"><B>NEXT CLASS</B></A></FONT></TD>
  435. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  436. <A HREF="../../../../index.html?org/bouncycastle/asn1/x509/RoleSyntax.html" target="_top"><B>FRAMES</B></A> &nbsp;
  437. &nbsp;<A HREF="RoleSyntax.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  438. &nbsp;<SCRIPT type="text/javascript">
  439. <!--
  440. if(window==top) {
  441. document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  442. }
  443. //-->
  444. </SCRIPT>
  445. <NOSCRIPT>
  446. <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
  447. </NOSCRIPT>
  448. </FONT></TD>
  449. </TR>
  450. <TR>
  451. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  452. 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>
  453. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  454. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  455. </TR>
  456. </TABLE>
  457. <A NAME="skip-navbar_bottom"></A>
  458. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  459. <HR>
  460. </BODY>
  461. </HTML>