public TrustManagerBuilder useDefault() throws NoSuchAlgorithmException, KeyStoreException {
  TrustManagerFactory tmf=TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());
  tmf.init((KeyStore)null);
  add(tmf.getTrustManagers());
  return (this);
}

public TrustManagerBuilder useDefault ( ) throws NoSuchAlgorithmException , KeyStoreException { TrustManagerFactory tmf = TrustManagerFactory . getInstance ( TrustManagerFactory . getDefaultAlgorithm ( ) ) ; tmf . init ( ( KeyStore ) null ) ; add ( tmf . getTrustManagers ( ) ) ; return ( this ) ; }
tells the builder to add the default ( system ) trustmanagers to the roster of ones to consider . for example , to support normal certificates plus a self - signed certificate , use usedefault ( ) . or ( ) . selfsigned ( . . . ) .
