Implemented Credential acquisition and release.

This commit is contained in:
antiduh
2014-06-19 02:26:30 +00:00
parent 22c6a5d3f9
commit f96ef74e9b
8 changed files with 168 additions and 21 deletions

View File

@@ -10,17 +10,17 @@ namespace NSspi
[Serializable]
public class SSPIException : Exception
{
private int errorCode;
private SecurityStatus errorCode;
private string message;
public SSPIException( SerializationInfo info, StreamingContext context )
: base( info, context )
{
this.message = info.GetString( "messsage" );
this.errorCode = info.GetInt32( "errorCode" );
this.errorCode = (SecurityStatus)info.GetUInt32( "errorCode" );
}
public SSPIException( string message, int errorCode )
public SSPIException( string message, SecurityStatus errorCode )
{
this.message = message;
this.errorCode = errorCode;
@@ -34,7 +34,7 @@ namespace NSspi
info.AddValue( "errorCode", this.errorCode );
}
public int ErrorCode
public SecurityStatus ErrorCode
{
get
{