CertStore.GetCRLs(ICRLSelector) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回一个 Collection 与指定选择器匹配的 s CRL。
[Android.Runtime.Register("getCRLs", "(Ljava/security/cert/CRLSelector;)Ljava/util/Collection;", "")]
public System.Collections.Generic.ICollection<Java.Security.Cert.CRL>? GetCRLs(Java.Security.Cert.ICRLSelector? selector);
[<Android.Runtime.Register("getCRLs", "(Ljava/security/cert/CRLSelector;)Ljava/util/Collection;", "")>]
member this.GetCRLs : Java.Security.Cert.ICRLSelector -> System.Collections.Generic.ICollection<Java.Security.Cert.CRL>
参数
- selector
- ICRLSelector
CRLSelector用于选择应返回的 SCRL。 指定 null 以返回所有 CRLs(如果受支持)。
返回
Collection与指定的选择器匹配的一个 CRLs (从不null)
- 属性
例外
如果发生错误,则为
注解
返回一个 Collection 与指定选择器匹配的 s CRL。
CRL如果没有与选择器匹配,将返回空Collection。
对于某些CertStore类型,生成的结果Collection可能不包含<与选择器匹配的 b>/<b>CRL。 例如,LDAP CertStore 可能不会搜索目录中的所有条目。 相反,它可能只是搜索可能包含它要查找的 CRL条目。
某些 CertStore 实现(尤其是 LDAP CertStores)可能会引发一个 CertStoreException ,除非提供了非 null CRLSelector ,其中包括可用于查找 CRL 的特定条件。 要检查的颁发者名称和/或证书特别有用。
Java文档java.security.cert.CertStore.getCRLs(java.security.cert.CRLSelector)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。