code: public static SslContext forKeystoreAndTruststore(String keystorePath, String keystorePassword, String truststorePath, String truststorePassword, String keyManagerAlgorithm)
              throws SecurityContextException {
  
          try {
              return forKeystoreAndTruststore(new FileInputStream(keystorePath), keystorePassword, new FileInputStream(truststorePath), truststorePassword, keyManagerAlgorithm);
          } catch (Exception e) {
              throw new SecurityContextException(e);
          }
      }
docs: Builds SslContext using protected keystore and truststores. Adequate for mutual TLS connections.
  @param keystorePath Path for keystore file
  @param keystorePassword Password for protected keystore file
  @param truststorePath Path for truststore file
  @param truststorePassword Password for protected truststore file
  @param keyManagerAlgorithm Algorithm for keyManager used to process keystorefile
  @return SslContext ready to use
  @throws SecurityContextException