本文整理汇总了Java中java.security.cert.CRLSelector类的典型用法代码示例。如果您正苦于以下问题:Java CRLSelector类的具体用法?Java CRLSelector怎么用?Java CRLSelector使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
CRLSelector类属于java.security.cert包,在下文中一共展示了CRLSelector类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: engineGetCRLs
import java.security.cert.CRLSelector; //导入依赖的package包/类
public Collection engineGetCRLs(CRLSelector crlSelector)
throws CertStoreException
{
boolean searchAllStores = params.getSearchAllStores();
Iterator iter = params.getCertStores().iterator();
List allCRLs = searchAllStores ? new ArrayList() : Collections.EMPTY_LIST;
while (iter.hasNext())
{
CertStore store = (CertStore)iter.next();
Collection crls = store.getCRLs(crlSelector);
if (searchAllStores)
{
allCRLs.addAll(crls);
}
else if (!crls.isEmpty())
{
return crls;
}
}
return allCRLs;
}
示例2: getCRLs
import java.security.cert.CRLSelector; //导入依赖的package包/类
public static Collection<? extends CRL> getCRLs(final PKIXCRLStoreSelector selector, CertStore certStore)
throws CertStoreException
{
return certStore.getCRLs(new CRLSelector()
{
public boolean match(CRL crl)
{
return selector.match(crl);
}
public Object clone()
{
return this;
}
});
}
示例3: if
import java.security.cert.CRLSelector; //导入依赖的package包/类
/**
* Checks if the specified X509CRL matches the criteria specified in the
* CRLSelector.
*/
private static Collection<X509CRL> getMatchingCRLs
(X509CRL crl, CRLSelector selector) {
if (selector == null || (crl != null && selector.match(crl))) {
return Collections.singletonList(crl);
} else {
return Collections.emptyList();
}
}
示例4: engineGetCRLs
import java.security.cert.CRLSelector; //导入依赖的package包/类
public Collection engineGetCRLs(CRLSelector selector)
throws CertStoreException
{
LinkedList result = new LinkedList();
for (Iterator it = store.iterator(); it.hasNext(); )
{
Object o = it.next();
if ((o instanceof CRL) && selector.match((CRL) o))
result.add(o);
}
return result;
}
示例5: engineGetCRLs
import java.security.cert.CRLSelector; //导入依赖的package包/类
public Collection<CRL> engineGetCRLs(CRLSelector selector)
throws CertStoreException {
if (selector == null) {
throw new CertStoreException("Parameter is null");
}
return null;
}
示例6: engineGetCRLs
import java.security.cert.CRLSelector; //导入依赖的package包/类
@Override
public Collection<? extends CRL> engineGetCRLs(CRLSelector selector)
throws CertStoreException {
if (selector != null) {
if (!(selector instanceof MyCRLSelector)) {
throw new CertStoreException();
}
return new ArrayList<CRL>();
}
return null;
}
示例7: if
import java.security.cert.CRLSelector; //导入依赖的package包/类
/**
* Checks if the specified X509CRL matches the criteria specified in the
* CRLSelector.
*/
private static Collection<X509CRL> getMatchingCRLs
(X509CRL crl, CRLSelector selector) {
if (selector == null || (crl != null && selector.match(crl))) {
return Collections.<X509CRL>singletonList(crl);
} else {
return Collections.<X509CRL>emptyList();
}
}
示例8: engineGetCRLs
import java.security.cert.CRLSelector; //导入依赖的package包/类
public Collection engineGetCRLs(CRLSelector selector)
throws CertStoreException {
if (selector == null) {
throw new CertStoreException("Parameter is null");
}
return null;
}
示例9: checkResult
import java.security.cert.CRLSelector; //导入依赖的package包/类
private void checkResult(CertStore certS) throws CertStoreException,
InvalidAlgorithmParameterException {
CertSelector certSelector = new X509CertSelector();
CRLSelector crlSelector = new X509CRLSelector();
Collection collection = certS.getCertificates(certSelector);
assertNull("Not null collection", collection);
collection = certS.getCRLs(crlSelector);
assertNull("Not null collection", collection);
}
示例10: engineGetCRLs
import java.security.cert.CRLSelector; //导入依赖的package包/类
public Collection<X509CRL> engineGetCRLs(CRLSelector selector)
throws CertStoreException
{
throw new UnsupportedOperationException();
}