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.

Reply via email to