public bool equals(Object o) { if (!(o is IdentityFile)) { return(base.Equals(o)); } IdentityFile foo = (IdentityFile)o; return(getName().Equals(foo.getName())); }
public void addIdentity(string name, byte[] prvkey, byte[] pubkey, byte[] passphrase) { Identity identity = (Identity)IdentityFile.newInstance(name, prvkey, pubkey, this); addIdentity(identity, passphrase); }
public void addIdentity(string prvkey, byte[] passphrase) { Identity identity = (Identity)IdentityFile.newInstance(prvkey, null, this); addIdentity(identity, passphrase); }