@SneakyThrows public static X509Certificate readCertificate(InputStream is){
  return (X509Certificate)CERT_FACTORY.generateCertificate(is);
}

@ SneakyThrows public static X509Certificate readCertificate ( InputStream is ) { return ( X509Certificate ) CERT_FACTORY . generateCertificate ( is ) ; }
reads x509certificate object from given input stream .
