[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [iaik-jce] Subject as Name from X509Certificate?




----- Original Message -----
From: Andreas Siglreithmayr <andreas.siglreithmayr@memiq.com>
To: IAIK MailingList (E-mail) <iaik-jce@iaik.tu-graz.ac.at>
Sent: Tuesday, August 01, 2000 12:43 PM
Subject: [iaik-jce] Subject as Name from X509Certificate?


> Hello,
>
> how can I get the subject of a X509Certificate as an Instance of
> iaik.asn1.structures.Name?
> I found only a Method which returs the subject as java.security.Principal.
>
>
>
> Bye
>
> > Andreas Siglreithmayr
> > Development
> >
> > memIQ AG
> Hans-Pinsel-Straße 9a/Erdgeschoß
> D-85540 Haar
> > Phone: +49.(0)89.4563.9325
> > mailto:andreas.siglreithmayr@memIQ.com
> >
> >
> >


The only thing that you have to do is make a casting of Principal :

    (Name) certificate.getSubject();


Jacobo

--
Mailinglist-archive at http://jcewww.iaik.at/mailarchive/iaik-jce/jcethreads.html

To unsubscribe send an email to listserv@iaik.at with the folowing content: UNSUBSCRIBE iaik-jce