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 void
testConstruction()
void
testIncorrectPassword()
void
testStateValidation()
Tests thatJPAKEParticipant
throws appropriateIllegalStateException
s when the methods are called in the wrong order.void
testSuccessfulExchange()
void
testValidateRound1PayloadReceived()
Tests thatJPAKEParticipant.validateRound1PayloadReceived(JPAKERound1Payload)
calls the appropriate validate methods inJPAKEUtil
.void
testValidateRound2PayloadReceived()
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 CryptoException
Tests thatJPAKEParticipant
throws appropriateIllegalStateException
s when the methods are called in the wrong order.- Throws:
CryptoException
-
testValidateRound1PayloadReceived
public void testValidateRound1PayloadReceived() throws CryptoException
Tests thatJPAKEParticipant.validateRound1PayloadReceived(JPAKERound1Payload)
calls the appropriate validate methods inJPAKEUtil
. Note thatJPAKEUtilTest
tests the individual validate methods called byJPAKEParticipant
more extensively.- Throws:
CryptoException
-
testValidateRound2PayloadReceived
public void testValidateRound2PayloadReceived() throws CryptoException
Tests thatJPAKEParticipant.validateRound2PayloadReceived(JPAKERound2Payload)
calls the appropriate validate methods inJPAKEUtil
. Note thatJPAKEUtilTest
tests the individual validate methods called byJPAKEParticipant
more extensively.- Throws:
CryptoException
-
-