Package jadex.platform.service.security
Class HandshakeState
- java.lang.Object
- 
- jadex.platform.service.security.HandshakeState
 
- 
 public class HandshakeState extends java.lang.ObjectClass maintaining the state of a handshake in progress.
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.util.Set<java.lang.String>arrivedmessagesArrived handshake messages to filter duplicates.protected java.lang.StringconversationidConversation ID.protected ICryptoSuitecryptosuiteThe crypto suite once initializedprotected longexpirationtimeTime when the handshake expires.protected Future<ICryptoSuite>resultfutFuture used to wait for the handshake to finish.
 - 
Constructor SummaryConstructors Constructor Description HandshakeState()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetConversationId()Gets the conversation ID.ICryptoSuitegetCryptoSuite()Gets the crypto suite.longgetExpirationTime()Gets the expiration time of the handshake.Future<ICryptoSuite>getResultFuture()Returns the result future.booleanisDuplicate(BasicSecurityMessage msg)Filters for duplicate handshake messages.voidsetConversationId(java.lang.String conversationid)Sets the conversation ID.voidsetCryptoSuite(ICryptoSuite cryptosuite)Sets the crypto suite.voidsetExpirationTime(long expirationtime)Sets the expiration time of the handshake.voidsetResultFuture(Future<ICryptoSuite> resultfut)Sets the result future.
 
- 
- 
- 
Field Detail- 
resultfutprotected Future<ICryptoSuite> resultfut Future used to wait for the handshake to finish.
 - 
conversationidprotected java.lang.String conversationid Conversation ID.
 - 
cryptosuiteprotected ICryptoSuite cryptosuite The crypto suite once initialized
 - 
expirationtimeprotected long expirationtime Time when the handshake expires.
 - 
arrivedmessagesprotected java.util.Set<java.lang.String> arrivedmessages Arrived handshake messages to filter duplicates.
 
- 
 - 
Method Detail- 
setExpirationTimepublic void setExpirationTime(long expirationtime) Sets the expiration time of the handshake.- Parameters:
- expirationtime- The expiration time of the handshake.
 
 - 
getExpirationTimepublic long getExpirationTime() Gets the expiration time of the handshake.- Returns:
- The expiration time of the handshake.
 
 - 
getResultFuturepublic Future<ICryptoSuite> getResultFuture() Returns the result future.- Returns:
- The result future.
 
 - 
setResultFuturepublic void setResultFuture(Future<ICryptoSuite> resultfut) Sets the result future.- Parameters:
- resultfut- The result future.
 
 - 
getConversationIdpublic java.lang.String getConversationId() Gets the conversation ID.- Returns:
- The conversation ID.
 
 - 
setConversationIdpublic void setConversationId(java.lang.String conversationid) Sets the conversation ID.- Parameters:
- conversationid- The conversation ID.
 
 - 
getCryptoSuitepublic ICryptoSuite getCryptoSuite() Gets the crypto suite.- Returns:
- The crypto suite.
 
 - 
setCryptoSuitepublic void setCryptoSuite(ICryptoSuite cryptosuite) Sets the crypto suite.- Parameters:
- cryptosuite- The crypto suite to set.
 
 - 
isDuplicatepublic boolean isDuplicate(BasicSecurityMessage msg) Filters for duplicate handshake messages.- Parameters:
- msg- The message
- Returns:
- True, if message is duplicate.
 
 
- 
 
-