code: public static <B extends ConnectionConfiguration.Builder<B,?>> B setSSLv3AndTLSOnly(B builder) {
          builder.setEnabledSSLProtocols(new String[] { PROTO_TLSV1_2,  PROTO_TLSV1_1, PROTO_TLSV1, PROTO_SSL3 });
          return builder;
      }
docs: Enable only TLS and SSLv3. Connections created with the given ConnectionConfiguration will
  only support TLS and SSLv3.
  <p>
  According to the <a
  href="https://raw.githubusercontent.com/stpeter/manifesto/master/manifesto.txt">Encrypted
  XMPP Manifesto</a>, TLSv1.2 shall be deployed, providing fallback support for SSLv3 and
  TLSv1.1.
  </p>
  
  @param builder the configuration builder to apply this setting to
  @param <B> Type of the ConnectionConfiguration builder.
  
  @return the given builder