Create() public static method

public static Create ( SharedNetwork protocol ) : Handshake
protocol SharedNetwork
return Handshake
Ejemplo n.º 1
0
 public static StartTransaction Create(string domain, SharedNetwork.Protocol protocol)
 {
     return(new StartTransaction()
     {
         ServerHandshake = Handshake.Create(protocol), Domain = domain, Encrypted = false, Accepted = true
     });
 }
Ejemplo n.º 2
0
 public static StartTransaction CreateRejection()
 {
     return(new StartTransaction()
     {
         ServerHandshake = Handshake.Create(SharedNetwork.DefaultProtocol), Domain = string.Empty, PublicKeyJSON = string.Empty, Accepted = false, Encrypted = false
     });
 }
Ejemplo n.º 3
0
 public static StartTransaction Create(string domain, System.Security.Cryptography.RSAParameters publicKey, SharedNetwork.Protocol protocol)
 {
     return(new StartTransaction()
     {
         ServerHandshake = Handshake.Create(protocol), Domain = domain, RSAKey = publicKey, Accepted = true, Encrypted = true
     });
 }