|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.SecurePlay.SPMessageClass
This is a "game-level" message that is sent between SecurePlay library instances for each Player.
![]() |
![]() |
| Constructor Summary | |
SPMessageClass(java.lang.String INgameID,
java.lang.String INtransactionID,
java.lang.String INsenderID,
java.lang.String[] INreceiverIDlist,
java.lang.String INmessType,
boolean INsignedflag,
SPUEPrivatePolicy INprivateflag,
boolean INencryptedflag,
java.lang.String[] INmessagebody,
byte[] INsignature,
java.lang.String INmessID,
SPGameInterface game)
Constructs an overloaded SPMessageClass() |
|
| Method Summary | |
boolean |
decrypt(SPGameInterface game)
This method safely decrypts the message string and loads the results into the message body array using the global SPdecrypt function. |
boolean |
encrypt(SPGameInterface game)
This method safely encrypts the message body string using the global SPencrypt function. |
byte[] |
getBSignature()
Gets the signature of the message. |
boolean |
getEncryptedFlag()
Gets the enrypted flag of the message. |
java.lang.String |
getGameID()
Gets the id of the game associated with the message. |
java.lang.String[] |
getMessageBody()
Gets the message body. |
java.lang.String |
getMessageID()
Gets the message id. |
java.lang.String |
getMessageType()
Gets the message type. |
SPUEPrivatePolicy |
getPrivateflag()
Gets the private policy of the message. |
java.lang.String[] |
getReceiverIDlist()
Gets the reciever id list of the message. |
java.lang.String |
getSenderID()
Gets the senderID property of the class. |
java.lang.String |
getSignature()
Gets the signature of the message. |
boolean |
getSignedFlag()
Gets the signed flag of the message. |
java.lang.String |
getTransactionID()
Gets the id of the transaction associated with the message. |
java.lang.String |
validateMessageLoad()
This method validates a SPMessageClass instance to check that it is well-formed - that all of the parameters are set from a SPMessageClass perspective. |
boolean |
verifyMessageSignature(SPGameInterface game)
This method verifies the signature associated with a message. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SPMessageClass(java.lang.String INgameID,
java.lang.String INtransactionID,
java.lang.String INsenderID,
java.lang.String[] INreceiverIDlist,
java.lang.String INmessType,
boolean INsignedflag,
SPUEPrivatePolicy INprivateflag,
boolean INencryptedflag,
java.lang.String[] INmessagebody,
byte[] INsignature,
java.lang.String INmessID,
SPGameInterface game)
INgameID - String - this is the ID for the game that this message is associated withINtransactionID - - this is the ID of the transaction that this message is associated withINsenderID - String - this is the identity of the sender of the messageINreceiverIDlist - String[] - ids of the recieversINmessType - String - this is the Message Type of the message (typically one of the basic game transaction methods)INsignedflag - boolean - a flag to determine if the message has been digitally signedINprivateflag - SPUtilPrivatePolicy -INencryptedflag - boolean - This flag describes whether the message is a private message denoted by "P", or public denoted by "A" or an alternate message sent to the other game recipients not part of the private transaction denoted by "Q".INmessagebody - String[] - the messageINsignature - String - The signature is the either the hash of the "prhashableMessage()" portions of the message or a digital signature function applied to the message hash.INmessID - String - The message ID is a unique message identifer at the game instance level.game - SPGameInterface - the game associated with this message.| Method Detail |
public java.lang.String validateMessageLoad()
public boolean verifyMessageSignature(SPGameInterface game)
public java.lang.String getGameID()
public java.lang.String getTransactionID()
public java.lang.String getSenderID()
public java.lang.String getMessageType()
public boolean getSignedFlag()
public boolean getEncryptedFlag()
public SPUEPrivatePolicy getPrivateflag()
SPUEPrivatePolicypublic java.lang.String getMessageID()
public java.lang.String getSignature()
public byte[] getBSignature()
public java.lang.String[] getReceiverIDlist()
public java.lang.String[] getMessageBody()
public boolean encrypt(SPGameInterface game)
public boolean decrypt(SPGameInterface game)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||