@Test public void sslSocketFactory() { AndroidChannelBuilder.forTarget("target") .sslSocketFactory((SSLSocketFactory) SSLSocketFactory.getDefault()); }
@Deprecated public AndroidChannelBuilder sslSocketFactory(SSLSocketFactory factory) { try { OKHTTP_CHANNEL_BUILDER_CLASS .getMethod("sslSocketFactory", SSLSocketFactory.class) .invoke(delegateBuilder, factory); return this; } catch (Exception e) { throw new RuntimeException("Failed to invoke sslSocketFactory on delegate builder", e); } }
AndroidChannelBuilder extends ForwardingChannelBuilder<AndroidChannelBuilder> { @Deprecated public AndroidChannelBuilder sslSocketFactory(SSLSocketFactory factory) { try { OKHTTP_CHANNEL_BUILDER_CLASS .getMethod("sslSocketFactory", SSLSocketFactory.class) .invoke(delegateBuilder, factory); return this; } catch (Exception e) { throw new RuntimeException("Failed to invoke sslSocketFactory on delegate builder", e); } } }
AndroidChannelBuilder extends ForwardingChannelBuilder<AndroidChannelBuilder> { @Deprecated public AndroidChannelBuilder sslSocketFactory(SSLSocketFactory factory) { try { OKHTTP_CHANNEL_BUILDER_CLASS .getMethod("sslSocketFactory", SSLSocketFactory.class) .invoke(delegateBuilder, factory); return this; } catch (Exception e) { throw new RuntimeException("Failed to invoke sslSocketFactory on delegate builder", e); } } private  AndroidChannelBuilder(String target); private  AndroidChannelBuilder(ManagedChannelBuilder<?> delegateBuilder); }
AndroidChannelBuilder extends ForwardingChannelBuilder<AndroidChannelBuilder> { @Deprecated public AndroidChannelBuilder sslSocketFactory(SSLSocketFactory factory) { try { OKHTTP_CHANNEL_BUILDER_CLASS .getMethod("sslSocketFactory", SSLSocketFactory.class) .invoke(delegateBuilder, factory); return this; } catch (Exception e) { throw new RuntimeException("Failed to invoke sslSocketFactory on delegate builder", e); } } private  AndroidChannelBuilder(String target); private  AndroidChannelBuilder(ManagedChannelBuilder<?> delegateBuilder); static final AndroidChannelBuilder forTarget(String target); static AndroidChannelBuilder forAddress(String name, int port); static AndroidChannelBuilder fromBuilder(ManagedChannelBuilder<?> builder); AndroidChannelBuilder context(Context context); @Deprecated AndroidChannelBuilder transportExecutor(@Nullable Executor transportExecutor); @Deprecated AndroidChannelBuilder sslSocketFactory(SSLSocketFactory factory); @Deprecated AndroidChannelBuilder scheduledExecutorService(
      ScheduledExecutorService scheduledExecutorService); @Override ManagedChannel build(); }
AndroidChannelBuilder extends ForwardingChannelBuilder<AndroidChannelBuilder> { @Deprecated public AndroidChannelBuilder sslSocketFactory(SSLSocketFactory factory) { try { OKHTTP_CHANNEL_BUILDER_CLASS .getMethod("sslSocketFactory", SSLSocketFactory.class) .invoke(delegateBuilder, factory); return this; } catch (Exception e) { throw new RuntimeException("Failed to invoke sslSocketFactory on delegate builder", e); } } private  AndroidChannelBuilder(String target); private  AndroidChannelBuilder(ManagedChannelBuilder<?> delegateBuilder); static final AndroidChannelBuilder forTarget(String target); static AndroidChannelBuilder forAddress(String name, int port); static AndroidChannelBuilder fromBuilder(ManagedChannelBuilder<?> builder); AndroidChannelBuilder context(Context context); @Deprecated AndroidChannelBuilder transportExecutor(@Nullable Executor transportExecutor); @Deprecated AndroidChannelBuilder sslSocketFactory(SSLSocketFactory factory); @Deprecated AndroidChannelBuilder scheduledExecutorService(
      ScheduledExecutorService scheduledExecutorService); @Override ManagedChannel build();  }