Bouncy Castle Cryptography Library 1.66

org.bouncycastle.crypto.agreement.test
Class JPAKEParticipantTest

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--org.bouncycastle.crypto.agreement.test.JPAKEParticipantTest
All Implemented Interfaces:
junit.framework.Test

public class JPAKEParticipantTest
extends junit.framework.TestCase


Constructor Summary
JPAKEParticipantTest()
           
 
Method Summary
 void testConstruction()
           
 void testIncorrectPassword()
           
 void testStateValidation()
          Tests that JPAKEParticipant throws appropriate IllegalStateExceptions when the methods are called in the wrong order.
 void testSuccessfulExchange()
           
 void testValidateRound1PayloadReceived()
          Tests that JPAKEParticipant.validateRound1PayloadReceived(JPAKERound1Payload) calls the appropriate validate methods in JPAKEUtil.
 void testValidateRound2PayloadReceived()
          Tests that JPAKEParticipant.validateRound2PayloadReceived(JPAKERound2Payload) calls the appropriate validate methods in JPAKEUtil.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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
 

Constructor Detail

JPAKEParticipantTest

public JPAKEParticipantTest()
Method Detail

testConstruction

public void testConstruction()
                      throws CryptoException

testSuccessfulExchange

public void testSuccessfulExchange()
                            throws CryptoException

testIncorrectPassword

public void testIncorrectPassword()
                           throws CryptoException

testStateValidation

public void testStateValidation()
                         throws CryptoException
Tests that JPAKEParticipant throws appropriate IllegalStateExceptions when the methods are called in the wrong order.

testValidateRound1PayloadReceived

public void testValidateRound1PayloadReceived()
                                       throws CryptoException
Tests that JPAKEParticipant.validateRound1PayloadReceived(JPAKERound1Payload) calls the appropriate validate methods in JPAKEUtil. Note that JPAKEUtilTest tests the individual validate methods called by JPAKEParticipant more extensively.

testValidateRound2PayloadReceived

public void testValidateRound2PayloadReceived()
                                       throws CryptoException
Tests that JPAKEParticipant.validateRound2PayloadReceived(JPAKERound2Payload) calls the appropriate validate methods in JPAKEUtil. Note that JPAKEUtilTest tests the individual validate methods called by JPAKEParticipant more extensively.

Bouncy Castle Cryptography Library 1.66