X509Data data = dataList.get(0);
List<X509Certificate> certList = data.getX509Certificates();
Iterator<X509Certificate> certIterator = certList.iterator();
while (certIterator.hasNext()) {
X509Certificate certElem = null;
String certValue = null;
byte[] certInBytes = null;
ByteArrayInputStream inputStream = null;
CertificateFactory factory = null;
java.security.cert.X509Certificate x509Cert = null;
certElem = (X509Certificate) certIterator.next();
certValue = certElem.getValue();
certInBytes = Base64.decode(certValue);
inputStream = new ByteArrayInputStream(certInBytes);
factory = CertificateFactory.getInstance("X509");
x509Cert = (java.security.cert.X509Certificate) factory
.generateCertificate(inputStream);