Class JPAKERound1Payload
- java.lang.Object
-
- org.bouncycastle.crypto.agreement.jpake.JPAKERound1Payload
-
public class JPAKERound1Payload extends Object
The payload sent/received during the first round of a J-PAKE exchange.Each
JPAKEParticipant
creates and sends an instance of this payload to the otherJPAKEParticipant
. The payload to send should be created viaJPAKEParticipant.createRound1PayloadToSend()
.Each
JPAKEParticipant
must also validate the payload received from the otherJPAKEParticipant
. The received payload should be validated viaJPAKEParticipant.validateRound1PayloadReceived(JPAKERound1Payload)
.
-
-
Constructor Summary
Constructors Constructor Description JPAKERound1Payload(String participantId, BigInteger gx1, BigInteger gx2, BigInteger[] knowledgeProofForX1, BigInteger[] knowledgeProofForX2)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BigInteger
getGx1()
BigInteger
getGx2()
BigInteger[]
getKnowledgeProofForX1()
BigInteger[]
getKnowledgeProofForX2()
String
getParticipantId()
-
-
-
Constructor Detail
-
JPAKERound1Payload
public JPAKERound1Payload(String participantId, BigInteger gx1, BigInteger gx2, BigInteger[] knowledgeProofForX1, BigInteger[] knowledgeProofForX2)
-
-
Method Detail
-
getParticipantId
public String getParticipantId()
-
getGx1
public BigInteger getGx1()
-
getGx2
public BigInteger getGx2()
-
getKnowledgeProofForX1
public BigInteger[] getKnowledgeProofForX1()
-
getKnowledgeProofForX2
public BigInteger[] getKnowledgeProofForX2()
-
-