@SuppressWarnings("unchecked") public static Collection<X509Certificate> readCertificates(String base64data) throws Exception {
  try (InputStream is=new ByteArrayInputStream(decodeBase64(base64data))){
    return (Collection<X509Certificate>)CERT_FACTORY.generateCertificates(is);
  }
 }

@ SuppressWarnings ( "unchecked" ) public static Collection < X509Certificate > readCertificates ( String base64data ) throws Exception { try ( InputStream is = new ByteArrayInputStream ( decodeBase64 ( base64data ) ) ) { return ( Collection < X509Certificate > ) CERT_FACTORY . generateCertificates ( is ) ; } }
reads x509certificate object from given base64 data .
