import com.google.api.client.http.javanet.NetHttpTransport;
import nl.altindag.ssl.SSLFactory;
public class App {
public static void main(String[] args) throws Exception {
SSLFactory sslFactory = SSLFactory.builder()
.withIdentityMaterial("identity.jks", "password".toCharArray())
.withTrustMaterial("truststore.jks", "password".toCharArray())
.build();
NetHttpTransport httpTransport = new NetHttpTransport.Builder()
.setSslSocketFactory(sslFactory.getSslSocketFactory())
.setHostnameVerifier(sslFactory.getHostnameVerifier())
.build();
}
}