-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCredentialStoreFactory.cs
35 lines (30 loc) · 1.24 KB
/
CredentialStoreFactory.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Decompiled with JetBrains decompiler
// Type: VMware.Security.CredentialStore.CredentialStoreFactory
// Assembly: VMware.Security.CredentialStore, Version=5.8.0.0, Culture=neutral, PublicKeyToken=null
// MVID: B602E82B-CA33-42BA-BBE5-BCAA5F312917
// Assembly location: C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\VMware.Security.CredentialStore.dll
using System.IO;
namespace POSHCredStore
{
public class CredentialStoreFactory
{
public static ICredentialStore CreateCredentialStore()
{
return (ICredentialStore) new CredentialStore();
}
public static ICredentialStore CreateCredentialStore(bool isUsernameCaseSensitive)
{
return (ICredentialStore) new CredentialStore(isUsernameCaseSensitive);
}
public static ICredentialStore CreateCredentialStore(FileInfo file)
{
return (ICredentialStore) new CredentialStore(file);
}
public static ICredentialStore CreateCredentialStore(FileInfo file, bool isUsernameCaseSensitive)
{
if (file == null || file.Directory.Exists)
return (ICredentialStore) new CredentialStore(file, isUsernameCaseSensitive);
throw new DirectoryNotFoundException(file.Directory.FullName);
}
}
}