Java 类java.security.cert.CRLSelector 实例源码

项目:ipack    文件:MultiCertStoreSpi.java   
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;
}
项目:Aki-SSL    文件:MultiCertStoreSpi.java   
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;
}
项目:RipplePower    文件:MultiCertStoreSpi.java   
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;
}
项目:RipplePower    文件:PKIXCRLStoreSelector.java   
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;
        }
    });
}
项目:CryptMeme    文件:MultiCertStoreSpi.java   
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;
}
项目:ripple-lib-java    文件:MultiCertStoreSpi.java   
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;
}
项目:ripple-lib-java    文件:PKIXCRLStoreSelector.java   
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;
        }
    });
}
项目:irma_future_id    文件:MultiCertStoreSpi.java   
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;
}
项目:irma_future_id    文件:MultiCertStoreSpi.java   
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;
}
项目:bc-java    文件:MultiCertStoreSpi.java   
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;
}
项目:bc-java    文件:MultiCertStoreSpi.java   
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;
}
项目:DroidText    文件:MultiCertStoreSpi.java   
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;
}
项目:OpenJSharp    文件:URICertStore.java   
/**
 * 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();
    }
}
项目:jdk8u-jdk    文件:URICertStore.java   
/**
 * 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();
    }
}
项目:openjdk-jdk10    文件:URICertStore.java   
/**
 * 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();
    }
}
项目:openjdk9    文件:URICertStore.java   
/**
 * 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();
    }
}
项目:jdk8u_jdk    文件:URICertStore.java   
/**
 * 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();
    }
}
项目:lookaside_java-1.8.0-openjdk    文件:URICertStore.java   
/**
 * 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();
    }
}
项目:javify    文件:CollectionCertStoreImpl.java   
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;
}
项目:jvm-stm    文件:CollectionCertStoreImpl.java   
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;
}
项目:infobip-open-jdk-8    文件:URICertStore.java   
/**
 * 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();
    }
}
项目:jdk8u-dev-jdk    文件:URICertStore.java   
/**
 * 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();
    }
}
项目:In-the-Box-Fork    文件:MyCertStoreSpi.java   
public Collection<CRL> engineGetCRLs(CRLSelector selector)
        throws CertStoreException {
    if (selector == null) {
        throw new CertStoreException("Parameter is null");
    }
    return null;
}
项目:In-the-Box-Fork    文件:CertStore2Test.java   
@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;
}
项目:jdk7-jdk    文件:URICertStore.java   
/**
 * 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();
    }
}
项目:openjdk-source-code-learn    文件:URICertStore.java   
/**
 * 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();
    }
}
项目:OLD-OpenJDK8    文件:URICertStore.java   
/**
 * 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();
    }
}
项目:cn1    文件:MyCertStoreSpi.java   
public Collection engineGetCRLs(CRLSelector selector)
        throws CertStoreException {
    if (selector == null) {
        throw new CertStoreException("Parameter is null");
    }
    return null;
}
项目:cn1    文件:CertStore_ImplTest.java   
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);
}
项目:JamVM-PH    文件:CollectionCertStoreImpl.java   
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;
}
项目:openjdk-jdk7u-jdk    文件:URICertStore.java   
/**
 * 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();
    }
}
项目:classpath    文件:CollectionCertStoreImpl.java   
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;
}
项目:freeVM    文件:MyCertStoreSpi.java   
public Collection engineGetCRLs(CRLSelector selector)
        throws CertStoreException {
    if (selector == null) {
        throw new CertStoreException("Parameter is null");
    }
    return null;
}
项目:freeVM    文件:CertStore_ImplTest.java   
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);
}
项目:freeVM    文件:MyCertStoreSpi.java   
public Collection engineGetCRLs(CRLSelector selector)
        throws CertStoreException {
    if (selector == null) {
        throw new CertStoreException("Parameter is null");
    }
    return null;
}
项目:freeVM    文件:CertStore_ImplTest.java   
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);
}
项目:openjdk-icedtea7    文件:URICertStore.java   
/**
 * 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();
    }
}
项目:OpenJSharp    文件:SSLServerCertStore.java   
public Collection<X509CRL> engineGetCRLs(CRLSelector selector)
    throws CertStoreException
{
    throw new UnsupportedOperationException();
}
项目:jdk8u-jdk    文件:SSLServerCertStore.java   
public Collection<X509CRL> engineGetCRLs(CRLSelector selector)
    throws CertStoreException
{
    throw new UnsupportedOperationException();
}
项目:openjdk-jdk10    文件:SSLServerCertStore.java   
public Collection<X509CRL> engineGetCRLs(CRLSelector selector)
    throws CertStoreException
{
    throw new UnsupportedOperationException();
}