|
SecurePlayLibray J2SE v2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.SecurePlay.SPRootTransactionClass
com.SecurePlay.SPAbstractTransactionClass
com.SecurePlay.SPTSimultaneousClass
The simultaneous transaction allows its participants to send "Simultaneous Secrets" to each other and reveal them at the same time.
![]() |
![]() |
![]() |
![]() |
| Field Summary | |
private java.lang.String[] |
manualplayers
Internal players that want to do manual reveal of secrets |
private static java.lang.String |
mt_revealSecret
Static message types that this transaction supports. |
private static java.lang.String |
mt_sendHiddenSecret
Static message types that this transaction supports. |
private int |
prpadlength
This is a private,constant property. |
private SPMap |
secret
This an associative array of simultaneous secrets that are being protected through the Simultaneous transaction. |
private SPMap |
secretpadded
This property holds the associative array of the Secret strings padded with its random string to protect against dictionary attacks. |
private SPMap |
secrettransform
This property is the associative array of irreversible transforms of the secretpadded strings. |
protected static java.lang.String |
status_allreceived
transaction status ready variable |
protected static java.lang.String |
status_allsent
transaction status ready variable |
protected static java.lang.String |
status_secretrevealed
transaction status complete variable |
protected static java.lang.String |
status_secretrevealedlist
transaction status error variable |
protected static java.lang.String |
status_secretsent
transaction status ready variable |
private boolean |
status_sentinternal
|
| Fields inherited from class com.SecurePlay.SPAbstractTransactionClass |
AGE, configuration, gameinstance, mt_completeTransaction, mt_error, privateflag, releaseversion, status_error, status_ready, transactionstatus, transtype |
| Fields inherited from class com.SecurePlay.SPRootTransactionClass |
comms, EventListenerList, gameID, insend, master, playerIDList, ReSend_altmessage, ReSend_encryptflag, ReSend_messagebody, ReSend_messageID, ReSend_messagetype, ReSend_privateflag, ReSend_receivers, ReSend_sender, secureplay, transactionID |
| Constructor Summary | |
private |
SPTSimultaneousClass()
Default Constructor |
|
SPTSimultaneousClass(SPGameInterface gameobj,
java.lang.String master,
java.lang.String[] playerIDList,
boolean privateflag,
java.lang.String transactionID,
java.lang.String AGE,
java.lang.String[] configarr)
Overloaded Constructor |
| Method Summary | |
SPAbstractTransactionInterface |
APIcreateTransaction(SPGameInterface gameapiobj,
SPMessageClass message)
Creates a new instance of an SPTSimultaneousClass class. |
java.lang.String |
APIgetSecret(java.lang.String sender)
This method returns the actual secret for the specified player that this transaction is protecting, if available. |
java.lang.String |
APIgetTransactionType()
This method returns a String of the transactiontype. |
boolean |
APIrevealSecret(java.lang.String sender)
This method sends the secretpadded value to the specified remote players. |
boolean |
APIsendHiddenSecret(java.lang.String sender,
boolean manflag,
java.lang.String newsecret)
This method allows the specified transaction participant to send the transform of a secret to the other participants in the Simultaneous transaction. |
boolean |
APIverifySimultaneous()
This method verifies whether a Simultaneous transaction was carried out successfully and responds with a simple Boolean. |
static SPAbstractTransactionInterface |
createSimultaneous(SPGameInterface gameobj,
java.lang.String master,
java.lang.String[] playerIDList,
boolean privateflag,
java.lang.String AGE,
java.lang.String[] configarr)
This method creates a SPTSimultaneousClass transaction. |
int |
getPrpadlength()
Getter function that returns the property: prpadlength |
SPMap |
getSecret()
Getter function that returns the property: secret |
SPMap |
getSecretpadded()
Getter function that returns the property: secretpadded |
SPMap |
getSecrettransform()
Getter function that returns the property: secrettransform |
static java.lang.String |
gettranstype()
This method gets the transaction type. |
private boolean |
onrevealSecret(SPMessageClass incoming)
This method handles the incoming message to reveal a secret. |
private boolean |
onsendHiddenSecret(SPMessageClass incoming)
This method handles incoming sendHiddenSecret messages. |
boolean |
pronincomingTransaction(SPMessageClass incoming)
This method provides the unique handlers for incoming Simultaneous turn message types |
private boolean |
prsendinternalSecrets()
This method safely sends all of the internal Secrets from participants in the Simultaneous transaction to remote players. |
void |
pruniqueinit()
Unique initialization ( an addition to the constructor ) |
static boolean |
registerTransaction()
Registers this transaction. |
| Methods inherited from class com.SecurePlay.SPAbstractTransactionClass |
APIcompleteTransaction, APIgetAGE, APIgetConfiguration, APIgetGameinstance, APIgetPrivacyFlag, APIgetTransactionstatus, APIisPlayerInternal, APIisTransError, APIsetTransactionID, logError, onincomingTransaction, prinit, setAGE |
| Methods inherited from class com.SecurePlay.SPRootTransactionClass |
APIaddListener, APIclearListeners, APIgetGameID, APIgetGetReplayList, APIgetListenerCount, APIgetListeners, APIgetMaster, APIgetPlayerIDList, APIgetTransactionID, APIisPlayerIncluded, APIremoveListener, APIReplayRemoveOldSender, APIresendLastMessage, APIsetReplayList, APIsetSecurePlayClass, detectReplay, sendMessage, SPnotify |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.SecurePlay.SPAbstractTransactionInterface |
APIgetGameID, APIgetMaster, APIgetPlayerIDList, APIgetTransactionID, sendMessage |
| Field Detail |
private int prpadlength
private SPMap secret
private SPMap secretpadded
private SPMap secrettransform
private java.lang.String[] manualplayers
private static final java.lang.String mt_sendHiddenSecret
private static final java.lang.String mt_revealSecret
protected static final java.lang.String status_allsent
protected static final java.lang.String status_allreceived
protected static final java.lang.String status_secretsent
protected static final java.lang.String status_secretrevealed
protected static final java.lang.String status_secretrevealedlist
private boolean status_sentinternal
| Constructor Detail |
private SPTSimultaneousClass()
public SPTSimultaneousClass(SPGameInterface gameobj,
java.lang.String master,
java.lang.String[] playerIDList,
boolean privateflag,
java.lang.String transactionID,
java.lang.String AGE,
java.lang.String[] configarr)
gameobj - SPGameInterface - the game object with which the transaction is associatedmaster - String - the master of the transactionplayerIDList - String[] - player id list of players who are associated with the transactionprivateflag - boolean - private flagtransactionID - String - the transaction id| Method Detail |
public void pruniqueinit()
pruniqueinit in class SPAbstractTransactionClass
public boolean APIsendHiddenSecret(java.lang.String sender,
boolean manflag,
java.lang.String newsecret)
sender - String - sender of the secretmanflag - - boolean - manual reveal of secretnewsecret - String - the secret
public boolean APIrevealSecret(java.lang.String sender)
sender - String - the sender of the secret
public boolean APIverifySimultaneous()
public java.lang.String APIgetSecret(java.lang.String sender)
sender - String - sender of the secret
private boolean onsendHiddenSecret(SPMessageClass incoming)
incoming - SPMessageClass - incoming message
private boolean prsendinternalSecrets()
private boolean onrevealSecret(SPMessageClass incoming)
incoming - SPMessageClass - incoming message
public boolean pronincomingTransaction(SPMessageClass incoming)
pronincomingTransaction in class SPAbstractTransactionClassincoming - SPMessageClass - incoming message
public int getPrpadlength()
public SPMap getSecret()
public SPMap getSecretpadded()
public SPMap getSecrettransform()
public static java.lang.String gettranstype()
public static boolean registerTransaction()
public static SPAbstractTransactionInterface createSimultaneous(SPGameInterface gameobj,
java.lang.String master,
java.lang.String[] playerIDList,
boolean privateflag,
java.lang.String AGE,
java.lang.String[] configarr)
gameobj - master - playerIDList - privateflag - AGE - configarr -
public SPAbstractTransactionInterface APIcreateTransaction(SPGameInterface gameapiobj,
SPMessageClass message)
APIcreateTransaction in interface SPAbstractTransactionInterfaceAPIcreateTransaction in class SPAbstractTransactionClassgameapiobj - SPGameInterface - game associated with this transaction.message - SPMessageClass - message that has all the transaction configure info
public java.lang.String APIgetTransactionType()
APIgetTransactionType in interface SPAbstractTransactionInterfaceAPIgetTransactionType in class SPAbstractTransactionClass
|
SecurePlayLibray J2SE v2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||