users@grizzly.java.net

Re: Writting an Grizzly SSL layer

From: Oleksiy Stashok <Oleksiy.Stashok_at_Sun.COM>
Date: Wed, 05 Aug 2009 17:36:18 +0200

Hi alaska,


> I"d like to build an SSL layer using the certificate stored already
> in the
> browser (cert.p12).
this is done, right?

> And than I"d like to get a SubjectDN from the certificate.
> How could I implement it?
In the filter next to SSLReadFilter you can ask for SSLEngine:
SSLEngine engine = ((WorkerThread)
Thread.currentThread()).getSSLEngine();

then get SSLSession:

SSLSession session = engine.getSession();

then from the session you can retrieve the SSL properties you may want.

WBR,
Alexey.

>
> Thank you very much,
> alaska:)
> --
> View this message in context: http://www.nabble.com/Writting-an-Grizzly-SSL-layer-tp24828035p24828035.html
> Sent from the Grizzly - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>