Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.bouncycastle.x509;
 
 

Deprecated:
use CollectionStore - this class will be removed.
public class X509Store
    implements Store
    public static X509Store getInstance(String typeX509StoreParameters parameters)
        throws NoSuchStoreException
    {
        try
        {
            X509Util.Implementation impl = X509Util.getImplementation("X509Store"type);
            return createStore(implparameters);
        }
        catch (NoSuchAlgorithmException e)
        {
            throw new NoSuchStoreException(e.getMessage());
        }
    }
    public static X509Store getInstance(String typeX509StoreParameters parametersString provider)
    {
        return getInstance(typeparameters, X509Util.getProvider(provider));
    }
    public static X509Store getInstance(String typeX509StoreParameters parametersProvider provider)
        throws NoSuchStoreException
    {
        try
        {
            X509Util.Implementation impl = X509Util.getImplementation("X509Store"typeprovider);
            return createStore(implparameters);
        }
        catch (NoSuchAlgorithmException e)
        {
            throw new NoSuchStoreException(e.getMessage());
        }
    }
    private static X509Store createStore(X509Util.Implementation implX509StoreParameters parameters)
    {
        X509StoreSpi spi = (X509StoreSpi)impl.getEngine();
        spi.engineInit(parameters);
        return new X509Store(impl.getProvider(), spi);
    }
    private Provider     _provider;
    private X509StoreSpi _spi;
    private X509Store(
        Provider provider,
        X509StoreSpi spi)
    {
         = provider;
         = spi;
    }
    public Provider getProvider()
    {
       return ;
    }
    public Collection getMatches(Selector selector)
    {
        return .engineGetMatches(selector);
    }
New to GrepCode? Check out our FAQ X