mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2026-06-13 22:48:42 +00:00
Ver 3
This commit is contained in:
@@ -8,20 +8,24 @@ namespace Esiur.Security.Authority
|
||||
public class AuthenticationResult
|
||||
{
|
||||
public AuthenticationRuling Ruling { get; internal set; }
|
||||
public string Identity { get; internal set; }
|
||||
public string LocalIdentity { get; internal set; }
|
||||
public string RemoteIdentity { get; internal set; }
|
||||
|
||||
public object HandshakePayload { get; internal set; }
|
||||
//public object HandshakePayload { get; internal set; }
|
||||
|
||||
public byte[] SessionKey { get; internal set; }
|
||||
|
||||
public ExceptionCode? ExceptionCode { get; internal set; }
|
||||
public string ExceptionMessage { get; internal set; }
|
||||
|
||||
public AuthenticationResult(AuthenticationRuling ruling, string identity, object handshakePayload, byte[] sessionKey)
|
||||
public object AuthenticationData { get; internal set; }
|
||||
|
||||
public AuthenticationResult(AuthenticationRuling ruling, object authenticationData, string localIdentity = null, string remoteIdentity = null, byte[] sessionKey = null)
|
||||
{
|
||||
Ruling = ruling;
|
||||
Identity = identity;
|
||||
HandshakePayload = handshakePayload;
|
||||
LocalIdentity = localIdentity;
|
||||
RemoteIdentity = remoteIdentity;
|
||||
AuthenticationData = authenticationData;
|
||||
SessionKey = sessionKey;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user