Refactored Credential et al so that the security package is provided by name (string), and not an enum. Security packages are runtime enumerable, and new ones may be created that we don't have any idea of.

This commit is contained in:
antiduh
2014-06-30 15:36:20 +00:00
parent 5da12ad4c4
commit dec1509835
6 changed files with 13 additions and 42 deletions

View File

@@ -16,13 +16,13 @@ namespace NSspi.Credentials
{
private bool disposed;
private SecurityPackage securityPackage;
private string securityPackage;
private SafeCredentialHandle safeCredHandle;
private DateTime expiry;
public Credential( SecurityPackage package )
public Credential( string package )
{
this.disposed = false;
this.securityPackage = package;
@@ -35,7 +35,7 @@ namespace NSspi.Credentials
Dispose( false );
}
public SecurityPackage SecurityPackage
public string SecurityPackage
{
get
{