@@ -96,7 +96,7 @@ public interface Client extends ClientLinked {
9696 * Builds {@link Client}s. Create a builder with {@link Client#builder()}.
9797 * <p>
9898 * 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
100100 * this builder to fully utilize the feature. Note that the default
101101 * TrustManagerFactory relies on your local trust store. The default Oracle
102102 * trust store does not accept self-signed certificates.
@@ -174,18 +174,6 @@ enum SecurityType {
174174 */
175175 @ NonNull Server host (@ NonNull String host );
176176
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-
189177 /**
190178 * Sets the server port to which the client will connect and
191179 * determines TLS setting. By default, the port is 6697 and the
@@ -207,27 +195,12 @@ enum SecurityType {
207195 */
208196 @ NonNull Server password (@ Nullable String password );
209197
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-
225198 /**
226199 * Sets the key for TLS connection.
227200 *
228201 * @param keyCertChainFile X.509 certificate chain file in PEM format
229202 * @return this builder
230- * @see #secure(boolean )
203+ * @see #port(int, SecurityType )
231204 */
232205 @ NonNull Server secureKeyCertChain (@ Nullable Path keyCertChainFile );
233206
@@ -236,7 +209,7 @@ enum SecurityType {
236209 *
237210 * @param keyFile PKCS#8 private key file in PEM format
238211 * @return this builder
239- * @see #secure(boolean )
212+ * @see #port(int, SecurityType )
240213 */
241214 @ NonNull Server secureKey (@ Nullable Path keyFile );
242215
@@ -245,7 +218,7 @@ enum SecurityType {
245218 *
246219 * @param password password for private key
247220 * @return this builder
248- * @see #secure(boolean )
221+ * @see #port(int, SecurityType )
249222 */
250223 @ NonNull Server secureKeyPassword (@ Nullable String password );
251224
@@ -255,7 +228,7 @@ enum SecurityType {
255228 * @param factory trust manager supplier
256229 * @return this builder
257230 * @throws IllegalArgumentException if providing an insecure factory while the STS storage manager is set
258- * @see #secure(boolean )
231+ * @see #port(int, SecurityType )
259232 */
260233 @ NonNull Server secureTrustManagerFactory (@ Nullable TrustManagerFactory factory );
261234
0 commit comments