27 lines
1018 B
Java
27 lines
1018 B
Java
|
package org.bouncycastle.jce.provider;
|
||
|
|
||
|
import java.util.Collection;
|
||
|
import org.bouncycastle.util.CollectionStore;
|
||
|
import org.bouncycastle.util.Selector;
|
||
|
import org.bouncycastle.x509.X509CollectionStoreParameters;
|
||
|
import org.bouncycastle.x509.X509StoreParameters;
|
||
|
import org.bouncycastle.x509.X509StoreSpi;
|
||
|
|
||
|
/* loaded from: classes6.dex */
|
||
|
public class X509StoreCertCollection extends X509StoreSpi {
|
||
|
private CollectionStore _store;
|
||
|
|
||
|
@Override // org.bouncycastle.x509.X509StoreSpi
|
||
|
public void engineInit(X509StoreParameters x509StoreParameters) {
|
||
|
if (!(x509StoreParameters instanceof X509CollectionStoreParameters)) {
|
||
|
throw new IllegalArgumentException(x509StoreParameters.toString());
|
||
|
}
|
||
|
this._store = new CollectionStore(((X509CollectionStoreParameters) x509StoreParameters).getCollection());
|
||
|
}
|
||
|
|
||
|
@Override // org.bouncycastle.x509.X509StoreSpi
|
||
|
public Collection engineGetMatches(Selector selector) {
|
||
|
return this._store.getMatches(selector);
|
||
|
}
|
||
|
}
|