Example usage for java.security.cert X509CRLSelector setIssuers

List of usage examples for java.security.cert X509CRLSelector setIssuers

Introduction

In this page you can find the example usage for java.security.cert X509CRLSelector setIssuers.

Prototype

public void setIssuers(Collection<X500Principal> issuers) 

Source Link

Document

Sets the issuerNames criterion.

Usage

From source file:mitm.common.security.crl.CRLStoreMaintainerImpl.java

private CloseableIterator<X509CRL> getCRLsWithSameIssuer(X509CRL crl) throws CRLStoreException {
    Check.notNull(crl, "crl");

    X509CRLSelector crlSelector = new X509CRLSelector();

    crlSelector.setIssuers(Collections.singletonList(crl.getIssuerX500Principal()));

    CloseableIterator<X509CRL> iterator = crlStore.getCRLIterator(crlSelector);

    return iterator;
}