|
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.SPTSecretClass
This class implements the Secret Transaction type - the ability for a single party, the Transaction Master, to send a single secret to other participants in a non-refutable fashion. The Secret is committed to irrevokably at the time it is initially sent in hidden form and then can be subsequently revealed.
![]() |
![]() |
![]() |
![]() |
| Field Summary | |
private static java.lang.String |
mt_revealSecret
Static message types that this transaction supports. |
private int |
prpadlength
This is a private,constant property. |
private java.lang.String |
secret
This is the secret that is being protected through the Secret transaction. |
private java.lang.String |
secretpadded
This property holds the secret string padded with its random string to protect against dictionary attacks. |
private java.lang.String |
secrettransform
This property is the irreversible transform of the secretpadded string. |
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 |
| 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 | |
SPTSecretClass()
Default Constructor |
|
SPTSecretClass(SPGameInterface gameobj,
java.lang.String master,
java.lang.String[] playerIDList,
boolean privateflag,
java.lang.String transactionID,
java.lang.String AGE,
java.lang.String transform)
Overloaded Constructor |
|
| Method Summary | |
SPAbstractTransactionInterface |
APIcreateTransaction(SPGameInterface gameapiobj,
SPMessageClass message)
Creates a new instance of an SPSecretClass class. |
java.lang.String |
APIgetSecret()
This method returns the actual secret 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,
java.lang.String[] recievers,
boolean listonly)
This method sends the secretpadded value to the specified remote players. |
boolean |
APIverifySecret()
This method verifies the paddedsecret that was sent. |
private java.lang.String |
configureSecretTransaction(java.lang.String newsecret)
This method configures the Secret Transaction |
static SPAbstractTransactionInterface |
createSecret(SPGameInterface gameobj,
java.lang.String master,
java.lang.String[] playerIDList,
boolean privateflag,
java.lang.String AGE,
java.lang.String newsecret)
This method creates a SPSecretClass transaction. |
int |
getPrpadlength()
Getter function that returns the property: prpadlength |
java.lang.String |
getSecretpadded()
Getter function that returns the property: secretpadded |
java.lang.String |
getSecrettransform()
Getter function that returns the property: secrettransform |
static java.lang.String |
gettranstype()
This method gets the transaction type. |
boolean |
onrevealSecret(SPMessageClass incoming)
This method handles the incoming message to reveal a secret. |
boolean |
pronincomingTransaction(SPMessageClass incoming)
This method provides the unique handlers for incoming Secret turn message types |
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, pruniqueinit, 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 java.lang.String secret
private java.lang.String secretpadded
private java.lang.String secrettransform
private static final java.lang.String mt_revealSecret
protected static final java.lang.String status_secretsent
protected static final java.lang.String status_secretrevealed
protected static final java.lang.String status_secretrevealedlist
| Constructor Detail |
public SPTSecretClass()
public SPTSecretClass(SPGameInterface gameobj,
java.lang.String master,
java.lang.String[] playerIDList,
boolean privateflag,
java.lang.String transactionID,
java.lang.String AGE,
java.lang.String transform)
gameobj - SPGameInterface - the game object to which this transaction will be associated withmaster - String - the master of this transactionplayerIDList - String[] - players who will be associated with this transactionprivateflag - boolean - private flag of this transactiontransactionID - String - the id of this transactiontransform - String - transform of secret| Method Detail |
public boolean APIrevealSecret(java.lang.String sender,
java.lang.String[] recievers,
boolean listonly)
sender - String - the sender of the secretrecievers - String[] - player ids of recieverslistonly - boolean - false = for all players involved in the transaction or true = for players listed in this method as recievers
public boolean APIverifySecret()
public java.lang.String APIgetSecret()
public boolean onrevealSecret(SPMessageClass incoming)
incoming - SPMessageClass - incoming message
public boolean pronincomingTransaction(SPMessageClass incoming)
pronincomingTransaction in class SPAbstractTransactionClassincoming - SPMessageClass - incoming message
public int getPrpadlength()
public java.lang.String getSecretpadded()
public java.lang.String getSecrettransform()
public static java.lang.String gettranstype()
public static boolean registerTransaction()
public static SPAbstractTransactionInterface createSecret(SPGameInterface gameobj,
java.lang.String master,
java.lang.String[] playerIDList,
boolean privateflag,
java.lang.String AGE,
java.lang.String newsecret)
gameobj - - SPGameInterface - the game objectmaster - - String - the transaction masterplayerIDList - privateflag - AGE - - String - Abstract Game Enginenewsecret -
private java.lang.String configureSecretTransaction(java.lang.String newsecret)
newsecret -
public SPAbstractTransactionInterface APIcreateTransaction(SPGameInterface gameapiobj,
SPMessageClass message)
APIcreateTransaction in interface SPAbstractTransactionInterfaceAPIcreateTransaction in class SPAbstractTransactionClassgameapiobj - SPGameInterface - associated game objectmessage - 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 | |||||||||