org.bouncycastle.crypto.agreement.jpake
Class JPAKERound1Payload
java.lang.Object
org.bouncycastle.crypto.agreement.jpake.JPAKERound1Payload
- All Implemented Interfaces:
- java.io.Serializable
public class JPAKERound1Payload
- extends java.lang.Object
- implements java.io.Serializable
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 other JPAKEParticipant
.
The payload to send should be created via
JPAKEParticipant.createRound1PayloadToSend()
.
Each JPAKEParticipant
must also validate the payload
received from the other JPAKEParticipant
.
The received payload should be validated via
JPAKEParticipant.validateRound1PayloadReceived(JPAKERound1Payload)
.
This class is Serializable
, so you can send it via Java serialization.
However, no specific mechanism for sending this payload to the other participant
is required. It is perfectly safe to decompose the fields of this payload,
send those fields to the other participant in any format,
and reconstruct the payload on the other side using
JPAKERound1Payload(String, BigInteger, BigInteger, BigInteger[], BigInteger[])
.
- See Also:
- Serialized Form
Constructor Summary |
JPAKERound1Payload(java.lang.String participantId,
java.math.BigInteger gx1,
java.math.BigInteger gx2,
java.math.BigInteger[] knowledgeProofForX1,
java.math.BigInteger[] knowledgeProofForX2)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JPAKERound1Payload
public JPAKERound1Payload(java.lang.String participantId,
java.math.BigInteger gx1,
java.math.BigInteger gx2,
java.math.BigInteger[] knowledgeProofForX1,
java.math.BigInteger[] knowledgeProofForX2)
getParticipantId
public java.lang.String getParticipantId()
getGx1
public java.math.BigInteger getGx1()
getGx2
public java.math.BigInteger getGx2()
getKnowledgeProofForX1
public java.math.BigInteger[] getKnowledgeProofForX1()
getKnowledgeProofForX2
public java.math.BigInteger[] getKnowledgeProofForX2()