@@ -96,7 +96,7 @@ public interface Client extends ClientLinked {
96
96
* Builds {@link Client}s. Create a builder with {@link Client#builder()}.
97
97
* <p>
98
98
* The default built client connects securely via port 6697. See {@link
99
- * Server#secure(boolean )} to disable, or the other secure-prefixed methods in
99
+ * Server##port(int, Server.SecurityType )} to disable, or the other secure-prefixed methods in
100
100
* this builder to fully utilize the feature. Note that the default
101
101
* TrustManagerFactory relies on your local trust store. The default Oracle
102
102
* trust store does not accept self-signed certificates.
@@ -174,18 +174,6 @@ enum SecurityType {
174
174
*/
175
175
@ NonNull Server host (@ NonNull String host );
176
176
177
- /**
178
- * Sets the server port to which the client will connect.
179
- * <p>
180
- * By default, the port is 6697.
181
- *
182
- * @param port IRC server port
183
- * @return this builder
184
- * @deprecated use {@link #port(int, SecurityType)} instead
185
- */
186
- @ Deprecated
187
- @ NonNull Server port (int port );
188
-
189
177
/**
190
178
* Sets the server port to which the client will connect and
191
179
* determines TLS setting. By default, the port is 6697 and the
@@ -207,27 +195,12 @@ enum SecurityType {
207
195
*/
208
196
@ NonNull Server password (@ Nullable String password );
209
197
210
- /**
211
- * Sets whether the client connects via TLS.
212
- * <p>
213
- * Note that by default the TrustManager used does not accept the
214
- * certificates of many popular networks. You must use {@link
215
- * #secureTrustManagerFactory(TrustManagerFactory)} to set your own
216
- * TrustManagerFactory.
217
- *
218
- * @param secure true for TLS
219
- * @return this builder
220
- * @deprecated use {@link #port(int, SecurityType)} instead
221
- */
222
- @ Deprecated
223
- @ NonNull Server secure (boolean secure );
224
-
225
198
/**
226
199
* Sets the key for TLS connection.
227
200
*
228
201
* @param keyCertChainFile X.509 certificate chain file in PEM format
229
202
* @return this builder
230
- * @see #secure(boolean )
203
+ * @see #port(int, SecurityType )
231
204
*/
232
205
@ NonNull Server secureKeyCertChain (@ Nullable Path keyCertChainFile );
233
206
@@ -236,7 +209,7 @@ enum SecurityType {
236
209
*
237
210
* @param keyFile PKCS#8 private key file in PEM format
238
211
* @return this builder
239
- * @see #secure(boolean )
212
+ * @see #port(int, SecurityType )
240
213
*/
241
214
@ NonNull Server secureKey (@ Nullable Path keyFile );
242
215
@@ -245,7 +218,7 @@ enum SecurityType {
245
218
*
246
219
* @param password password for private key
247
220
* @return this builder
248
- * @see #secure(boolean )
221
+ * @see #port(int, SecurityType )
249
222
*/
250
223
@ NonNull Server secureKeyPassword (@ Nullable String password );
251
224
@@ -255,7 +228,7 @@ enum SecurityType {
255
228
* @param factory trust manager supplier
256
229
* @return this builder
257
230
* @throws IllegalArgumentException if providing an insecure factory while the STS storage manager is set
258
- * @see #secure(boolean )
231
+ * @see #port(int, SecurityType )
259
232
*/
260
233
@ NonNull Server secureTrustManagerFactory (@ Nullable TrustManagerFactory factory );
261
234
0 commit comments