Beispiel #1
0
 public bool Equals(IPassword other)
 {
     return(ClientId.Equals(other.ClientId) && Sha1Text == other.Sha1Text);
 }
Beispiel #2
0
 public Password(Guid guid, IPAddress ip, SecureString pass, AdminLevel level)
 {
     this.clientid = new ClientId(guid, ip);
     this.level    = level;
     this.sha1text = CreateSha1Text(pass);
 }
Beispiel #3
0
 public Password(Record record, AdminLevel level, SecureString pass)
 {
     this.clientid = record.ClientId;
     this.level    = level;
     this.sha1text = CreateSha1Text(pass);
 }
Beispiel #4
0
 public Password(Guid guid, IPAddress ip, string sha1text, AdminLevel level)
 {
     this.clientid = new ClientId(guid, ip);
     this.level    = level;
     this.sha1text = sha1text;
 }
Beispiel #5
0
 public Password(IClient client, string text)
 {
     this.clientid = new ClientId(client);
     this.level    = client.Admin;
     this.sha1text = CreateSha1Text(text);
 }