FileDocCategorySizeDatePackage
HttpsClient.javaAPI DocExample1454Mon Jan 15 12:41:26 GMT 2001javasec.samples.ch14

HttpsClient.java

package javasec.samples.ch14;

import java.io.*;
import java.net.*;

import com.sun.net.ssl.*;

public class HttpsClient {

    static class HttpClientVerifier implements HostnameVerifier {
        public boolean verify(String url, String cert) {
            try {
                // We know the strings don