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();
}
}