Code example for X509TrustManager

Methods: checkServerTrusted

0
	public void checkServerTrusted(X509Certificate[] certificates,String authType) throws CertificateException {
 
		if ((certificates != null) && (certificates.length == 1)) {
			certificates[0].checkValidity();
		} else { 
			standardTrustManager.checkServerTrusted(certificates,authType);
		} 
	} 
 
	/** 
	 * @see javax.net.ssl.X509TrustManager#getAcceptedIssuers() 
	 */ 
	public X509Certificate[] getAcceptedIssuers() {
		return this.standardTrustManager.getAcceptedIssuers();
	} 
}