|
SecurePlayLibray J2SE v2.1 |
|||||||||
| 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.
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| Field Summary | |
private boolean |
encryptedflag
The "encryptedflag" determines whether the message has been encrypted so that it can be handled appropriately. |
private java.lang.String |
gameID
The gameID is a unique ID associated with the game. |
(package private) static long |
lasttimestamp
|
private java.lang.String[] |
message
This string array holds the message body. |
private java.lang.String |
messageID
The message ID is a unique message identifer at the game instance level. |
private java.lang.String |
messType
This is the most important element of a message - it tells the receiving SecurePlay library instance where to hand the message off to for further processing. |
private SPUEPrivatePolicy |
privateflag
This flag describes whether the message is a private message (i.e., that it will be routed only to a specific set of recipients) denoted by "P", or public (that is will be routed to all players) denoted by "A" or an alternate message sent to the other game recipients not part of the private transaction denoted by "Q". |
private java.lang.String[] |
receivers
This is the list of receivers of a message. |
(package private) java.lang.String |
releaseversion
IT GlobalSecure release version. |
private java.lang.String |
senderID
The senderID is the unique identifier of the sender Player (instance of SPPlayerClass) of a game message. |
private byte[] |
signature
The signature is the either the hash of the "prhashableMessage()" portions of the message or a digital signature function applied to the message hash. |
private boolean |
signedflag
This provides a flag to determine if the message has been digitally signed. |
private java.lang.String |
transactionID
This is the unique identifier of the transaction associated with the message. |
| Constructor Summary | |
SPMessageClass()
Default Constructor. |
|
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,
SPSecurityManagerInterface game)
Constructs an overloaded SPMessageClass |
|
| Method Summary | |
private void |
buildmessage(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,
SPSecurityManagerInterface secman)
|
boolean |
decrypt(SPSecurityManagerInterface secman)
This method safely decrypts the message string and loads the results into the message body array using the global SPdecrypt function. |
boolean |
encrypt(SPSecurityManagerInterface secman)
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. |
long |
getMessageIDcount()
This method returns the count value from 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. |
static java.lang.String |
newMessageID(java.lang.String gameID,
java.lang.String transactionID,
java.lang.String senderID)
This method generates a messageID for messages that need an ID generated. |
private java.lang.String |
prhashableMessage()
Creates a string to be used by the hash function. |
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(SPSecurityManagerInterface secman)
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 |
| Field Detail |
private java.lang.String gameID
private java.lang.String transactionID
private java.lang.String senderID
private java.lang.String[] receivers
private java.lang.String messType
private boolean signedflag
private boolean encryptedflag
private SPUEPrivatePolicy privateflag
private java.lang.String[] message
private byte[] signature
private java.lang.String messageID
final java.lang.String releaseversion
static long lasttimestamp
| Constructor Detail |
public SPMessageClass()
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,
SPSecurityManagerInterface 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 - SPSecurityManagerInterface - the security manager associated with this message.| Method Detail |
private void buildmessage(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,
SPSecurityManagerInterface secman)
public static java.lang.String newMessageID(java.lang.String gameID,
java.lang.String transactionID,
java.lang.String senderID)
gameID - transactionID - senderID -
public long getMessageIDcount()
public java.lang.String validateMessageLoad()
public boolean verifyMessageSignature(SPSecurityManagerInterface secman)
private java.lang.String prhashableMessage()
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(SPSecurityManagerInterface secman)
public boolean decrypt(SPSecurityManagerInterface secman)
|
SecurePlayLibray J2SE v2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||