当前位置: 首页>>代码示例>>Java>>正文


Java CRLSelector类代码示例

本文整理汇总了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;
}
 
开发者ID:Appdome,项目名称:ipack,代码行数:25,代码来源:MultiCertStoreSpi.java

示例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;
        }
    });
}
 
开发者ID:cping,项目名称:RipplePower,代码行数:17,代码来源:PKIXCRLStoreSelector.java

示例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();
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:13,代码来源:URICertStore.java

示例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;
}
 
开发者ID:vilie,项目名称:javify,代码行数:13,代码来源:CollectionCertStoreImpl.java

示例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;
}
 
开发者ID:keplersj,项目名称:In-the-Box-Fork,代码行数:8,代码来源:MyCertStoreSpi.java

示例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;
}
 
开发者ID:keplersj,项目名称:In-the-Box-Fork,代码行数:12,代码来源:CertStore2Test.java

示例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();
    }
}
 
开发者ID:openjdk,项目名称:jdk7-jdk,代码行数:13,代码来源:URICertStore.java

示例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;
}
 
开发者ID:shannah,项目名称:cn1,代码行数:8,代码来源:MyCertStoreSpi.java

示例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);
}
 
开发者ID:shannah,项目名称:cn1,代码行数:10,代码来源:CertStore_ImplTest.java

示例10: engineGetCRLs

import java.security.cert.CRLSelector; //导入依赖的package包/类
public Collection<X509CRL> engineGetCRLs(CRLSelector selector)
    throws CertStoreException
{
    throw new UnsupportedOperationException();
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:6,代码来源:SSLServerCertStore.java


注:本文中的java.security.cert.CRLSelector类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。