Read certificate information

Fabio Trentini (trentini.fabio@mailsp.globalnet.ch)
Thu, 23 Oct 1997 15:57:44 +0100

Date: Thu, 23 Oct 1997 15:57:44 +0100
From: Fabio Trentini <trentini.fabio@mailsp.globalnet.ch>
To: java-security@web2.javasoft.com
Subject: Read certificate information

Hello,

I am doing some tests using the Security API's and have a question
related to the information stored in a certificate issued via javakey.

QUESTION :

By using the Identity class combined with the
IdentityScope.getIdentity() method I can
get the relevant Certificate information associated with the Identity.
This seems to work fine.

Now the question is :

Is there a way to get the same information by reading diretcly from a
certificate file (i.e. given a certificate file, open it and retrieve
information such as the Public key,etc...).

If yes, could you provide me with a sample code ?

Thank's and kind Regards

FABIO