Web サーバー (Apache) に強力な認証を実装しましたが、うまく機能します。しかし、cac ID と suject 名を Java .properties ファイルまたは XML に存在するものと比較する必要がある Java クラスを実装したいと考えています。
1130 次
1 に答える
3
Not sure about your deployment but for example if you need to do that from a servlet deployed in Tomcat
you could do:
X509Certificate[] certs = (X509Certificate[])request.getAttribute("javax.servlet.request.X509Certificate");
If the client has send certificates then certs
will have them and you can do the check you need and possibly reject according to your needs.
Note that this will happen after the SSL handshake has finished.
于 2012-09-11T19:36:36.497 に答える