|
For the latest news and information visit The GNU Crypto project |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The visible methods of an key agreement protocol participating party.
Method Summary | |
byte[] |
getSharedSecret()
Returns the byte array containing the shared secret as generated by this party. |
void |
init(java.util.Map attributes)
Sets up the instance to operate with specific attributes. |
boolean |
isComplete()
Returns true if the party in the key agreement protocol
exchange has completed its part of the exchange. |
java.lang.String |
name()
Returns the canonical name of the key agreement protocol. |
OutgoingMessage |
processMessage(IncomingMessage in)
Processes an incoming message at one end, generating a message that will be processed by the other party(ies). |
void |
reset()
Resets this instance for re-use with another set of attributes. |
Method Detail |
public java.lang.String name()
Returns the canonical name of the key agreement protocol.
public void init(java.util.Map attributes) throws KeyAgreementException
Sets up the instance to operate with specific attributes.
attributes
- a map of name-values used by concrete implementations.
KeyAgreementException
- if an exception occurs during the setup.public OutgoingMessage processMessage(IncomingMessage in) throws KeyAgreementException
Processes an incoming message at one end, generating a message that will be processed by the other party(ies).
in
- the incoming message.
null
if this is an
intermediary step that does not cause any output.
KeyAgreementException
- if an exception occurs during the processing
of the incoming message, or during the generation of the outgoing message.public boolean isComplete()
Returns true
if the party in the key agreement protocol
exchange has completed its part of the exchange. If this is the case an
IllegalStateException
is thrown for any method invocation except
init()
or reset()
.
true
if this party has completed its part of the key
agreement protocol exchange; false
otherwise.public byte[] getSharedSecret() throws KeyAgreementException
Returns the byte array containing the shared secret as generated by this party.
KeyAgreementException
- if the key agreement is not yet initialised,
or is initialised but the exchange is still in progress.public void reset()
|
For the latest news and information visit The GNU Crypto project |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |