Initializes this instance. The attributes parameter must be a
java.util.Mapthat has the required name-value pairs needed for this instance. An instance ofgnu.crypto.key.KeyAgreementExceptionis thrown if an exception occurs during this process.
Processes an incoming message (in) at one end, generating a message (the returned object which may be null) that will be processed by the other party(ies). A
gnu.crypto.key.KeyAgreementExceptionmay be thrown if an exception occurs during this process.
Returns
trueif the party in the key agreement protocol exchange has completed its part of the exchange; andfalseotherwise. If this method returnsfalse, then anjava.lang.IllegalStateExceptionis thrown for any method invocation exceptinit.
Returns the byte array containing the shared secret as generated by this party. A
gnu.crypto.key.KeyAgreementExceptionis thrown if the key agreement is not yet initialised, or is initialised but the exchange is still in progress.