org.openuat.authentication.test
Class InterlockProtocolTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.openuat.authentication.test.InterlockProtocolTest
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
InterlockProtocolTest_BCAPI, InterlockProtocolTest_Mixed1, InterlockProtocolTest_Mixed2

public class InterlockProtocolTest
extends junit.framework.TestCase


Field Summary
protected  boolean useJSSE
           
protected  boolean useJSSE2
           
 
Constructor Summary
InterlockProtocolTest(java.lang.String s)
           
 
Method Summary
 void tearDown()
           
 void testAddPart_Exceptions()
           
 void testAddPart()
           
 void testEncryptDecrypt_MultipleBlocks()
           
 void testEncryptDecrypt_SingleBlock()
           
 void testEncryptSplitReassembleDecrypt_MultipleBlocks_1()
           
 void testEncryptSplitReassembleDecrypt_MultipleBlocks_2()
           
 void testExchangeHelper()
           
 void testExchangeHelperInterlockGroupNoTimeout()
           
 void testExchangeHelperInterlockGroupWithTimeout()
           
 void testExchangeHelperMirrorAttackPrevented()
           
 void testExchangeHelperMirrorAttackSuccess()
           
 void testExchangeHelperTimeoutAtGreeting()
           
 void testExchangeHelperTimeoutAtRounds()
           
 void testExtractPart()
           
 void testInterlockForRelateDongleProtocol()
           
 void testParameterCheckConstructor1()
           
 void testParameterCheckConstructor2()
           
 void testParameterCheckConstructor3()
           
 void testParameterCheckConstructor4()
           
 void testParameterCheckDecrypt1()
           
 void testParameterCheckDecrypt2()
           
 void testParameterCheckEncrypt1()
           
 void testParameterCheckEncrypt2()
           
 void testParameterCheckEncrypt3()
           
 void testParameterCheckEncrypt4()
           
 void testSplitAndReassemble_Variant1_Case1()
           
 void testSplitAndReassemble_Variant1_Case2()
           
 void testSplitAndReassemble_Variant2_Case1()
           
 void testSplitAndReassemble_Variant2_Case2()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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

useJSSE

protected boolean useJSSE

useJSSE2

protected boolean useJSSE2
Constructor Detail

InterlockProtocolTest

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

tearDown

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

testAddPart

public void testAddPart()
                 throws InternalApplicationException
Throws:
InternalApplicationException

testAddPart_Exceptions

public void testAddPart_Exceptions()

testExtractPart

public void testExtractPart()
                     throws InternalApplicationException
Throws:
InternalApplicationException

testParameterCheckConstructor1

public void testParameterCheckConstructor1()

testParameterCheckConstructor2

public void testParameterCheckConstructor2()

testParameterCheckConstructor3

public void testParameterCheckConstructor3()

testParameterCheckConstructor4

public void testParameterCheckConstructor4()

testParameterCheckEncrypt1

public void testParameterCheckEncrypt1()

testParameterCheckEncrypt2

public void testParameterCheckEncrypt2()
                                throws InternalApplicationException
Throws:
InternalApplicationException

testParameterCheckEncrypt3

public void testParameterCheckEncrypt3()
                                throws InternalApplicationException
Throws:
InternalApplicationException

testParameterCheckEncrypt4

public void testParameterCheckEncrypt4()
                                throws InternalApplicationException
Throws:
InternalApplicationException

testParameterCheckDecrypt1

public void testParameterCheckDecrypt1()

testParameterCheckDecrypt2

public void testParameterCheckDecrypt2()
                                throws InternalApplicationException
Throws:
InternalApplicationException

testEncryptDecrypt_SingleBlock

public void testEncryptDecrypt_SingleBlock()
                                    throws InternalApplicationException
Throws:
InternalApplicationException

testEncryptDecrypt_MultipleBlocks

public void testEncryptDecrypt_MultipleBlocks()
                                       throws InternalApplicationException
Throws:
InternalApplicationException

testSplitAndReassemble_Variant1_Case1

public void testSplitAndReassemble_Variant1_Case1()
                                           throws InternalApplicationException
Throws:
InternalApplicationException

testSplitAndReassemble_Variant1_Case2

public void testSplitAndReassemble_Variant1_Case2()
                                           throws InternalApplicationException
Throws:
InternalApplicationException

testSplitAndReassemble_Variant2_Case1

public void testSplitAndReassemble_Variant2_Case1()
                                           throws InternalApplicationException
Throws:
InternalApplicationException

testSplitAndReassemble_Variant2_Case2

public void testSplitAndReassemble_Variant2_Case2()
                                           throws InternalApplicationException
Throws:
InternalApplicationException

testEncryptSplitReassembleDecrypt_MultipleBlocks_1

public void testEncryptSplitReassembleDecrypt_MultipleBlocks_1()
                                                        throws InternalApplicationException
Throws:
InternalApplicationException

testEncryptSplitReassembleDecrypt_MultipleBlocks_2

public void testEncryptSplitReassembleDecrypt_MultipleBlocks_2()
                                                        throws InternalApplicationException
Throws:
InternalApplicationException

testExchangeHelper

public void testExchangeHelper()
                        throws java.io.IOException,
                               java.lang.InterruptedException
Throws:
java.io.IOException
java.lang.InterruptedException

testExchangeHelperTimeoutAtGreeting

public void testExchangeHelperTimeoutAtGreeting()
                                         throws InternalApplicationException,
                                                java.io.IOException
Throws:
InternalApplicationException
java.io.IOException

testExchangeHelperTimeoutAtRounds

public void testExchangeHelperTimeoutAtRounds()
                                       throws java.io.IOException,
                                              java.lang.InterruptedException
Throws:
java.io.IOException
java.lang.InterruptedException

testExchangeHelperMirrorAttackSuccess

public void testExchangeHelperMirrorAttackSuccess()
                                           throws java.io.IOException,
                                                  java.lang.InterruptedException
Throws:
java.io.IOException
java.lang.InterruptedException

testExchangeHelperMirrorAttackPrevented

public void testExchangeHelperMirrorAttackPrevented()
                                             throws java.io.IOException,
                                                    java.lang.InterruptedException
Throws:
java.io.IOException
java.lang.InterruptedException

testExchangeHelperInterlockGroupNoTimeout

public void testExchangeHelperInterlockGroupNoTimeout()
                                               throws java.io.IOException,
                                                      java.lang.InterruptedException
Throws:
java.io.IOException
java.lang.InterruptedException

testExchangeHelperInterlockGroupWithTimeout

public void testExchangeHelperInterlockGroupWithTimeout()
                                                 throws java.io.IOException,
                                                        java.lang.InterruptedException
Throws:
java.io.IOException
java.lang.InterruptedException

testInterlockForRelateDongleProtocol

public void testInterlockForRelateDongleProtocol()
                                          throws InternalApplicationException
Throws:
InternalApplicationException


2005-2006, Rene Mayrhofer.