Bouncy Castle Cryptography Library 1.48

org.bouncycastle.crypto.agreement.jpake
Class JPAKERound2Payload

java.lang.Object
  extended by org.bouncycastle.crypto.agreement.jpake.JPAKERound2Payload
All Implemented Interfaces:
java.io.Serializable

public class JPAKERound2Payload
extends java.lang.Object
implements java.io.Serializable

The payload sent/received during the second 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.createRound2PayloadToSend()

Each JPAKEParticipant must also validate the payload received from the other JPAKEParticipant. The received payload should be validated via JPAKEParticipant.validateRound2PayloadReceived(JPAKERound2Payload)

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 JPAKERound2Payload(String, BigInteger, BigInteger[]).

See Also:
Serialized Form

Constructor Summary
JPAKERound2Payload(java.lang.String participantId, java.math.BigInteger a, java.math.BigInteger[] knowledgeProofForX2s)
           
 
Method Summary
 java.math.BigInteger getA()
           
 java.math.BigInteger[] getKnowledgeProofForX2s()
           
 java.lang.String getParticipantId()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JPAKERound2Payload

public JPAKERound2Payload(java.lang.String participantId,
                          java.math.BigInteger a,
                          java.math.BigInteger[] knowledgeProofForX2s)
Method Detail

getParticipantId

public java.lang.String getParticipantId()

getA

public java.math.BigInteger getA()

getKnowledgeProofForX2s

public java.math.BigInteger[] getKnowledgeProofForX2s()

Bouncy Castle Cryptography Library 1.48