/Generated/v4.1/Javax.Net.Ssl.cs

https://gitlab.com/Pfhoenix/api · C# · 1165 lines · 392 code · 101 blank · 672 comment · 0 complexity · 3ea70f3e3259a43e0c099936033e65e5 MD5 · raw file

  1. // Copyright (C) 2014 dot42
  2. //
  3. // Original filename: Javax.Net.Ssl.cs
  4. //
  5. // Licensed under the Apache License, Version 2.0 (the "License");
  6. // you may not use this file except in compliance with the License.
  7. // You may obtain a copy of the License at
  8. //
  9. // http://www.apache.org/licenses/LICENSE-2.0
  10. //
  11. // Unless required by applicable law or agreed to in writing, software
  12. // distributed under the License is distributed on an "AS IS" BASIS,
  13. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. // See the License for the specific language governing permissions and
  15. // limitations under the License.
  16. #pragma warning disable 1717
  17. namespace Javax.Net.Ssl
  18. {
  19. /// <summary>
  20. /// <para>The extension of <c> ServerSocket </c> which provides secure server sockets based on protocols like SSL, TLS, or others. </para>
  21. /// </summary>
  22. /// <java-name>
  23. /// javax/net/ssl/SSLServerSocket
  24. /// </java-name>
  25. [Dot42.DexImport("javax/net/ssl/SSLServerSocket", AccessFlags = 1057)]
  26. public abstract partial class SSLServerSocket : global::Java.Net.ServerSocket
  27. /* scope: __dot42__ */
  28. {
  29. /// <summary>
  30. /// <para>Only to be used by subclasses. </para><para>Creates a TCP server socket with the default authentication context.</para><para></para>
  31. /// </summary>
  32. [Dot42.DexImport("<init>", "()V", AccessFlags = 4)]
  33. protected internal SSLServerSocket() /* MethodBuilder.Create */
  34. {
  35. }
  36. /// <summary>
  37. /// <para>Only to be used by subclasses. </para><para>Creates a TCP server socket on the specified port with the default authentication context. The connection's default backlog size is 50 connections. </para>
  38. /// </summary>
  39. [Dot42.DexImport("<init>", "(I)V", AccessFlags = 4)]
  40. protected internal SSLServerSocket(int port) /* MethodBuilder.Create */
  41. {
  42. }
  43. /// <summary>
  44. /// <para>Only to be used by subclasses. </para><para>Creates a TCP server socket on the specified port using the specified backlog and the default authentication context.</para><para></para>
  45. /// </summary>
  46. [Dot42.DexImport("<init>", "(II)V", AccessFlags = 4)]
  47. protected internal SSLServerSocket(int port, int backlog) /* MethodBuilder.Create */
  48. {
  49. }
  50. /// <summary>
  51. /// <para>Only to be used by subclasses. </para><para>Creates a TCP server socket on the specified port, using the specified backlog, listening on the specified interface, and using the default authentication context.</para><para></para>
  52. /// </summary>
  53. [Dot42.DexImport("<init>", "(IILjava/net/InetAddress;)V", AccessFlags = 4)]
  54. protected internal SSLServerSocket(int port, int backlog, global::Java.Net.InetAddress address) /* MethodBuilder.Create */
  55. {
  56. }
  57. /// <summary>
  58. /// <para>Returns the names of the enabled cipher suites to be used for new connections.</para><para></para>
  59. /// </summary>
  60. /// <returns>
  61. /// <para>the names of the enabled cipher suites to be used for new connections. </para>
  62. /// </returns>
  63. /// <java-name>
  64. /// getEnabledCipherSuites
  65. /// </java-name>
  66. [Dot42.DexImport("getEnabledCipherSuites", "()[Ljava/lang/String;", AccessFlags = 1025)]
  67. public abstract string[] GetEnabledCipherSuites() /* MethodBuilder.Create */ ;
  68. /// <summary>
  69. /// <para>Sets the names of the cipher suites to be enabled for new connections. Only cipher suites returned by getSupportedCipherSuites() are allowed.</para><para></para>
  70. /// </summary>
  71. /// <java-name>
  72. /// setEnabledCipherSuites
  73. /// </java-name>
  74. [Dot42.DexImport("setEnabledCipherSuites", "([Ljava/lang/String;)V", AccessFlags = 1025)]
  75. public abstract void SetEnabledCipherSuites(string[] suites) /* MethodBuilder.Create */ ;
  76. /// <summary>
  77. /// <para>Returns the names of the supported cipher suites.</para><para></para>
  78. /// </summary>
  79. /// <returns>
  80. /// <para>the names of the supported cipher suites. </para>
  81. /// </returns>
  82. /// <java-name>
  83. /// getSupportedCipherSuites
  84. /// </java-name>
  85. [Dot42.DexImport("getSupportedCipherSuites", "()[Ljava/lang/String;", AccessFlags = 1025)]
  86. public abstract string[] GetSupportedCipherSuites() /* MethodBuilder.Create */ ;
  87. /// <summary>
  88. /// <para>Returns the names of the supported protocols.</para><para></para>
  89. /// </summary>
  90. /// <returns>
  91. /// <para>the names of the supported protocols. </para>
  92. /// </returns>
  93. /// <java-name>
  94. /// getSupportedProtocols
  95. /// </java-name>
  96. [Dot42.DexImport("getSupportedProtocols", "()[Ljava/lang/String;", AccessFlags = 1025)]
  97. public abstract string[] GetSupportedProtocols() /* MethodBuilder.Create */ ;
  98. /// <summary>
  99. /// <para>Returns the names of the enabled protocols to be used for new connections.</para><para></para>
  100. /// </summary>
  101. /// <returns>
  102. /// <para>the names of the enabled protocols to be used for new connections. </para>
  103. /// </returns>
  104. /// <java-name>
  105. /// getEnabledProtocols
  106. /// </java-name>
  107. [Dot42.DexImport("getEnabledProtocols", "()[Ljava/lang/String;", AccessFlags = 1025)]
  108. public abstract string[] GetEnabledProtocols() /* MethodBuilder.Create */ ;
  109. /// <summary>
  110. /// <para>Sets the names of the protocols to be enabled for new connections. Only protocols returned by getSupportedProtocols() are allowed.</para><para></para>
  111. /// </summary>
  112. /// <java-name>
  113. /// setEnabledProtocols
  114. /// </java-name>
  115. [Dot42.DexImport("setEnabledProtocols", "([Ljava/lang/String;)V", AccessFlags = 1025)]
  116. public abstract void SetEnabledProtocols(string[] protocols) /* MethodBuilder.Create */ ;
  117. /// <summary>
  118. /// <para>Sets whether server-mode connections will be configured to require client authentication. The client authentication is one of the following: <ul><li><para>authentication required </para></li><li><para>authentication requested </para></li><li><para>no authentication needed </para></li></ul>This method overrides the setting of setWantClientAuth(boolean).</para><para></para>
  119. /// </summary>
  120. /// <java-name>
  121. /// setNeedClientAuth
  122. /// </java-name>
  123. [Dot42.DexImport("setNeedClientAuth", "(Z)V", AccessFlags = 1025)]
  124. public abstract void SetNeedClientAuth(bool need) /* MethodBuilder.Create */ ;
  125. /// <summary>
  126. /// <para>Returns whether server-mode connections will be configured to require client authentication.</para><para></para>
  127. /// </summary>
  128. /// <returns>
  129. /// <para><c> true </c> if client authentication is required, <c> false </c> if no client authentication is needed. </para>
  130. /// </returns>
  131. /// <java-name>
  132. /// getNeedClientAuth
  133. /// </java-name>
  134. [Dot42.DexImport("getNeedClientAuth", "()Z", AccessFlags = 1025)]
  135. public abstract bool GetNeedClientAuth() /* MethodBuilder.Create */ ;
  136. /// <summary>
  137. /// <para>Sets whether server-mode connections will be configured to request client authentication. The client authentication is one of the following: <ul><li><para>authentication required </para></li><li><para>authentication requested </para></li><li><para>no authentication needed </para></li></ul>This method overrides the setting of setNeedClientAuth(boolean).</para><para></para>
  138. /// </summary>
  139. /// <java-name>
  140. /// setWantClientAuth
  141. /// </java-name>
  142. [Dot42.DexImport("setWantClientAuth", "(Z)V", AccessFlags = 1025)]
  143. public abstract void SetWantClientAuth(bool want) /* MethodBuilder.Create */ ;
  144. /// <summary>
  145. /// <para>Returns whether server-mode connections will be configured to request client authentication.</para><para></para>
  146. /// </summary>
  147. /// <returns>
  148. /// <para><c> true </c> is client authentication will be requested, <c> false </c> if no client authentication is needed. </para>
  149. /// </returns>
  150. /// <java-name>
  151. /// getWantClientAuth
  152. /// </java-name>
  153. [Dot42.DexImport("getWantClientAuth", "()Z", AccessFlags = 1025)]
  154. public abstract bool GetWantClientAuth() /* MethodBuilder.Create */ ;
  155. /// <summary>
  156. /// <para>Sets whether new connections should act in client mode when handshaking.</para><para></para>
  157. /// </summary>
  158. /// <java-name>
  159. /// setUseClientMode
  160. /// </java-name>
  161. [Dot42.DexImport("setUseClientMode", "(Z)V", AccessFlags = 1025)]
  162. public abstract void SetUseClientMode(bool mode) /* MethodBuilder.Create */ ;
  163. /// <summary>
  164. /// <para>Returns whether new connection will act in client mode when handshaking.</para><para></para>
  165. /// </summary>
  166. /// <returns>
  167. /// <para><c> true </c> if new connections will act in client mode when handshaking, <c> false </c> if not. </para>
  168. /// </returns>
  169. /// <java-name>
  170. /// getUseClientMode
  171. /// </java-name>
  172. [Dot42.DexImport("getUseClientMode", "()Z", AccessFlags = 1025)]
  173. public abstract bool GetUseClientMode() /* MethodBuilder.Create */ ;
  174. /// <summary>
  175. /// <para>Sets whether new SSL sessions may be established for new connections.</para><para></para>
  176. /// </summary>
  177. /// <java-name>
  178. /// setEnableSessionCreation
  179. /// </java-name>
  180. [Dot42.DexImport("setEnableSessionCreation", "(Z)V", AccessFlags = 1025)]
  181. public abstract void SetEnableSessionCreation(bool flag) /* MethodBuilder.Create */ ;
  182. /// <summary>
  183. /// <para>Returns whether new SSL sessions may be established for new connections.</para><para></para>
  184. /// </summary>
  185. /// <returns>
  186. /// <para><c> true </c> if new SSL sessions may be established, <c> false </c> if existing SSL sessions must be reused. </para>
  187. /// </returns>
  188. /// <java-name>
  189. /// getEnableSessionCreation
  190. /// </java-name>
  191. [Dot42.DexImport("getEnableSessionCreation", "()Z", AccessFlags = 1025)]
  192. public abstract bool GetEnableSessionCreation() /* MethodBuilder.Create */ ;
  193. /// <summary>
  194. /// <para>Returns the names of the enabled cipher suites to be used for new connections.</para><para></para>
  195. /// </summary>
  196. /// <returns>
  197. /// <para>the names of the enabled cipher suites to be used for new connections. </para>
  198. /// </returns>
  199. /// <java-name>
  200. /// getEnabledCipherSuites
  201. /// </java-name>
  202. public string[] EnabledCipherSuites
  203. {
  204. [Dot42.DexImport("getEnabledCipherSuites", "()[Ljava/lang/String;", AccessFlags = 1025)]
  205. get{ return GetEnabledCipherSuites(); }
  206. [Dot42.DexImport("setEnabledCipherSuites", "([Ljava/lang/String;)V", AccessFlags = 1025)]
  207. set{ SetEnabledCipherSuites(value); }
  208. }
  209. /// <summary>
  210. /// <para>Returns the names of the supported cipher suites.</para><para></para>
  211. /// </summary>
  212. /// <returns>
  213. /// <para>the names of the supported cipher suites. </para>
  214. /// </returns>
  215. /// <java-name>
  216. /// getSupportedCipherSuites
  217. /// </java-name>
  218. public string[] SupportedCipherSuites
  219. {
  220. [Dot42.DexImport("getSupportedCipherSuites", "()[Ljava/lang/String;", AccessFlags = 1025)]
  221. get{ return GetSupportedCipherSuites(); }
  222. }
  223. /// <summary>
  224. /// <para>Returns the names of the supported protocols.</para><para></para>
  225. /// </summary>
  226. /// <returns>
  227. /// <para>the names of the supported protocols. </para>
  228. /// </returns>
  229. /// <java-name>
  230. /// getSupportedProtocols
  231. /// </java-name>
  232. public string[] SupportedProtocols
  233. {
  234. [Dot42.DexImport("getSupportedProtocols", "()[Ljava/lang/String;", AccessFlags = 1025)]
  235. get{ return GetSupportedProtocols(); }
  236. }
  237. /// <summary>
  238. /// <para>Returns the names of the enabled protocols to be used for new connections.</para><para></para>
  239. /// </summary>
  240. /// <returns>
  241. /// <para>the names of the enabled protocols to be used for new connections. </para>
  242. /// </returns>
  243. /// <java-name>
  244. /// getEnabledProtocols
  245. /// </java-name>
  246. public string[] EnabledProtocols
  247. {
  248. [Dot42.DexImport("getEnabledProtocols", "()[Ljava/lang/String;", AccessFlags = 1025)]
  249. get{ return GetEnabledProtocols(); }
  250. [Dot42.DexImport("setEnabledProtocols", "([Ljava/lang/String;)V", AccessFlags = 1025)]
  251. set{ SetEnabledProtocols(value); }
  252. }
  253. /// <summary>
  254. /// <para>Returns whether server-mode connections will be configured to require client authentication.</para><para></para>
  255. /// </summary>
  256. /// <returns>
  257. /// <para><c> true </c> if client authentication is required, <c> false </c> if no client authentication is needed. </para>
  258. /// </returns>
  259. /// <java-name>
  260. /// getNeedClientAuth
  261. /// </java-name>
  262. public bool IsNeedClientAuth
  263. {
  264. [Dot42.DexImport("getNeedClientAuth", "()Z", AccessFlags = 1025)]
  265. get{ return GetNeedClientAuth(); }
  266. [Dot42.DexImport("setNeedClientAuth", "(Z)V", AccessFlags = 1025)]
  267. set{ SetNeedClientAuth(value); }
  268. }
  269. /// <summary>
  270. /// <para>Returns whether server-mode connections will be configured to request client authentication.</para><para></para>
  271. /// </summary>
  272. /// <returns>
  273. /// <para><c> true </c> is client authentication will be requested, <c> false </c> if no client authentication is needed. </para>
  274. /// </returns>
  275. /// <java-name>
  276. /// getWantClientAuth
  277. /// </java-name>
  278. public bool IsWantClientAuth
  279. {
  280. [Dot42.DexImport("getWantClientAuth", "()Z", AccessFlags = 1025)]
  281. get{ return GetWantClientAuth(); }
  282. [Dot42.DexImport("setWantClientAuth", "(Z)V", AccessFlags = 1025)]
  283. set{ SetWantClientAuth(value); }
  284. }
  285. /// <summary>
  286. /// <para>Returns whether new connection will act in client mode when handshaking.</para><para></para>
  287. /// </summary>
  288. /// <returns>
  289. /// <para><c> true </c> if new connections will act in client mode when handshaking, <c> false </c> if not. </para>
  290. /// </returns>
  291. /// <java-name>
  292. /// getUseClientMode
  293. /// </java-name>
  294. public bool IsUseClientMode
  295. {
  296. [Dot42.DexImport("getUseClientMode", "()Z", AccessFlags = 1025)]
  297. get{ return GetUseClientMode(); }
  298. [Dot42.DexImport("setUseClientMode", "(Z)V", AccessFlags = 1025)]
  299. set{ SetUseClientMode(value); }
  300. }
  301. /// <summary>
  302. /// <para>Returns whether new SSL sessions may be established for new connections.</para><para></para>
  303. /// </summary>
  304. /// <returns>
  305. /// <para><c> true </c> if new SSL sessions may be established, <c> false </c> if existing SSL sessions must be reused. </para>
  306. /// </returns>
  307. /// <java-name>
  308. /// getEnableSessionCreation
  309. /// </java-name>
  310. public bool IsEnableSessionCreation
  311. {
  312. [Dot42.DexImport("getEnableSessionCreation", "()Z", AccessFlags = 1025)]
  313. get{ return GetEnableSessionCreation(); }
  314. [Dot42.DexImport("setEnableSessionCreation", "(Z)V", AccessFlags = 1025)]
  315. set{ SetEnableSessionCreation(value); }
  316. }
  317. }
  318. /// <summary>
  319. /// <para>The result object describing the state of the <c> SSLEngine </c> produced by the <c> wrap() </c> and <c> unwrap() </c> operations. </para>
  320. /// </summary>
  321. /// <java-name>
  322. /// javax/net/ssl/SSLEngineResult
  323. /// </java-name>
  324. [Dot42.DexImport("javax/net/ssl/SSLEngineResult", AccessFlags = 33)]
  325. public partial class SSLEngineResult
  326. /* scope: __dot42__ */
  327. {
  328. /// <summary>
  329. /// <para>Creates a new <c> SSLEngineResult </c> instance with the specified state values.</para><para></para>
  330. /// </summary>
  331. [Dot42.DexImport("<init>", "(Ljavax/net/ssl/SSLEngineResult$Status;Ljavax/net/ssl/SSLEngineResult$HandshakeSt" +
  332. "atus;II)V", AccessFlags = 1)]
  333. public SSLEngineResult(global::Javax.Net.Ssl.SSLEngineResult.Status status, global::Javax.Net.Ssl.SSLEngineResult.HandshakeStatus handshakeStatus, int bytesConsumed, int bytesProduced) /* MethodBuilder.Create */
  334. {
  335. }
  336. /// <summary>
  337. /// <para>Returns the return value of the <c> SSLEngine </c> operation.</para><para></para>
  338. /// </summary>
  339. /// <returns>
  340. /// <para>the return value of the <c> SSLEngine </c> operation. </para>
  341. /// </returns>
  342. /// <java-name>
  343. /// getStatus
  344. /// </java-name>
  345. [Dot42.DexImport("getStatus", "()Ljavax/net/ssl/SSLEngineResult$Status;", AccessFlags = 17)]
  346. public global::Javax.Net.Ssl.SSLEngineResult.Status GetStatus() /* MethodBuilder.Create */
  347. {
  348. return default(global::Javax.Net.Ssl.SSLEngineResult.Status);
  349. }
  350. /// <summary>
  351. /// <para>Returns the status of the current handshake.</para><para></para>
  352. /// </summary>
  353. /// <returns>
  354. /// <para>the status of the current handshake. </para>
  355. /// </returns>
  356. /// <java-name>
  357. /// getHandshakeStatus
  358. /// </java-name>
  359. [Dot42.DexImport("getHandshakeStatus", "()Ljavax/net/ssl/SSLEngineResult$HandshakeStatus;", AccessFlags = 17)]
  360. public global::Javax.Net.Ssl.SSLEngineResult.HandshakeStatus GetHandshakeStatus() /* MethodBuilder.Create */
  361. {
  362. return default(global::Javax.Net.Ssl.SSLEngineResult.HandshakeStatus);
  363. }
  364. /// <summary>
  365. /// <para>Returns the number of bytes retrieved from the source buffer(s).</para><para></para>
  366. /// </summary>
  367. /// <returns>
  368. /// <para>the number of bytes retrieved from the source buffer(s). </para>
  369. /// </returns>
  370. /// <java-name>
  371. /// bytesConsumed
  372. /// </java-name>
  373. [Dot42.DexImport("bytesConsumed", "()I", AccessFlags = 17)]
  374. public int BytesConsumed() /* MethodBuilder.Create */
  375. {
  376. return default(int);
  377. }
  378. /// <summary>
  379. /// <para>Returns the number of bytes transferred to the destination buffer(s).</para><para></para>
  380. /// </summary>
  381. /// <returns>
  382. /// <para>the number of bytes transferred to the destination buffer(s). </para>
  383. /// </returns>
  384. /// <java-name>
  385. /// bytesProduced
  386. /// </java-name>
  387. [Dot42.DexImport("bytesProduced", "()I", AccessFlags = 17)]
  388. public int BytesProduced() /* MethodBuilder.Create */
  389. {
  390. return default(int);
  391. }
  392. /// <java-name>
  393. /// toString
  394. /// </java-name>
  395. [Dot42.DexImport("toString", "()Ljava/lang/String;", AccessFlags = 1)]
  396. public override string ToString() /* MethodBuilder.Create */
  397. {
  398. return default(string);
  399. }
  400. [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
  401. internal SSLEngineResult() /* TypeBuilder.AddDefaultConstructor */
  402. {
  403. }
  404. /// <java-name>
  405. /// javax/net/ssl/SSLEngineResult$Status
  406. /// </java-name>
  407. [Dot42.DexImport("javax/net/ssl/SSLEngineResult$Status", AccessFlags = 16409, Signature = "Ljava/lang/Enum<Ljavax/net/ssl/SSLEngineResult$Status;>;")]
  408. public sealed class Status
  409. /* scope: __dot42__ */
  410. {
  411. /// <java-name>
  412. /// BUFFER_OVERFLOW
  413. /// </java-name>
  414. [Dot42.DexImport("BUFFER_OVERFLOW", "Ljavax/net/ssl/SSLEngineResult$Status;", AccessFlags = 16409)]
  415. public static readonly Status BUFFER_OVERFLOW;
  416. /// <java-name>
  417. /// BUFFER_UNDERFLOW
  418. /// </java-name>
  419. [Dot42.DexImport("BUFFER_UNDERFLOW", "Ljavax/net/ssl/SSLEngineResult$Status;", AccessFlags = 16409)]
  420. public static readonly Status BUFFER_UNDERFLOW;
  421. /// <java-name>
  422. /// CLOSED
  423. /// </java-name>
  424. [Dot42.DexImport("CLOSED", "Ljavax/net/ssl/SSLEngineResult$Status;", AccessFlags = 16409)]
  425. public static readonly Status CLOSED;
  426. /// <java-name>
  427. /// OK
  428. /// </java-name>
  429. [Dot42.DexImport("OK", "Ljavax/net/ssl/SSLEngineResult$Status;", AccessFlags = 16409)]
  430. public static readonly Status OK;
  431. private Status() /* TypeBuilder.AddPrivateDefaultCtor */
  432. {
  433. }
  434. }
  435. /// <java-name>
  436. /// javax/net/ssl/SSLEngineResult$HandshakeStatus
  437. /// </java-name>
  438. [Dot42.DexImport("javax/net/ssl/SSLEngineResult$HandshakeStatus", AccessFlags = 16409, Signature = "Ljava/lang/Enum<Ljavax/net/ssl/SSLEngineResult$HandshakeStatus;>;")]
  439. public sealed class HandshakeStatus
  440. /* scope: __dot42__ */
  441. {
  442. /// <java-name>
  443. /// FINISHED
  444. /// </java-name>
  445. [Dot42.DexImport("FINISHED", "Ljavax/net/ssl/SSLEngineResult$HandshakeStatus;", AccessFlags = 16409)]
  446. public static readonly HandshakeStatus FINISHED;
  447. /// <java-name>
  448. /// NEED_TASK
  449. /// </java-name>
  450. [Dot42.DexImport("NEED_TASK", "Ljavax/net/ssl/SSLEngineResult$HandshakeStatus;", AccessFlags = 16409)]
  451. public static readonly HandshakeStatus NEED_TASK;
  452. /// <java-name>
  453. /// NEED_UNWRAP
  454. /// </java-name>
  455. [Dot42.DexImport("NEED_UNWRAP", "Ljavax/net/ssl/SSLEngineResult$HandshakeStatus;", AccessFlags = 16409)]
  456. public static readonly HandshakeStatus NEED_UNWRAP;
  457. /// <java-name>
  458. /// NEED_WRAP
  459. /// </java-name>
  460. [Dot42.DexImport("NEED_WRAP", "Ljavax/net/ssl/SSLEngineResult$HandshakeStatus;", AccessFlags = 16409)]
  461. public static readonly HandshakeStatus NEED_WRAP;
  462. /// <java-name>
  463. /// NOT_HANDSHAKING
  464. /// </java-name>
  465. [Dot42.DexImport("NOT_HANDSHAKING", "Ljavax/net/ssl/SSLEngineResult$HandshakeStatus;", AccessFlags = 16409)]
  466. public static readonly HandshakeStatus NOT_HANDSHAKING;
  467. private HandshakeStatus() /* TypeBuilder.AddPrivateDefaultCtor */
  468. {
  469. }
  470. }
  471. }
  472. /// <summary>
  473. /// <para>The <b>Service Provider Interface</b> (SPI) for the <c> TrustManagerFactory </c> class. </para>
  474. /// </summary>
  475. /// <java-name>
  476. /// javax/net/ssl/TrustManagerFactorySpi
  477. /// </java-name>
  478. [Dot42.DexImport("javax/net/ssl/TrustManagerFactorySpi", AccessFlags = 1057)]
  479. public abstract partial class TrustManagerFactorySpi
  480. /* scope: __dot42__ */
  481. {
  482. /// <summary>
  483. /// <para>Creates a new <c> TrustManagerFactorySpi </c> instance. </para>
  484. /// </summary>
  485. [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
  486. public TrustManagerFactorySpi() /* MethodBuilder.Create */
  487. {
  488. }
  489. /// <summary>
  490. /// <para>Initializes this factory instance with the specified keystore as source of certificate authorities and trust material.</para><para></para>
  491. /// </summary>
  492. /// <java-name>
  493. /// engineInit
  494. /// </java-name>
  495. [Dot42.DexImport("engineInit", "(Ljava/security/KeyStore;)V", AccessFlags = 1028)]
  496. protected internal abstract void EngineInit(global::Java.Security.KeyStore ks) /* MethodBuilder.Create */ ;
  497. /// <summary>
  498. /// <para>Initializes this factory instance with the specified keystore as source of certificate authorities and trust material.</para><para></para>
  499. /// </summary>
  500. /// <java-name>
  501. /// engineInit
  502. /// </java-name>
  503. [Dot42.DexImport("engineInit", "(Ljavax/net/ssl/ManagerFactoryParameters;)V", AccessFlags = 1028)]
  504. protected internal abstract void EngineInit(global::Javax.Net.Ssl.IManagerFactoryParameters ks) /* MethodBuilder.Create */ ;
  505. /// <summary>
  506. /// <para>Returns the list of <c> TrustManager </c> s with one entry for each type of trust material.</para><para></para>
  507. /// </summary>
  508. /// <returns>
  509. /// <para>the list of <c> TrustManager </c> s </para>
  510. /// </returns>
  511. /// <java-name>
  512. /// engineGetTrustManagers
  513. /// </java-name>
  514. [Dot42.DexImport("engineGetTrustManagers", "()[Ljavax/net/ssl/TrustManager;", AccessFlags = 1028)]
  515. protected internal abstract global::Javax.Net.Ssl.ITrustManager[] EngineGetTrustManagers() /* MethodBuilder.Create */ ;
  516. }
  517. /// <summary>
  518. /// <para>This is the interface to implement in order to mark a class as a JSSE key managers so that key managers can be easily grouped. The key managers are responsible for handling the keys used to authenticate the local side to its peer, </para>
  519. /// </summary>
  520. /// <java-name>
  521. /// javax/net/ssl/KeyManager
  522. /// </java-name>
  523. [Dot42.DexImport("javax/net/ssl/KeyManager", AccessFlags = 1537)]
  524. public partial interface IKeyManager
  525. /* scope: __dot42__ */
  526. {
  527. }
  528. /// <summary>
  529. /// <para>Legacy security code; do not use. </para>
  530. /// </summary>
  531. /// <java-name>
  532. /// javax/net/ssl/SSLPermission
  533. /// </java-name>
  534. [Dot42.DexImport("javax/net/ssl/SSLPermission", AccessFlags = 49)]
  535. public sealed partial class SSLPermission : global::Java.Security.BasicPermission
  536. /* scope: __dot42__ */
  537. {
  538. [Dot42.DexImport("<init>", "(Ljava/lang/String;)V", AccessFlags = 1)]
  539. public SSLPermission(string name) /* MethodBuilder.Create */
  540. {
  541. }
  542. [Dot42.DexImport("<init>", "(Ljava/lang/String;Ljava/lang/String;)V", AccessFlags = 1)]
  543. public SSLPermission(string name, string actions) /* MethodBuilder.Create */
  544. {
  545. }
  546. /// <java-name>
  547. /// getActions
  548. /// </java-name>
  549. [Dot42.DexImport("getActions", "()Ljava/lang/String;", AccessFlags = 1)]
  550. public override string GetActions() /* MethodBuilder.Create */
  551. {
  552. return default(string);
  553. }
  554. /// <java-name>
  555. /// implies
  556. /// </java-name>
  557. [Dot42.DexImport("implies", "(Ljava/security/Permission;)Z", AccessFlags = 1)]
  558. public override bool Implies(global::Java.Security.Permission permission) /* MethodBuilder.Create */
  559. {
  560. return default(bool);
  561. }
  562. [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
  563. internal SSLPermission() /* TypeBuilder.AddDefaultConstructor */
  564. {
  565. }
  566. /// <java-name>
  567. /// getActions
  568. /// </java-name>
  569. public string Actions
  570. {
  571. [Dot42.DexImport("getActions", "()Ljava/lang/String;", AccessFlags = 1)]
  572. get{ return GetActions(); }
  573. }
  574. }
  575. /// <summary>
  576. /// <para>The <b>Service Provider Interface</b> (SPI) for the <c> SSLContext </c> class. </para>
  577. /// </summary>
  578. /// <java-name>
  579. /// javax/net/ssl/SSLContextSpi
  580. /// </java-name>
  581. [Dot42.DexImport("javax/net/ssl/SSLContextSpi", AccessFlags = 1057)]
  582. public abstract partial class SSLContextSpi
  583. /* scope: __dot42__ */
  584. {
  585. /// <summary>
  586. /// <para>Creates a new <c> SSLContextSpi </c> instance. </para>
  587. /// </summary>
  588. [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
  589. public SSLContextSpi() /* MethodBuilder.Create */
  590. {
  591. }
  592. /// <summary>
  593. /// <para>Initializes this <c> SSLContext </c> instance. All of the arguments are optional, and the security providers will be searched for the required implementations of the needed algorithms.</para><para></para>
  594. /// </summary>
  595. /// <java-name>
  596. /// engineInit
  597. /// </java-name>
  598. [Dot42.DexImport("engineInit", "([Ljavax/net/ssl/KeyManager;[Ljavax/net/ssl/TrustManager;Ljava/security/SecureRan" +
  599. "dom;)V", AccessFlags = 1028)]
  600. protected internal abstract void EngineInit(global::Javax.Net.Ssl.IKeyManager[] km, global::Javax.Net.Ssl.ITrustManager[] tm, global::Java.Security.SecureRandom sr) /* MethodBuilder.Create */ ;
  601. /// <summary>
  602. /// <para>Returns a socket factory for this instance.</para><para></para>
  603. /// </summary>
  604. /// <returns>
  605. /// <para>a socket factory for this instance. </para>
  606. /// </returns>
  607. /// <java-name>
  608. /// engineGetSocketFactory
  609. /// </java-name>
  610. [Dot42.DexImport("engineGetSocketFactory", "()Ljavax/net/ssl/SSLSocketFactory;", AccessFlags = 1028)]
  611. protected internal abstract global::Javax.Net.Ssl.SSLSocketFactory EngineGetSocketFactory() /* MethodBuilder.Create */ ;
  612. /// <summary>
  613. /// <para>Returns a server socket factory for this instance.</para><para></para>
  614. /// </summary>
  615. /// <returns>
  616. /// <para>a server socket factory for this instance. </para>
  617. /// </returns>
  618. /// <java-name>
  619. /// engineGetServerSocketFactory
  620. /// </java-name>
  621. [Dot42.DexImport("engineGetServerSocketFactory", "()Ljavax/net/ssl/SSLServerSocketFactory;", AccessFlags = 1028)]
  622. protected internal abstract global::Javax.Net.Ssl.SSLServerSocketFactory EngineGetServerSocketFactory() /* MethodBuilder.Create */ ;
  623. /// <summary>
  624. /// <para>Creates an <c> SSLEngine </c> instance from this context with the specified hostname and port.</para><para></para>
  625. /// </summary>
  626. /// <returns>
  627. /// <para>an <c> SSLEngine </c> instance from this context. </para>
  628. /// </returns>
  629. /// <java-name>
  630. /// engineCreateSSLEngine
  631. /// </java-name>
  632. [Dot42.DexImport("engineCreateSSLEngine", "(Ljava/lang/String;I)Ljavax/net/ssl/SSLEngine;", AccessFlags = 1028)]
  633. protected internal abstract global::Javax.Net.Ssl.SSLEngine EngineCreateSSLEngine(string host, int port) /* MethodBuilder.Create */ ;
  634. /// <summary>
  635. /// <para>Creates an <c> SSLEngine </c> instance from this context.</para><para></para>
  636. /// </summary>
  637. /// <returns>
  638. /// <para>an <c> SSLEngine </c> instance from this context. </para>
  639. /// </returns>
  640. /// <java-name>
  641. /// engineCreateSSLEngine
  642. /// </java-name>
  643. [Dot42.DexImport("engineCreateSSLEngine", "()Ljavax/net/ssl/SSLEngine;", AccessFlags = 1028)]
  644. protected internal abstract global::Javax.Net.Ssl.SSLEngine EngineCreateSSLEngine() /* MethodBuilder.Create */ ;
  645. /// <summary>
  646. /// <para>Returns the SSL session context that encapsulates the set of SSL sessions that can be used for the server side of the SSL handshake.</para><para></para>
  647. /// </summary>
  648. /// <returns>
  649. /// <para>the SSL server session context for this context or <c> null </c> if the underlying provider does not provide an implementation of the <c> SSLSessionContext </c> interface. </para>
  650. /// </returns>
  651. /// <java-name>
  652. /// engineGetServerSessionContext
  653. /// </java-name>
  654. [Dot42.DexImport("engineGetServerSessionContext", "()Ljavax/net/ssl/SSLSessionContext;", AccessFlags = 1028)]
  655. protected internal abstract global::Javax.Net.Ssl.ISSLSessionContext EngineGetServerSessionContext() /* MethodBuilder.Create */ ;
  656. /// <summary>
  657. /// <para>Returns the SSL session context that encapsulates the set of SSL sessions that can be used for the client side of the SSL handshake.</para><para></para>
  658. /// </summary>
  659. /// <returns>
  660. /// <para>the SSL client session context for this context or <c> null </c> if the underlying provider does not provide an implementation of the <c> SSLSessionContext </c> interface. </para>
  661. /// </returns>
  662. /// <java-name>
  663. /// engineGetClientSessionContext
  664. /// </java-name>
  665. [Dot42.DexImport("engineGetClientSessionContext", "()Ljavax/net/ssl/SSLSessionContext;", AccessFlags = 1028)]
  666. protected internal abstract global::Javax.Net.Ssl.ISSLSessionContext EngineGetClientSessionContext() /* MethodBuilder.Create */ ;
  667. /// <summary>
  668. /// <para>Returns a new SSLParameters instance that includes the default SSL handshake parameters values including cipher suites, protocols, and client authentication.</para><para>The default implementation returns an SSLParameters with values based an SSLSocket created from this instances SocketFactory.</para><para><para>1.6 </para></para>
  669. /// </summary>
  670. /// <java-name>
  671. /// engineGetDefaultSSLParameters
  672. /// </java-name>
  673. [Dot42.DexImport("engineGetDefaultSSLParameters", "()Ljavax/net/ssl/SSLParameters;", AccessFlags = 4)]
  674. protected internal virtual global::Javax.Net.Ssl.SSLParameters EngineGetDefaultSSLParameters() /* MethodBuilder.Create */
  675. {
  676. return default(global::Javax.Net.Ssl.SSLParameters);
  677. }
  678. /// <summary>
  679. /// <para>Returns a new SSLParameters instance that includes all supported cipher suites and protocols.</para><para>The default implementation returns an SSLParameters with values based an SSLSocket created from this instances SocketFactory.</para><para><para>1.6 </para></para>
  680. /// </summary>
  681. /// <java-name>
  682. /// engineGetSupportedSSLParameters
  683. /// </java-name>
  684. [Dot42.DexImport("engineGetSupportedSSLParameters", "()Ljavax/net/ssl/SSLParameters;", AccessFlags = 4)]
  685. protected internal virtual global::Javax.Net.Ssl.SSLParameters EngineGetSupportedSSLParameters() /* MethodBuilder.Create */
  686. {
  687. return default(global::Javax.Net.Ssl.SSLParameters);
  688. }
  689. }
  690. /// <summary>
  691. /// <para>The public API for <c> KeyManagerFactory </c> implementations. </para>
  692. /// </summary>
  693. /// <java-name>
  694. /// javax/net/ssl/KeyManagerFactory
  695. /// </java-name>
  696. [Dot42.DexImport("javax/net/ssl/KeyManagerFactory", AccessFlags = 33)]
  697. public partial class KeyManagerFactory
  698. /* scope: __dot42__ */
  699. {
  700. /// <summary>
  701. /// <para>Creates a new <c> KeyManagerFactory </c> .</para><para></para>
  702. /// </summary>
  703. [Dot42.DexImport("<init>", "(Ljavax/net/ssl/KeyManagerFactorySpi;Ljava/security/Provider;Ljava/lang/String;)V" +
  704. "", AccessFlags = 4)]
  705. protected internal KeyManagerFactory(global::Javax.Net.Ssl.KeyManagerFactorySpi factorySpi, global::Java.Security.Provider provider, string algorithm) /* MethodBuilder.Create */
  706. {
  707. }
  708. /// <summary>
  709. /// <para>Returns the default key manager factory algorithm name. </para><para>The default algorithm name is specified by the security property: <c> 'ssl.KeyManagerFactory.algorithm' </c> .</para><para></para>
  710. /// </summary>
  711. /// <returns>
  712. /// <para>the default algorithm name. </para>
  713. /// </returns>
  714. /// <java-name>
  715. /// getDefaultAlgorithm
  716. /// </java-name>
  717. [Dot42.DexImport("getDefaultAlgorithm", "()Ljava/lang/String;", AccessFlags = 25)]
  718. public static string GetDefaultAlgorithm() /* MethodBuilder.Create */
  719. {
  720. return default(string);
  721. }
  722. /// <summary>
  723. /// <para>Creates a new <c> KeyManagerFactory </c> instance for the specified key management algorithm.</para><para></para>
  724. /// </summary>
  725. /// <returns>
  726. /// <para>a key manager factory for the requested algorithm. </para>
  727. /// </returns>
  728. /// <java-name>
  729. /// getInstance
  730. /// </java-name>
  731. [Dot42.DexImport("getInstance", "(Ljava/lang/String;)Ljavax/net/ssl/KeyManagerFactory;", AccessFlags = 25)]
  732. public static global::Javax.Net.Ssl.KeyManagerFactory GetInstance(string algorithm) /* MethodBuilder.Create */
  733. {
  734. return default(global::Javax.Net.Ssl.KeyManagerFactory);
  735. }
  736. /// <java-name>
  737. /// getInstance
  738. /// </java-name>
  739. [Dot42.DexImport("getInstance", "(Ljava/lang/String;Ljava/lang/String;)Ljavax/net/ssl/KeyManagerFactory;", AccessFlags = 25)]
  740. public static global::Javax.Net.Ssl.KeyManagerFactory GetInstance(string @string, string string1) /* MethodBuilder.Create */
  741. {
  742. return default(global::Javax.Net.Ssl.KeyManagerFactory);
  743. }
  744. /// <java-name>
  745. /// getInstance
  746. /// </java-name>
  747. [Dot42.DexImport("getInstance", "(Ljava/lang/String;Ljava/security/Provider;)Ljavax/net/ssl/KeyManagerFactory;", AccessFlags = 25)]
  748. public static global::Javax.Net.Ssl.KeyManagerFactory GetInstance(string @string, global::Java.Security.Provider provider) /* MethodBuilder.Create */
  749. {
  750. return default(global::Javax.Net.Ssl.KeyManagerFactory);
  751. }
  752. /// <summary>
  753. /// <para>Returns the name of the key management algorithm.</para><para></para>
  754. /// </summary>
  755. /// <returns>
  756. /// <para>the name of the key management algorithm. </para>
  757. /// </returns>
  758. /// <java-name>
  759. /// getAlgorithm
  760. /// </java-name>
  761. [Dot42.DexImport("getAlgorithm", "()Ljava/lang/String;", AccessFlags = 17)]
  762. public string GetAlgorithm() /* MethodBuilder.Create */
  763. {
  764. return default(string);
  765. }
  766. /// <summary>
  767. /// <para>Returns the provider for this <c> KeyManagerFactory </c> instance.</para><para></para>
  768. /// </summary>
  769. /// <returns>
  770. /// <para>the provider for this <c> KeyManagerFactory </c> instance. </para>
  771. /// </returns>
  772. /// <java-name>
  773. /// getProvider
  774. /// </java-name>
  775. [Dot42.DexImport("getProvider", "()Ljava/security/Provider;", AccessFlags = 17)]
  776. public global::Java.Security.Provider GetProvider() /* MethodBuilder.Create */
  777. {
  778. return default(global::Java.Security.Provider);
  779. }
  780. /// <summary>
  781. /// <para>Initializes this instance with the specified key store and password.</para><para></para>
  782. /// </summary>
  783. /// <java-name>
  784. /// init
  785. /// </java-name>
  786. [Dot42.DexImport("init", "(Ljava/security/KeyStore;[C)V", AccessFlags = 17)]
  787. public void Init(global::Java.Security.KeyStore ks, char[] password) /* MethodBuilder.Create */
  788. {
  789. }
  790. /// <summary>
  791. /// <para>Initializes this instance with the specified factory parameters.</para><para></para>
  792. /// </summary>
  793. /// <java-name>
  794. /// init
  795. /// </java-name>
  796. [Dot42.DexImport("init", "(Ljavax/net/ssl/ManagerFactoryParameters;)V", AccessFlags = 17)]
  797. public void Init(global::Javax.Net.Ssl.IManagerFactoryParameters spec) /* MethodBuilder.Create */
  798. {
  799. }
  800. /// <summary>
  801. /// <para>Returns a list of key managers, one instance for each type of key in the key store.</para><para></para>
  802. /// </summary>
  803. /// <returns>
  804. /// <para>a list of key managers. </para>
  805. /// </returns>
  806. /// <java-name>
  807. /// getKeyManagers
  808. /// </java-name>
  809. [Dot42.DexImport("getKeyManagers", "()[Ljavax/net/ssl/KeyManager;", AccessFlags = 17)]
  810. public global::Javax.Net.Ssl.IKeyManager[] GetKeyManagers() /* MethodBuilder.Create */
  811. {
  812. return default(global::Javax.Net.Ssl.IKeyManager[]);
  813. }
  814. [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
  815. internal KeyManagerFactory() /* TypeBuilder.AddDefaultConstructor */
  816. {
  817. }
  818. /// <summary>
  819. /// <para>Returns the default key manager factory algorithm name. </para><para>The default algorithm name is specified by the security property: <c> 'ssl.KeyManagerFactory.algorithm' </c> .</para><para></para>
  820. /// </summary>
  821. /// <returns>
  822. /// <para>the default algorithm name. </para>
  823. /// </returns>
  824. /// <java-name>
  825. /// getDefaultAlgorithm
  826. /// </java-name>
  827. public static string DefaultAlgorithm
  828. {
  829. [Dot42.DexImport("getDefaultAlgorithm", "()Ljava/lang/String;", AccessFlags = 25)]
  830. get{ return GetDefaultAlgorithm(); }
  831. }
  832. /// <summary>
  833. /// <para>Returns the name of the key management algorithm.</para><para></para>
  834. /// </summary>
  835. /// <returns>
  836. /// <para>the name of the key management algorithm. </para>
  837. /// </returns>
  838. /// <java-name>
  839. /// getAlgorithm
  840. /// </java-name>
  841. public string Algorithm
  842. {
  843. [Dot42.DexImport("getAlgorithm", "()Ljava/lang/String;", AccessFlags = 17)]
  844. get{ return GetAlgorithm(); }
  845. }
  846. /// <summary>
  847. /// <para>Returns the provider for this <c> KeyManagerFactory </c> instance.</para><para></para>
  848. /// </summary>
  849. /// <returns>
  850. /// <para>the provider for this <c> KeyManagerFactory </c> instance. </para>
  851. /// </returns>
  852. /// <java-name>
  853. /// getProvider
  854. /// </java-name>
  855. public global::Java.Security.Provider Provider
  856. {
  857. [Dot42.DexImport("getProvider", "()Ljava/security/Provider;", AccessFlags = 17)]
  858. get{ return GetProvider(); }
  859. }
  860. /// <summary>
  861. /// <para>Returns a list of key managers, one instance for each type of key in the key store.</para><para></para>
  862. /// </summary>
  863. /// <returns>
  864. /// <para>a list of key managers. </para>
  865. /// </returns>
  866. /// <java-name>
  867. /// getKeyManagers
  868. /// </java-name>
  869. public global::Javax.Net.Ssl.IKeyManager[] KeyManagers
  870. {
  871. [Dot42.DexImport("getKeyManagers", "()[Ljavax/net/ssl/KeyManager;", AccessFlags = 17)]
  872. get{ return GetKeyManagers(); }
  873. }
  874. }
  875. /// <summary>
  876. /// <para>The extension of <c> Socket </c> providing secure protocols like SSL (Secure Sockets Layer) or TLS (Transport Layer Security). </para>
  877. /// </summary>
  878. /// <java-name>
  879. /// javax/net/ssl/SSLSocket
  880. /// </java-name>
  881. [Dot42.DexImport("javax/net/ssl/SSLSocket", AccessFlags = 1057)]
  882. public abstract partial class SSLSocket : global::Java.Net.Socket
  883. /* scope: __dot42__ */
  884. {
  885. /// <summary>
  886. /// <para>Only to be used by subclasses. </para><para>Creates a TCP socket. </para>
  887. /// </summary>
  888. [Dot42.DexImport("<init>", "()V", AccessFlags = 4)]
  889. protected internal SSLSocket() /* MethodBuilder.Create */
  890. {
  891. }
  892. /// <summary>
  893. /// <para>Only to be used by subclasses. </para><para>Creates a TCP socket connection to the specified address at the specified port.</para><para></para>
  894. /// </summary>
  895. [Dot42.DexImport("<init>", "(Ljava/lang/String;I)V", AccessFlags = 4)]
  896. protected internal SSLSocket(string address, int port) /* MethodBuilder.Create */
  897. {
  898. }
  899. /// <summary>
  900. /// <para>Only to be used by subclasses. </para><para>Creates a TCP socket connection to the specified address at the specified port.</para><para></para>
  901. /// </summary>
  902. [Dot42.DexImport("<init>", "(Ljava/net/InetAddress;I)V", AccessFlags = 4)]
  903. protected internal SSLSocket(global::Java.Net.InetAddress address, int port) /* MethodBuilder.Create */
  904. {
  905. }
  906. /// <summary>
  907. /// <para>Only to be used by subclasses. </para><para>Creates a TCP socket connection to the specified address at the specified port with the client side bound to the specified address and port.</para><para></para>
  908. /// </summary>
  909. [Dot42.DexImport("<init>", "(Ljava/lang/String;ILjava/net/InetAddress;I)V", AccessFlags = 4)]
  910. protected internal SSLSocket(string address, int port, global::Java.Net.InetAddress clientAddress, int clientPort) /* MethodBuilder.Create */
  911. {
  912. }
  913. /// <summary>
  914. /// <para>Only to be used by subclasses. </para><para>Creates a TCP socket connection to the specified address at the specified port with the client side bound to the specified address and port.</para><para></para>
  915. /// </summary>
  916. [Dot42.DexImport("<init>", "(Ljava/net/InetAddress;ILjava/net/InetAddress;I)V", AccessFlags = 4)]
  917. protected internal SSLSocket(global::Java.Net.InetAddress address, int port, global::Java.Net.InetAddress clientAddress, int clientPort) /* MethodBuilder.Create */
  918. {
  919. }
  920. /// <summary>
  921. /// <para>Unsupported for SSL because reading from an SSL socket may require writing to the network. </para>
  922. /// </summary>
  923. /// <java-name>
  924. /// shutdownInput
  925. /// </java-name>
  926. [Dot42.DexImport("shutdownInput", "()V", AccessFlags = 1)]
  927. public override void ShutdownInput() /* MethodBuilder.Create */
  928. {
  929. }
  930. /// <summary>
  931. /// <para>Unsupported for SSL because writing to an SSL socket may require reading from the network. </para>
  932. /// </summary>
  933. /// <java-name>
  934. /// shutdownOutput
  935. /// </java-name>
  936. [Dot42.DexImport("shutdownOutput", "()V", AccessFlags = 1)]
  937. public override void ShutdownOutput() /* MethodBuilder.Create */
  938. {
  939. }
  940. /// <summary>
  941. /// <para>Returns the names of the supported cipher suites. </para>
  942. /// </summary>
  943. /// <java-name>
  944. /// getSupportedCipherSuites
  945. /// </java-name>
  946. [Dot42.DexImport("getSupportedCipherSuites", "()[Ljava/lang/String;", AccessFlags = 1025)]
  947. public abstract string[] GetSupportedCipherSuites() /* MethodBuilder.Create */ ;
  948. /// <summary>
  949. /// <para>Returns the names of the enabled cipher suites. </para>
  950. /// </summary>
  951. /// <java-name>
  952. /// getEnabledCipherSuites
  953. /// </java-name>
  954. [Dot42.DexImport("getEnabledCipherSuites", "()[Ljava/lang/String;", AccessFlags = 1025)]
  955. public abstract string[] GetEnabledCipherSuites() /* MethodBuilder.Create */ ;
  956. /// <summary>
  957. /// <para>Sets the names of the cipher suites to be enabled. Only cipher suites returned by getSupportedCipherSuites() are allowed.</para><para></para>
  958. /// </summary>
  959. /// <java-name>
  960. /// setEnabledCipherSuites
  961. /// </java-name>
  962. [Dot42.DexImport("setEnabledCipherSuites", "([Ljava/lang/String;)V", AccessFlags = 1025)]
  963. public abstract void SetEnabledCipherSuites(string[] suites) /* MethodBuilder.Create */ ;
  964. /// <summary>
  965. /// <para>Returns the names of the supported protocols. </para>
  966. /// </summary>
  967. /// <java-name>
  968. /// getSupportedProtocols
  969. /// </java-name>
  970. [Dot42.DexImport("getSupportedProtocols", "()[Ljava/lang/String;", AccessFlags = 1025)]
  971. public abstract string[] GetSupportedProtocols() /* MethodBuilder.Create */ ;
  972. /// <summary>
  973. /// <para>Returns the names of the enabled protocols. </para>
  974. /// </summary>
  975. /// <java-name>
  976. /// getEnabledProtocols
  977. /// </java-name>
  978. [Dot42.DexImport("getEnabledProtocols", "()[Ljava/lang/String;", AccessFlags = 1025)]
  979. public abstract string[] GetEnabledProtocols() /* MethodBuilder.Create */ ;
  980. /// <summary>
  981. /// <para>Sets the names of the protocols to be enabled. Only protocols returned by getSupportedProtocols() are allowed.</para><para></para>
  982. /// </summary>
  983. /// <java-name>
  984. /// setEnabledProtocols
  985. /// </java-name>
  986. [Dot42.DexImport("setEnabledProtocols", "([Ljava/lang/String;)V", AccessFlags = 1025)]
  987. public abstract void SetEnabledProtocols(string[] protocols) /* MethodBuilder.Create */ ;
  988. /// <summary>
  989. /// <para>Returns the <c> SSLSession </c> for this connection. If necessary, a handshake will be initiated, in which case this method will block until the handshake has been established. If the handshake fails, an invalid session object will be returned.</para><para></para>
  990. /// </summary>
  991. /// <returns>
  992. /// <para>the session object. </para>
  993. /// </returns>
  994. /// <java-name>
  995. /// getSession
  996. /// </java-name>
  997. [Dot42.DexImport("getSession", "()Ljavax/net/ssl/SSLSession;", AccessFlags = 1025)]
  998. public abstract global::Javax.Net.Ssl.ISSLSession GetSession() /* MethodBuilder.Create */ ;
  999. /// <summary>
  1000. /// <para>Registers the specified listener to receive notification on completion of a handshake on this connection.</para><para></para>
  1001. /// </summary>
  1002. /// <java-name>
  1003. /// addHandshakeCompletedListener
  1004. /// </java-name>
  1005. [Dot42.DexImport("addHandshakeCompletedListener", "(Ljavax/net/ssl/HandshakeCompletedListener;)V", AccessFlags = 1025)]
  1006. public abstract void AddHandshakeCompletedListener(global::Javax.Net.Ssl.IHandshakeCompletedListener listener) /* MethodBuilder.Create */ ;
  1007. /// <summary>
  1008. /// <para>Removes the specified handshake completion listener.</para><para></para>
  1009. /// </summary>
  1010. /// <java-name>
  1011. /// removeHandshakeCompletedListener
  1012. /// </java-name>
  1013. [Dot42.DexImport("removeHandshakeCompletedListener", "(Ljavax/net/ssl/HandshakeCompletedListener;)V", AccessFlags = 1025)]
  1014. public abstract void RemoveHandshakeCompletedListener(global::Javax.Net.Ssl.IHandshakeCompletedListener listener) /* MethodBuilder.Create */ ;
  1015. /// <summary>
  1016. /// <para>Starts a new SSL handshake on this connection.</para><para></para>
  1017. /// </summary>
  1018. /// <java-name>
  1019. /// startHandshake
  1020. /// </java-name>
  1021. [Dot42.DexImport("startHandshake", "()V", AccessFlags = 1025)]
  1022. public abstract void StartHandshake() /* MethodBuilder.Create */ ;
  1023. /// <summary>
  1024. /// <para>Sets whether this connection should act in client mode when handshaking.</para><para></para>
  1025. /// </summary>
  1026. /// <java-name>
  1027. /// setUseClientMode
  1028. /// </java-name>
  1029. [Dot42.DexImport("setUseClientMode", "(Z)V", AccessFlags = 1025)]
  1030. public abstract void SetUseClientMode(bool mode) /* MethodBuilder.Create */ ;
  1031. /// <summary>
  1032. /// <para>Returns true if this connection will act in client mode when handshaking. </para>
  1033. /// </summary>
  1034. /// <java-name>
  1035. /// getUseClientMode
  1036. /// </java-name>
  1037. [Dot42.DexImport("getUseClientMode", "()Z", AccessFlags = 1025)]
  1038. public abstract bool GetUseClientMode() /* MethodBuilder.Create */ ;
  1039. /// <summary>
  1040. /// <para>Sets whether the server should require client authentication. This does not apply to sockets in client mode. Client authentication is one of the following: <ul><li><para>authentication required </para></li><li><para>authentication requested </para></li><li><para>no authentication needed </para></li></ul>This method overrides the setting of setWantClientAuth(boolean). </para>
  1041. /// </summary>
  1042. /// <java-name>
  1043. /// setNeedClientAuth
  1044. /// </java-name>
  1045. [Dot42.DexImport("setNeedClientAuth", "(Z)V", AccessFlags = 1025)]
  1046. public abstract void SetNeedClientAuth(bool need) /* MethodBuilder.Create */ ;
  1047. /// <summary>
  1048. /// <para>Sets whether the server should request client authentication. Unlike setNeedClientAuth this won't stop the negotiation if the client doesn't authenticate. This does not apply to sockets in client mode.The client authentication is one of: <ul><li><para>authentication required </para></li><li><para>authentication requested </para></li><li><para>no authentication needed </para></li></ul>This method overrides the setting of setNeedClientAuth(boolean). </para>
  1049. /// </summary>
  1050. /// <java-name>
  1051. /// setWantClientAuth
  1052. /// </java-name>
  1053. [Dot42.DexImport("setWantClientAuth", "(Z)V", AccessFlags = 1025)]
  1054. public abstract void SetWantClientAuth(bool want) /* MethodBuilder.Create */ ;
  1055. /// <summary>
  1056. /// <para>Returns true if the server socket should require client authentication. This does not apply to sockets in client mode. </para>
  1057. /// </summary>
  1058. /// <java-name>
  1059. /// getNeedClientAuth
  1060. /// </java-name>
  1061. [Dot42.DexImport("getNeedClientAuth", "()Z", AccessFlags = 1025)]
  1062. public abstract bool GetNeedClientAuth() /* MethodBuilder.Create */ ;
  1063. /// <summary>
  1064. /// <para