/** * Enable LARestClientBuilder SSL support. * * <p> * Same as calling the following: * <p class='bcode w800'> * builder * .enableSSL() * .hostnameVerifier(<jk>new</jk> NoopHostnameVerifier()) * .trustManagers(<jk>new</jk> SimpleX509TrustManager(<jk>true</jk>)); * </p> * * @return This object (for method chaining). * @throws KeyStoreException * @throws NoSuchAlgorithmException */ public RestClientBuilder enableLaxSSL() throws KeyStoreException, NoSuchAlgorithmException { this.enableSsl = true; hostnameVerifier(new NoopHostnameVerifier()); trustManagers(new SimpleX509TrustManager(true)); return this; }
/** * Enable LARestClientBuilder SSL support. * * <p> * Same as calling the following: * <p class='bcode w800'> * builder * .enableSSL() * .hostnameVerifier(<jk>new</jk> NoopHostnameVerifier()) * .trustManagers(<jk>new</jk> SimpleX509TrustManager(<jk>true</jk>)); * </p> * * @return This object (for method chaining). * @throws KeyStoreException * @throws NoSuchAlgorithmException */ public RestClientBuilder enableLaxSSL() throws KeyStoreException, NoSuchAlgorithmException { this.enableSsl = true; hostnameVerifier(new NoopHostnameVerifier()); trustManagers(new SimpleX509TrustManager(true)); return this; }
/** * Enable LARestClientBuilder SSL support. * * <p> * Same as calling the following: * <p class='bcode w800'> * builder * .enableSSL() * .hostnameVerifier(<jk>new</jk> NoopHostnameVerifier()) * .trustManagers(<jk>new</jk> SimpleX509TrustManager(<jk>true</jk>)); * </p> * * @return This object (for method chaining). * @throws KeyStoreException * @throws NoSuchAlgorithmException */ public RestClientBuilder enableLaxSSL() throws KeyStoreException, NoSuchAlgorithmException { this.enableSsl = true; hostnameVerifier(new NoopHostnameVerifier()); trustManagers(new SimpleX509TrustManager(true)); return this; }