public void engineInit(X509StoreParameters params) { if (!(params instanceof X509CollectionStoreParameters)) { throw new IllegalArgumentException(params.toString()); } _store = new CollectionStore(((X509CollectionStoreParameters)params).getCollection()); }
public Collection engineGetMatches(Selector selector) { return _store.getMatches(selector); } }
public void engineInit(X509StoreParameters params) { if (!(params instanceof X509CollectionStoreParameters)) { throw new IllegalArgumentException(params.toString()); } _store = new CollectionStore(((X509CollectionStoreParameters)params).getCollection()); }
public Collection engineGetMatches(Selector selector) { return _store.getMatches(selector); } }
public void engineInit(X509StoreParameters params) { if (!(params instanceof X509CollectionStoreParameters)) { throw new IllegalArgumentException(params.toString()); } _store = new CollectionStore(((X509CollectionStoreParameters)params).getCollection()); }
public Collection engineGetMatches(Selector selector) { return _store.getMatches(selector); } }
public void engineInit(X509StoreParameters params) { if (!(params instanceof X509CollectionStoreParameters)) { throw new IllegalArgumentException(params.toString()); } _store = new CollectionStore(((X509CollectionStoreParameters)params).getCollection()); }
public Collection engineGetMatches(Selector selector) { return _store.getMatches(selector); } }
public void engineInit(X509StoreParameters params) { if (!(params instanceof X509CollectionStoreParameters)) { throw new IllegalArgumentException(params.toString()); } _store = new CollectionStore(((X509CollectionStoreParameters)params).getCollection()); }
public Collection engineGetMatches(Selector selector) { return _store.getMatches(selector); } }
public void engineInit(X509StoreParameters params) { if (!(params instanceof X509CollectionStoreParameters)) { throw new IllegalArgumentException(params.toString()); } _store = new CollectionStore(((X509CollectionStoreParameters)params).getCollection()); }
public Collection engineGetMatches(Selector selector) { return _store.getMatches(selector); } }
/** * Initializes this store. * * @param params The {@link X509CollectionStoreParameters}s for this store. * @throws IllegalArgumentException if <code>params</code> is no instance of * <code>X509CollectionStoreParameters</code>. */ public void engineInit(X509StoreParameters params) { if (!(params instanceof X509CollectionStoreParameters)) { throw new IllegalArgumentException( "Initialization parameters must be an instance of " + X509CollectionStoreParameters.class.getName() + "."); } _store = new CollectionStore(((X509CollectionStoreParameters)params) .getCollection()); }
/** * Returns a colelction of certificate pairs which match the given * <code>selector</code>. * <p/> * The returned collection contains * {@link org.spongycastle.x509.X509CertificatePair}s. The selector must be * a {@link org.spongycastle.x509.X509CertPairStoreSelector} to select * certificate pairs. * * @return A collection with matching certificate pairs. */ public Collection engineGetMatches(Selector selector) { return _store.getMatches(selector); } }
/** * Initializes this store. * * @param params The {@link X509CollectionStoreParameters}s for this store. * @throws IllegalArgumentException if <code>params</code> is no instance of * <code>X509CollectionStoreParameters</code>. */ public void engineInit(X509StoreParameters params) { if (!(params instanceof X509CollectionStoreParameters)) { throw new IllegalArgumentException( "Initialization parameters must be an instance of " + X509CollectionStoreParameters.class.getName() + "."); } _store = new CollectionStore(((X509CollectionStoreParameters)params) .getCollection()); }
/** * Returns a colelction of certificate pairs which match the given * <code>selector</code>. * <p> * The returned collection contains * {@link org.spongycastle.x509.X509CertificatePair}s. The selector must be * a {@link org.spongycastle.x509.X509CertPairStoreSelector} to select * certificate pairs. * </p> * @return A collection with matching certificate pairs. */ public Collection engineGetMatches(Selector selector) { return _store.getMatches(selector); } }
/** * Return a Store of X509CertificateHolder objects representing all the certificates associated with * entries in the store. * * @return a Store of X509CertificateHolder. */ public Store toCertificateStore() { Collection col = this.getMatches(null); List certColl = new ArrayList(col.size()); for (Iterator it = col.iterator(); it.hasNext();) { DANEEntry entry = (DANEEntry)it.next(); certColl.add(entry.getCertificate()); } return new CollectionStore(certColl); } }
public Iterator<T> iterator() { return getMatches(null).iterator(); } }
/** * Return a Store of X509CertificateHolder objects representing all the certificates associated with * entries in the store. * * @return a Store of X509CertificateHolder. */ public Store toCertificateStore() { Collection col = this.getMatches(null); List certColl = new ArrayList(col.size()); for (Iterator it = col.iterator(); it.hasNext();) { DANEEntry entry = (DANEEntry)it.next(); certColl.add(entry.getCertificate()); } return new CollectionStore(certColl); } }
Store getCRLs(ASN1Set crlSet) { if (crlSet != null) { List crlList = new ArrayList(crlSet.size()); for (Enumeration en = crlSet.getObjects(); en.hasMoreElements();) { ASN1Primitive obj = ((ASN1Encodable)en.nextElement()).toASN1Primitive(); if (obj instanceof ASN1Sequence) { crlList.add(new X509CRLHolder(CertificateList.getInstance(obj))); } } return new CollectionStore(crlList); } return new CollectionStore(new ArrayList()); }