Hi,
I'm afraid I gave some wrong advice earlier today. Indeed, the JDK contains
an implementation of a CertificateFactory provided by SUN, so my reference
to the mozilla package doesn't make much sense.
Thanks to Karl and Benoit for pointing that out.
Regards,
Assen
> -----Original Message-----
> From: Karl Scheibelhofer [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, May 03, 2001 4:00 PM
> To: marilen; [EMAIL PROTECTED]
> Subject: RE: [OCF] help X509
>
> hi,
>
> the correct code for this purpose is
>
> CertificateFactory certificateFactory =
> CertificateFactory.getInstance("X.509");
> // you can also explicitly specify the provider to use
> // CertificateFactory certificateFactory =
> CertificateFactory.getInstance("X.509", "IAIK");
> X509Certificate certificate = (X509Certificate)
> certificateFactory.generateCertificate(new
> ByteArrayInputStream(encodedCertificateByteArray));
>
> i hope this is what you are looking for.
>
> regards
>
> Karl
>
> > -----Original Message-----
> > From: marilen [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, May 03, 2001 3:04 PM
> > To: [EMAIL PROTECTED]
> > Subject: [OCF] help X509
> >
> >
> > I have 814 bytes of certificate and i need to interpret them as a X509
> > certificate in java. Which classes should i use? Can anyone help?
> >
> >
> >
> > ---
> > > Visit the OpenCard web site at http://www.opencard.org/ for more
> > > information on OpenCard---binaries, source code, documents.
> > > This list is being archived at
> http://www.opencard.org/archive/opencard/
> >
> > ! To unsubscribe from the [EMAIL PROTECTED] mailing list send an
> email
> > ! to
> > ! [EMAIL PROTECTED]
> > ! containing the word
> > ! unsubscribe
> > ! in the body.
> >
> >
> >
>
>
>
> ---
> > Visit the OpenCard web site at http://www.opencard.org/ for more
> > information on OpenCard---binaries, source code, documents.
> > This list is being archived at http://www.opencard.org/archive/opencard/
>
> ! To unsubscribe from the [EMAIL PROTECTED] mailing list send an email
> ! to
> ! [EMAIL PROTECTED]
> ! containing the word
> ! unsubscribe
> ! in the body.
---
> Visit the OpenCard web site at http://www.opencard.org/ for more
> information on OpenCard---binaries, source code, documents.
> This list is being archived at http://www.opencard.org/archive/opencard/
! To unsubscribe from the [EMAIL PROTECTED] mailing list send an email
! to
! [EMAIL PROTECTED]
! containing the word
! unsubscribe
! in the body.