Initializes this instance. The attributes parameter must be a
java.util.Map
that has the required name-value pairs needed for this instance. An instance ofgnu.crypto.key.KeyAgreementException
is 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.KeyAgreementException
may be thrown if an exception occurs during this process.
Returns
true
if the party in the key agreement protocol exchange has completed its part of the exchange; andfalse
otherwise. If this method returnsfalse
, then anjava.lang.IllegalStateException
is thrown for any method invocation exceptinit
.
Returns the byte array containing the shared secret as generated by this party. A
gnu.crypto.key.KeyAgreementException
is thrown if the key agreement is not yet initialised, or is initialised but the exchange is still in progress.