directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erodrig...@apache.org
Subject svn commit: r581325 - in /directory/sandbox/erodriguez/kerberos-pkinit/src/test/java/org/apache/directory/server/kerberos/pkinit: PkinitRequestTest.java PkinitResponseTest.java
Date Tue, 02 Oct 2007 18:02:13 GMT
Author: erodriguez
Date: Tue Oct  2 11:02:11 2007
New Revision: 581325

URL: http://svn.apache.org/viewvc?rev=581325&view=rev
Log:
Added skeleton TestCase's to start testing permutations of possible PKINIT requests and responses.

Added:
    directory/sandbox/erodriguez/kerberos-pkinit/src/test/java/org/apache/directory/server/kerberos/pkinit/PkinitRequestTest.java
  (with props)
    directory/sandbox/erodriguez/kerberos-pkinit/src/test/java/org/apache/directory/server/kerberos/pkinit/PkinitResponseTest.java
  (with props)

Added: directory/sandbox/erodriguez/kerberos-pkinit/src/test/java/org/apache/directory/server/kerberos/pkinit/PkinitRequestTest.java
URL: http://svn.apache.org/viewvc/directory/sandbox/erodriguez/kerberos-pkinit/src/test/java/org/apache/directory/server/kerberos/pkinit/PkinitRequestTest.java?rev=581325&view=auto
==============================================================================
--- directory/sandbox/erodriguez/kerberos-pkinit/src/test/java/org/apache/directory/server/kerberos/pkinit/PkinitRequestTest.java
(added)
+++ directory/sandbox/erodriguez/kerberos-pkinit/src/test/java/org/apache/directory/server/kerberos/pkinit/PkinitRequestTest.java
Tue Oct  2 11:02:11 2007
@@ -0,0 +1,59 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *  
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *  
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License. 
+ *  
+ */
+package org.apache.directory.server.kerberos.pkinit;
+
+
+import junit.framework.TestCase;
+
+
+/**
+ * Tests the 3 main PKINIT request types.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
+public class PkinitRequestTest extends TestCase
+{
+    /**
+     * Tests request with a signed PkAuthenticator, using the Public Key mechanism.
+     */
+    public void testPublicKeyMechanism()
+    {
+        // TODO - Make request with no clientSubjectPublicKeyInfo nor clientDhNonce.
+    }
+
+
+    /**
+     * Tests request with a signed PkAuthenticator, using the Diffie-Hellman mechanism.
+     */
+    public void testDiffieHellmanMechanism()
+    {
+        // TODO - Make request with clientSubjectPublicKeyInfo, but no clientDhNonce.
+    }
+
+
+    /**
+     * Tests request with a signedPkAuthenticator, using the Diffie-Hellman mechanism and
sending a client nonce.
+     */
+    public void testDiffieHellmanWithNonce()
+    {
+        // TODO - Make request with clientSubjectPublicKeyInfo and with a clientDhNonce.
+    }
+}

Propchange: directory/sandbox/erodriguez/kerberos-pkinit/src/test/java/org/apache/directory/server/kerberos/pkinit/PkinitRequestTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: directory/sandbox/erodriguez/kerberos-pkinit/src/test/java/org/apache/directory/server/kerberos/pkinit/PkinitResponseTest.java
URL: http://svn.apache.org/viewvc/directory/sandbox/erodriguez/kerberos-pkinit/src/test/java/org/apache/directory/server/kerberos/pkinit/PkinitResponseTest.java?rev=581325&view=auto
==============================================================================
--- directory/sandbox/erodriguez/kerberos-pkinit/src/test/java/org/apache/directory/server/kerberos/pkinit/PkinitResponseTest.java
(added)
+++ directory/sandbox/erodriguez/kerberos-pkinit/src/test/java/org/apache/directory/server/kerberos/pkinit/PkinitResponseTest.java
Tue Oct  2 11:02:11 2007
@@ -0,0 +1,65 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *  
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *  
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License. 
+ *  
+ */
+package org.apache.directory.server.kerberos.pkinit;
+
+
+import junit.framework.TestCase;
+
+
+/**
+ * Tests the 3 main PKINIT response types.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
+public class PkinitResponseTest extends TestCase
+{
+    /**
+     * Tests the response from using the Public Key mechanism.
+     */
+    public void testPublicKeyMechanism()
+    {
+        // TODO - Expect EnvelopedData.
+        // TODO - Assert no serverSubjectPublicKeyInfo.
+        // TODO - Assert no serverDhNonce.
+    }
+
+
+    /**
+     * Tests the response from using the Diffie-Hellman mechanism.
+     */
+    public void testDiffieHellmanMechanism()
+    {
+        // TODO - Expect serverSubjectPublicKeyInfo.
+        // TODO - Assert no serverDhNonce.
+        // TODO - Assert no EnvelopedData.
+    }
+
+
+    /**
+     * Tests the response from using the Diffie-Hellman mechanism and sending a client nonce.
+     */
+    public void testDiffieHellmanWithNonce()
+    {
+        // TODO - Expect serverSubjectPublicKeyInfo.
+        // TODO - Expect serverDhNonce.
+        // TODO - Assert no EnvelopedData.
+    }
+}

Propchange: directory/sandbox/erodriguez/kerberos-pkinit/src/test/java/org/apache/directory/server/kerberos/pkinit/PkinitResponseTest.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message