class X509TrustManagerImpl implements X509TrustManager {

	@Override
	public void checkServerTrusted(X509Certificate[] certs, String arg1) throws CertificateException {
		boolean verified = false;
		if (certs !=null){
			for (X509Certificate cert : certs) {
				if (cert.equals(controllerCert)) {
					verified = true;
					break;
				}
			}
		}
		if (!verified)
			throw new CertificateException();
	}

	public  X509TrustManagerImpl(Certificate controllerCert);

}