FileDocCategorySizeDatePackage
X509TrustManagerImpl.javaAPI DocAndroid 1.5 API1698Wed May 06 22:41:06 BST 2009org.apache.harmony.xnet.tests.support

X509TrustManagerImpl

public class X509TrustManagerImpl extends Object implements X509TrustManager

Fields Summary
Constructors Summary
Methods Summary
public voidcheckClientTrusted(java.security.cert.X509Certificate[] ax509certificate, java.lang.String s)

        
        if(ax509certificate == null || ax509certificate.length == 0)
            throw new IllegalArgumentException("null or zero-length certificate chain");
        if(s == null || s.length() == 0)
            throw new IllegalArgumentException("null or zero-length authentication type");
        
        for (int i = 0; i < ax509certificate.length; i++) {
            if (ax509certificate[i].getVersion() != 3) {
                throw new CertificateException();
            }
        }
    
public voidcheckServerTrusted(java.security.cert.X509Certificate[] ax509certificate, java.lang.String s)

        
        if(ax509certificate == null || ax509certificate.length == 0)
            throw new IllegalArgumentException("null or zero-length certificate chain");
        if(s == null || s.length() == 0)
            throw new IllegalArgumentException("null or zero-length authentication type");
        
        for (int i = 0; i < ax509certificate.length; i++) {
            if (ax509certificate[i].getVersion() != 3) {
                throw new CertificateException();
            }
        }
    
public java.security.cert.X509Certificate[]getAcceptedIssuers()

        X509Certificate[] cert = new X509Certificate[0];
        return cert;