Code example for NoSuchAlgorithmException

0
			super(); 
			TrustManagerFactory fact = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());
			fact.init((KeyStore)null);
			TrustManager[] managers = fact.getTrustManagers();
			if(managers.length == 0) {
				throw new NoSuchAlgorithmException("No algorithm");
			} 
			_manager = (X509TrustManager)managers[0];
		} 
 
		@Override 
		public void checkClientTrusted(X509Certificate[] certs, String type)
			throws CertificateException, IllegalArgumentException { 
			 
			_manager.checkClientTrusted(certs, type);
		} 
 
		@Override 
		public void checkServerTrusted(X509Certificate[] certs, String type)
			throws CertificateException, IllegalArgumentException {