|
From: Milinovsky,Martin <Mar...@dr...> - 2003-05-27 15:36:01
|
First thanx for the reply! Well, I know the method checkValidity(), but I think this only checks if = this key EXPIRES at a given Date, but not if it is revoked - correct me = if i'm wrong! Any key may have no expiration-date and therefore the = Method checkValidity() would say that this key is valid, but the key may = nevertheless be revoked. How do I get this information? Ciao Martin -----Original Message----- From: mo...@sp... [mailto:mo...@sp...] Sent: Dienstag, 27. Mai 2003 17:28 To: Milinovsky,Martin; cry...@li... Subject: RE: [Cryptix-users] Revokation Depending on the type of certificate you've got, you can use java.security.cert.X509Certificate's=20 checkValidity() or checkValidity(Date) methods. The second is = documented as: Checks that the given date is within the certificate's validity = period.=20 In other words, this determines whether the certificate would be = valid=20 at the given date/time.=20 Alternatively, cryptix.pki.ExtendedCertificate has similar methods with = the same names and descriptions. -Moshe Original Message: ----------------- From: Milinovsky,Martin Mar...@dr... Date: Tue, 27 May 2003 16:55:50 +0200 To: cry...@li... Subject: [Cryptix-users] Revokation How can I tell if a (public) key is revoked? I didn't find any methods = to get this information. Regards Martin -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ . |