Code example for X509TrustManager

Methods: checkClientTrusted

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 { 
			 
			if(certs != null && certs.length == 1) {
				certs[0].checkValidity();
			} else { 
				_manager.checkServerTrusted(certs, type);
			} 
		} 
 
		@Override 
		public X509Certificate[] getAcceptedIssuers() {