org.bouncycastle.crypto.agreement.test
Class JPAKEParticipantTest
java.lang.Object
TestCase
org.bouncycastle.crypto.agreement.test.JPAKEParticipantTest
public class JPAKEParticipantTest
- extends TestCase
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JPAKEParticipantTest
public JPAKEParticipantTest()
testConstruction
public void testConstruction()
throws CryptoException
- Throws:
CryptoException
testSuccessfulExchange
public void testSuccessfulExchange()
throws CryptoException
- Throws:
CryptoException
testIncorrectPassword
public void testIncorrectPassword()
throws CryptoException
- Throws:
CryptoException
testStateValidation
public void testStateValidation()
throws CryptoException
- Tests that
JPAKEParticipant throws appropriate IllegalStateExceptions
when the methods are called in the wrong order.
- Throws:
CryptoException
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.
- Throws:
CryptoException
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.
- Throws:
CryptoException