String worldcheckURL= “thomsonreuters API URL” ; URL url = new URL(worldcheckURL); HttpsURLConnection connection = (HttpsURLConnection) url.openConnection(); X509Certificate[] certs = (X509Certificate[]) connection.getServerCertificates(); X509Certificate certificate = certs[0]; certificate.getVersion()); certificate.getNotAfter()) certificate.checkValidity();