Code example for X509TrustManager

Methods: checkClientTrusted

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