what-the-bank/sources/org/bouncycastle/jce/provider/X509StoreCertCollection.java

27 lines
1018 B
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
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);
}
}