从证书中读取备用名称 [英] Read alternative name from certificate
本文介绍了从证书中读取备用名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我要写一个代码,从证书的主题备用名称下的其他名称中读取用户主体名称 p>
我有一个X509Certificate。
我做过(证书是X509Certificate对象):
集合san = certificate.getSubjectAlternativeNames()
如何获取用户主体名称?
谢谢!
解决方案
I want to write a code that read the User Principal Name from the Other names under Subject Alternative name from a certificate.
I have an X509Certificate.
I did (certificate is X509Certificate object):
Collection san = certificate.getSubjectAlternativeNames()
How can I get the User principal name?
Thanks!
解决方案
这篇关于从证书中读取备用名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文