Class JPAKEParticipantTest
- java.lang.Object
-
- TestCase
-
- org.bouncycastle.crypto.agreement.test.JPAKEParticipantTest
-
public class JPAKEParticipantTest extends TestCase
-
-
Constructor Summary
Constructors Constructor Description JPAKEParticipantTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidtestConstruction()voidtestIncorrectPassword()voidtestStateValidation()Tests thatJPAKEParticipantthrows appropriateIllegalStateExceptions when the methods are called in the wrong order.voidtestSuccessfulExchange()voidtestValidateRound1PayloadReceived()Tests thatJPAKEParticipant.validateRound1PayloadReceived(JPAKERound1Payload)calls the appropriate validate methods inJPAKEUtil.voidtestValidateRound2PayloadReceived()Tests thatJPAKEParticipant.validateRound2PayloadReceived(JPAKERound2Payload)calls the appropriate validate methods inJPAKEUtil.
-
-
-
Method Detail
-
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 CryptoExceptionTests thatJPAKEParticipantthrows appropriateIllegalStateExceptions when the methods are called in the wrong order.- Throws:
CryptoException
-
testValidateRound1PayloadReceived
public void testValidateRound1PayloadReceived() throws CryptoExceptionTests thatJPAKEParticipant.validateRound1PayloadReceived(JPAKERound1Payload)calls the appropriate validate methods inJPAKEUtil. Note thatJPAKEUtilTesttests the individual validate methods called byJPAKEParticipantmore extensively.- Throws:
CryptoException
-
testValidateRound2PayloadReceived
public void testValidateRound2PayloadReceived() throws CryptoExceptionTests thatJPAKEParticipant.validateRound2PayloadReceived(JPAKERound2Payload)calls the appropriate validate methods inJPAKEUtil. Note thatJPAKEUtilTesttests the individual validate methods called byJPAKEParticipantmore extensively.- Throws:
CryptoException
-
-