public static ICertificateStore CreateStore(string storeType)
{
ICertificateStore store = null;
if (String.IsNullOrEmpty(storeType))
{
return (ICertificateStore) new CertificateIdentifierCollection();
}
switch (storeType)
{
case CertificateStoreType.Directory:
{
store = new DirectoryCertificateStore();
break;
}
}
return store;
}