Exemplo n.º 1
0
        public void TestRevoke2NullUser()
        {
            HFCAClient client = HFCAClient.Create("client", "http://localhost:99", null);

            client.CryptoSuite = crypto;
            client.Revoke(null, admin.Name, "keyCompromise");
        }
Exemplo n.º 2
0
        public void TestRevoke2NullEnrollment()
        {
            HFCAClient client = HFCAClient.Create("client", "http://localhost:99", null);

            client.CryptoSuite = crypto;
            client.Revoke(admin, (string)null, "keyCompromise");
        }
Exemplo n.º 3
0
        public void TestRevoke1NullUser()
        {
            HFCAClient client = HFCAClient.Create("client", "http://localhost:99", null);

            client.CryptoSuite = crypto;
            KeyPair     keypair    = crypto.KeyGen();
            IEnrollment enrollment = new X509Enrollment(keypair, "abc");

            client.Revoke(null, enrollment, "keyCompromise");
        }