From 372460a78f0737981c464798ed30c4b947fb1dd1 Mon Sep 17 00:00:00 2001 From: antiduh Date: Mon, 30 Jun 2014 15:23:12 +0000 Subject: [PATCH] Reworking Credential so that it can be extended by a third party for adapting to other means of acquiring credentials. --- NSspi/Credentials/Credential.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/NSspi/Credentials/Credential.cs b/NSspi/Credentials/Credential.cs index 193904c..403c06d 100644 --- a/NSspi/Credentials/Credential.cs +++ b/NSspi/Credentials/Credential.cs @@ -199,6 +199,15 @@ namespace NSspi.Credentials return this.expiry; } + protected set + { + if( this.disposed ) + { + throw new ObjectDisposedException( "Credential" ); + } + + this.expiry = value; + } } public SafeCredentialHandle Handle