Code example for NoSuchAlgorithmException

0
	         TrustManagerFactory factory =   
	TrustManagerFactory.getInstance(algo); 
	         factory.init(keystore); 
	         TrustManager[] trustmanagers = factory.getTrustManagers(); 
	         if (trustmanagers.length == 0) { 
	             throw new NoSuchAlgorithmException(algo + " trust manager   not supported"); 
	         }  
	         this.standardTrustManager = (X509TrustManager)trustmanagers[0]; 
	     }  
 
	     /**  
	      * @see    
	javax.net.ssl.X509TrustManager#checkClientTrusted(X509Certificate[],    
	String)  
	      */  
	     public boolean isClientTrusted(X509Certificate[] certificates) { 
	         return true;  
	     }  
 
	     /**  
	      * @see