简体   繁体   English

在X509TrustManager中,方法“ getAcceptedIssuers”用于什么?

[英]In X509TrustManager, what are method “getAcceptedIssuers” used for?

There are three method in X509TrustManager. X509TrustManager中有三种方法。 1 checkClientTrusted : check whether the client's certificates are trusted. 1 checkClientTrusted:检查客户端的证书是否受信任。 2 checkServerTrusted: check whether the server's certificates are trusted. 2 checkServerTrusted:检查服务器的证书是否受信任。 So what the method getAcceptedIssuers for? 那么getAcceptedIssuers的方法是什么呢? Where it will be called? 它将在哪里被调用?

getAcceptedIssuers will return a list of Certificate Authorities (CA) from the configured/available truststore. getAcceptedIssuers将从已配置/可用的信任库中返回证书颁发机构(CA)的列表。 The method is called internally by checkClientTrusted and checkServerTrusted, where it will compare the CA of the incoming certificate against the list of trusted CAs as available from the TrustStore. 该方法在内部由checkClientTrusted和checkServerTrusted调用,在此方法中,它将把传入证书的CA与TrustStore可用的受信任CA列表进行比较。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM