org.openuat.authentication.test
Class CandidateKeyProtocolTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.openuat.authentication.test.CandidateKeyProtocolTest
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
CandidateKeyProtocolTest_BCAPI, CandidateKeyProtocolTest_Mixed1, CandidateKeyProtocolTest_Mixed2

public class CandidateKeyProtocolTest
extends junit.framework.TestCase


Field Summary
protected  boolean useJSSE1
           
protected  boolean useJSSE2
           
 
Constructor Summary
CandidateKeyProtocolTest(java.lang.String s)
           
 
Method Summary
 void setUp()
           
 void testBug1_2Rounds_generateKey_generateThenMatch_variant1_RoundsWithSameParts_sameMatchOrder()
           
 void testBug1_2Rounds_generateKey_generateThenMatch_variant2_RoundsWithSameParts_sameMatchOrder()
           
 void testBug1_2Rounds_generateKey_interlocked_RoundsWithSameParts()
           
 void testBug1_2Rounds_searchKey_generateThenMatch_variant1_RoundsWithSameParts_differentMatchOrder()
           
 void testBug1_2Rounds_searchKey_generateThenMatch_variant2_RoundsWithSameParts_differentMatchOrder()
           
 void testIndexTupleStringEncoding()
           
 void testMatching_1Round()
           
 void testMatching_2Rounds()
           
 void testMatchingAcknowledgeAndKeyGeneration_Asymmetric_1Round_multipleCandidates()
           
 void testMatchingAcknowledgeAndKeyGeneration_Asymmetric_1Round()
           
 void testMatchingAcknowledgeAndKeyGeneration_Asymmetric_2Rounds_multipleCandidates()
           
 void testMatchingAcknowledgeAndKeyGeneration_Asymmetric_2Rounds_searchKey_variant1_multipleCandidates_historySufficient()
           
 void testMatchingAcknowledgeAndKeyGeneration_Asymmetric_2Rounds_searchKey_variant1_multipleCandidates_historyTooSmall()
           
 void testMatchingAcknowledgeAndKeyGeneration_Asymmetric_2Rounds_searchKey_variant2_multipleCandidates_historySufficient()
           
 void testMatchingAcknowledgeAndKeyGeneration_Asymmetric_2Rounds_searchKey_variant2_multipleCandidates_historyTooSmall()
           
 void testMatchingAcknowledgeAndKeyGeneration_Asymmetric_2Rounds()
           
 void testMatchingAcknowledgeAndKeyGeneration_Asymmetric_3Hosts_1Round()
           
 void testMatchingAndKeyGeneration_1Round_multipleCandidates()
           
 void testMatchingAndKeyGeneration_1Round()
           
 void testMatchingAndKeyGeneration_2Rounds_searchKey_variant1_multipleCandidates_historySufficient()
           
 void testMatchingAndKeyGeneration_2Rounds_searchKey_variant1_multipleCandidates_historyTooSmall()
           
 void testMatchingAndKeyGeneration_2Rounds_searchKey_variant1()
           
 void testMatchingAndKeyGeneration_2Rounds_searchKey_variant2_multipleCandidates_historySufficient()
           
 void testMatchingAndKeyGeneration_2Rounds_searchKey_variant2_multipleCandidates_historyTooSmall()
           
 void testMatchingAndKeyGeneration_2Rounds_searchKey_variant2()
           
 void testMatchingAndKeyGeneration_3Hosts_1Round()
           
 void testSetExploder_FixedErrorCase1()
           
 void testSetExploder()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

useJSSE1

protected boolean useJSSE1

useJSSE2

protected boolean useJSSE2
Constructor Detail

CandidateKeyProtocolTest

public CandidateKeyProtocolTest(java.lang.String s)
Method Detail

setUp

public void setUp()
Overrides:
setUp in class junit.framework.TestCase

testMatching_1Round

public void testMatching_1Round()
                         throws InternalApplicationException
Throws:
InternalApplicationException

testMatching_2Rounds

public void testMatching_2Rounds()
                          throws InternalApplicationException
Throws:
InternalApplicationException

testMatchingAndKeyGeneration_1Round

public void testMatchingAndKeyGeneration_1Round()
                                         throws InternalApplicationException
Throws:
InternalApplicationException

testMatchingAndKeyGeneration_1Round_multipleCandidates

public void testMatchingAndKeyGeneration_1Round_multipleCandidates()
                                                            throws InternalApplicationException
Throws:
InternalApplicationException

testMatchingAndKeyGeneration_2Rounds_searchKey_variant1

public void testMatchingAndKeyGeneration_2Rounds_searchKey_variant1()
                                                             throws InternalApplicationException
Throws:
InternalApplicationException

testMatchingAndKeyGeneration_2Rounds_searchKey_variant2

public void testMatchingAndKeyGeneration_2Rounds_searchKey_variant2()
                                                             throws InternalApplicationException
Throws:
InternalApplicationException

testMatchingAndKeyGeneration_2Rounds_searchKey_variant1_multipleCandidates_historyTooSmall

public void testMatchingAndKeyGeneration_2Rounds_searchKey_variant1_multipleCandidates_historyTooSmall()
                                                                                                throws InternalApplicationException
Throws:
InternalApplicationException

testMatchingAndKeyGeneration_2Rounds_searchKey_variant2_multipleCandidates_historyTooSmall

public void testMatchingAndKeyGeneration_2Rounds_searchKey_variant2_multipleCandidates_historyTooSmall()
                                                                                                throws InternalApplicationException
Throws:
InternalApplicationException

testMatchingAndKeyGeneration_2Rounds_searchKey_variant1_multipleCandidates_historySufficient

public void testMatchingAndKeyGeneration_2Rounds_searchKey_variant1_multipleCandidates_historySufficient()
                                                                                                  throws InternalApplicationException
Throws:
InternalApplicationException

testMatchingAndKeyGeneration_2Rounds_searchKey_variant2_multipleCandidates_historySufficient

public void testMatchingAndKeyGeneration_2Rounds_searchKey_variant2_multipleCandidates_historySufficient()
                                                                                                  throws InternalApplicationException
Throws:
InternalApplicationException

testMatchingAcknowledgeAndKeyGeneration_Asymmetric_1Round

public void testMatchingAcknowledgeAndKeyGeneration_Asymmetric_1Round()
                                                               throws InternalApplicationException
Throws:
InternalApplicationException

testMatchingAcknowledgeAndKeyGeneration_Asymmetric_1Round_multipleCandidates

public void testMatchingAcknowledgeAndKeyGeneration_Asymmetric_1Round_multipleCandidates()
                                                                                  throws InternalApplicationException
Throws:
InternalApplicationException

testMatchingAcknowledgeAndKeyGeneration_Asymmetric_2Rounds

public void testMatchingAcknowledgeAndKeyGeneration_Asymmetric_2Rounds()
                                                                throws InternalApplicationException
Throws:
InternalApplicationException

testMatchingAcknowledgeAndKeyGeneration_Asymmetric_2Rounds_multipleCandidates

public void testMatchingAcknowledgeAndKeyGeneration_Asymmetric_2Rounds_multipleCandidates()
                                                                                   throws InternalApplicationException
Throws:
InternalApplicationException

testMatchingAcknowledgeAndKeyGeneration_Asymmetric_2Rounds_searchKey_variant1_multipleCandidates_historyTooSmall

public void testMatchingAcknowledgeAndKeyGeneration_Asymmetric_2Rounds_searchKey_variant1_multipleCandidates_historyTooSmall()
                                                                                                                      throws InternalApplicationException
Throws:
InternalApplicationException

testMatchingAcknowledgeAndKeyGeneration_Asymmetric_2Rounds_searchKey_variant2_multipleCandidates_historyTooSmall

public void testMatchingAcknowledgeAndKeyGeneration_Asymmetric_2Rounds_searchKey_variant2_multipleCandidates_historyTooSmall()
                                                                                                                      throws InternalApplicationException
Throws:
InternalApplicationException

testMatchingAcknowledgeAndKeyGeneration_Asymmetric_2Rounds_searchKey_variant1_multipleCandidates_historySufficient

public void testMatchingAcknowledgeAndKeyGeneration_Asymmetric_2Rounds_searchKey_variant1_multipleCandidates_historySufficient()
                                                                                                                        throws InternalApplicationException
Throws:
InternalApplicationException

testMatchingAcknowledgeAndKeyGeneration_Asymmetric_2Rounds_searchKey_variant2_multipleCandidates_historySufficient

public void testMatchingAcknowledgeAndKeyGeneration_Asymmetric_2Rounds_searchKey_variant2_multipleCandidates_historySufficient()
                                                                                                                        throws InternalApplicationException
Throws:
InternalApplicationException

testBug1_2Rounds_generateKey_interlocked_RoundsWithSameParts

public void testBug1_2Rounds_generateKey_interlocked_RoundsWithSameParts()
                                                                  throws InternalApplicationException
Throws:
InternalApplicationException

testBug1_2Rounds_generateKey_generateThenMatch_variant1_RoundsWithSameParts_sameMatchOrder

public void testBug1_2Rounds_generateKey_generateThenMatch_variant1_RoundsWithSameParts_sameMatchOrder()
                                                                                                throws InternalApplicationException
Throws:
InternalApplicationException

testBug1_2Rounds_generateKey_generateThenMatch_variant2_RoundsWithSameParts_sameMatchOrder

public void testBug1_2Rounds_generateKey_generateThenMatch_variant2_RoundsWithSameParts_sameMatchOrder()
                                                                                                throws InternalApplicationException
Throws:
InternalApplicationException

testBug1_2Rounds_searchKey_generateThenMatch_variant1_RoundsWithSameParts_differentMatchOrder

public void testBug1_2Rounds_searchKey_generateThenMatch_variant1_RoundsWithSameParts_differentMatchOrder()
                                                                                                   throws InternalApplicationException
Throws:
InternalApplicationException

testBug1_2Rounds_searchKey_generateThenMatch_variant2_RoundsWithSameParts_differentMatchOrder

public void testBug1_2Rounds_searchKey_generateThenMatch_variant2_RoundsWithSameParts_differentMatchOrder()
                                                                                                   throws InternalApplicationException
Throws:
InternalApplicationException

testMatchingAndKeyGeneration_3Hosts_1Round

public void testMatchingAndKeyGeneration_3Hosts_1Round()
                                                throws InternalApplicationException
Throws:
InternalApplicationException

testMatchingAcknowledgeAndKeyGeneration_Asymmetric_3Hosts_1Round

public void testMatchingAcknowledgeAndKeyGeneration_Asymmetric_3Hosts_1Round()
                                                                      throws InternalApplicationException
Throws:
InternalApplicationException

testIndexTupleStringEncoding

public void testIndexTupleStringEncoding()

testSetExploder

public void testSetExploder()
                     throws InternalApplicationException
Throws:
InternalApplicationException

testSetExploder_FixedErrorCase1

public void testSetExploder_FixedErrorCase1()
                                     throws InternalApplicationException
Throws:
InternalApplicationException


2005-2009, Rene Mayrhofer.