docs: public static X509Certificate newX509Certificate(final String type,
  		final byte[] certificateData) throws CertificateException
  	{
  		final CertificateFactory cf = CertificateFactory.getInstance(type);
  		final InputStream inputStream = new ByteArrayInputStream(certificateData);
  		final X509Certificate certificate = (X509Certificate)cf.generateCertificate(inputStream);
  		return certificate;
  	}