Esempio n. 1
0
        public bool equals(Object o)
        {
            if (!(o is IdentityFile))
            {
                return(base.Equals(o));
            }
            IdentityFile foo = (IdentityFile)o;

            return(getName().Equals(foo.getName()));
        }
Esempio n. 2
0
        public void addIdentity(string name, byte[] prvkey, byte[] pubkey, byte[] passphrase)
        {
            Identity identity = (Identity)IdentityFile.newInstance(name, prvkey, pubkey, this);

            addIdentity(identity, passphrase);
        }
Esempio n. 3
0
        public void addIdentity(string prvkey, byte[] passphrase)
        {
            Identity identity = (Identity)IdentityFile.newInstance(prvkey, null, this);

            addIdentity(identity, passphrase);
        }