Exemplo 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()));
        }
Exemplo 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);
        }
Exemplo n.º 3
0
        public void addIdentity(string prvkey, byte[] passphrase)
        {
            Identity identity = (Identity)IdentityFile.newInstance(prvkey, null, this);

            addIdentity(identity, passphrase);
        }