|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.SecurePlay.SecurePlayClass
This is the main Secure Play Library Class.
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| Constructor Summary | |
SecurePlayClass()
Default Constructor. |
|
| Method Summary | |
boolean |
APIaddGameComms(java.lang.String gid,
java.lang.String commsID)
This method associates a communications service with a game instance. |
boolean |
APIaddGamePlayer(java.lang.String gid,
java.lang.String pid)
This method associates a Player instance with a Game Instance so the player can participate in the game. |
void |
APIclearCommsServices()
This clears all of the comms services associated with the SecurePlay library. |
void |
APIclearGames()
This removes all of the Game Instances associated with the SecurePlay library. |
void |
APIclearPlayers()
This method removes all of the Player Instances associated with the SecurePlay library. |
boolean |
APIcreateComms(java.lang.String commsID,
SPAbstractCommsInterface commsObj)
This method creates a comms service. |
boolean |
APIcreateGame(SPGameInterface game,
java.lang.String gameID,
java.lang.String master,
boolean signaturepolicy,
boolean encryptionpolicy)
Attach an existing Game Instance to the Library with default log and security manager. |
boolean |
APIcreateGame(SPGameInterface game,
java.lang.String gameID,
java.lang.String master,
boolean signaturepolicy,
boolean encryptionpolicy,
SPLogInterface log,
SPSecurityManagerInterface security)
Attach an existing Game Instance to the Library, with specified log and security manager. |
boolean |
APIcreateGame(java.lang.String gameID,
java.lang.String master,
boolean signaturepolicy,
boolean encryptionpolicy)
Creates a new game instance with defaul log and security manager. |
boolean |
APIcreateGame(java.lang.String gameID,
java.lang.String master,
boolean signaturepolicy,
boolean encryptionpolicy,
SPLogInterface log,
SPSecurityManagerInterface security)
Creates a new game instance with specified log and security manager. |
boolean |
APIcreatePlayer(SPPlayerInterface player,
java.lang.String playerID)
Attach an existing player Instance to the Library. |
boolean |
APIcreatePlayer(java.lang.String playerID)
Adds a player instance. |
boolean |
APIcreatePlayer(java.lang.String playerID,
boolean internalflag)
Adds a player instance. |
SPAbstractCommsInterface |
APIgetCommsService(java.lang.String commsID)
This method uses a commsID and returns the appropriate Communications Service Instance. |
SPGameInterface |
APIgetGame(java.lang.String gameID)
This method takes a gameID and returns the associated Game Instance object. |
SPGameAPIInterface |
APIgetGameAPI(java.lang.String gameID)
Gets the API of the the game instance in the game list of this library. |
java.lang.String |
APIgetLicenseSummary()
This method returns the summary of the license. |
java.lang.String[] |
APIgetOpenCommServiceIDs()
This method return |
java.lang.String[] |
APIgetOpenGameIDs()
Gets the keys of an associative array(SPHashtable) this.prgamesList and returns them as a String array of open games id list. |
java.lang.String[] |
APIgetOpenPlayerIDs()
Gets the keys of an associative array(SPHashtable) this.prplayersList and returns them as a String array of open players id list. |
SPPlayerInterface |
APIgetPlayer(java.lang.String playerID)
This method takes a playerID and returns the corresponding Player instance. |
SPRelayInterface |
APIgetRelayManager()
Returns the Library's Relay manager. |
boolean |
APIremoveCommsService(java.lang.String commsID)
This method removes a Comms Service Instance specified by a commsID from the active SecurePlay library. |
boolean |
APIremoveGame(java.lang.String gameID)
This method takes a gameID and removes the Game Instance from the active SecurePlay library. |
boolean |
APIremovePlayer(java.lang.String playerID)
This method removes an instance of a Player from the active SecurePlay library. |
boolean |
APIsetLicenseInfo(java.lang.String pocname,
java.lang.String company,
java.lang.String siteURL,
java.lang.String email,
java.lang.String SPSerialNumber,
java.lang.String SPLicenseKey)
Loads registered SecurePlay licensee information. |
boolean |
APIsetPlayerGameComms(java.lang.String gid,
java.lang.String playerID,
java.lang.String commsID)
This method associates a specific comms service with a specific player and a specific game. |
boolean |
APIsetPlayerGameComms(java.lang.String gid,
java.lang.String playerID,
java.lang.String commsID,
boolean relayflag)
This method associates a specific comms service with a specific player and a specific game. |
boolean |
APIsetRelay(SPRelayInterface relay)
Activate Relay. |
boolean |
APIsetSOSLicenseInfo(java.lang.String pocname,
java.lang.String company,
java.lang.String siteURL,
java.lang.String email)
This method is the courtesy licensee information for Simple Open Source licensees. |
boolean |
checkLicense()
This method is used to verify that the SecurePlay license information is provided completely and properly. |
java.lang.String |
getCompany()
Getter function that returns the property: company |
SPLogInterface |
getDefaultLog()
Returns default Log. |
SPSecurityManagerInterface |
getDefaultSecurityManager()
Returns default Security Manager. |
java.lang.String |
getEmail()
Getter function that returns the property: email |
java.lang.String |
getPocname()
Getter function that returns the property: pocname |
SPMap |
getPrcommsServicesList()
Getter function that returns the property: prcommsServicesList |
SPMap |
getPrgamesList()
Getter function that returns the property: prgamesList |
SPMap |
getPrplayersList()
Getter function that returns the property: prplayersList |
java.lang.String |
getSiteURL()
Getter function that returns the property: siteURL |
java.lang.String |
getSPLicenseKey()
Getter function that returns the property: SPLicenseKey |
java.lang.String |
getSPSerialNumber()
Returns the serial number. |
boolean |
isCommsIncluded(java.lang.String cid)
This method checks to see if the comms object exists in the comms list of this library. |
boolean |
isGameIncluded(java.lang.String gid)
This method checks to see if the game exists in the game list of this library. |
boolean |
isInitialized()
Getter function that returns the property: initialized |
boolean |
isPlayerIncluded(java.lang.String pid)
This method returns a boolean TRUE if there is a player object specified by the indicated Player ID is included in the Library instance. |
boolean |
isRelayActive()
Returns status of relay for this library instance. |
boolean |
setDefaultLog(SPLogInterface log)
This method sets the default log to the specified log. |
boolean |
setDefaultSecurityManager(SPSecurityManagerInterface security)
This method sets the default security manager. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SecurePlayClass()
| Method Detail |
public boolean APIsetSOSLicenseInfo(java.lang.String pocname,
java.lang.String company,
java.lang.String siteURL,
java.lang.String email)
pocname - String - individual who represents the companycompany - String - company name.siteURL - String - company web site.email - String - company email.
public boolean APIsetLicenseInfo(java.lang.String pocname,
java.lang.String company,
java.lang.String siteURL,
java.lang.String email,
java.lang.String SPSerialNumber,
java.lang.String SPLicenseKey)
pocname - String - individual who represents the companycompany - String - company name.siteURL - String - company web site.email - String - company email.SPSerialNumber - String - serial number of the SecurePlay licenseeSPLicenseKey - String - license key for the registered SecurePlay user.
public boolean APIcreateGame(java.lang.String gameID,
java.lang.String master,
boolean signaturepolicy,
boolean encryptionpolicy)
gameID - String - game id of the new game.master - String - the master of the new game.signaturepolicy - boolean - signature policy of the game.encryptionpolicy - boolean - encryption policy of the game.
public boolean APIcreateGame(java.lang.String gameID,
java.lang.String master,
boolean signaturepolicy,
boolean encryptionpolicy,
SPLogInterface log,
SPSecurityManagerInterface security)
gameID - String - game id of the new game.master - String - the master of the new game.signaturepolicy - boolean - signature policy of the game.encryptionpolicy - boolean - encryption policy of the game.log - SPLogInterface - the log class for this game.security - SPSecurityManagerInterface - security manager for this game.
public boolean APIcreatePlayer(java.lang.String playerID,
boolean internalflag)
playerID - String - player id of the player to be createdinternalflag - boolean - internal flag
public boolean APIcreatePlayer(java.lang.String playerID)
playerID - String - player id of the player to be created
public boolean APIcreateComms(java.lang.String commsID,
SPAbstractCommsInterface commsObj)
commsID - String - id of the comms to be createdcommsObj - SPAbstractCommsInterface - comms object to be added
public boolean APIsetPlayerGameComms(java.lang.String gid,
java.lang.String playerID,
java.lang.String commsID)
gid - String - game id to which the players and comms will be setplayerID - String - id of the player to be setcommsID - String - id of th comms to be set
public boolean APIsetPlayerGameComms(java.lang.String gid,
java.lang.String playerID,
java.lang.String commsID,
boolean relayflag)
gid - String - game id to which the players and comms will be setplayerID - String - id of the player to be setcommsID - String - id of th comms to be setrelayflag - boolean - relay flag (NOTE: this will be removed from future releases)
public boolean APIaddGamePlayer(java.lang.String gid,
java.lang.String pid)
gid - String - id of the game to which the player will be addedpid - String - id of the player to be added
public boolean APIaddGameComms(java.lang.String gid,
java.lang.String commsID)
gid - String - id of the game to which the comms will be addedcommsID - String - id of the comms to be added
public SPGameInterface APIgetGame(java.lang.String gameID)
gameID - String - id of the game to be retrieved
public SPPlayerInterface APIgetPlayer(java.lang.String playerID)
playerID - String - id of the player to be retrieved
public SPAbstractCommsInterface APIgetCommsService(java.lang.String commsID)
commsID - String - id of the comms to be retrieved
public boolean APIremoveGame(java.lang.String gameID)
gameID - String - id of the game to be removed
public boolean APIremovePlayer(java.lang.String playerID)
playerID - String - id of the player to be removed
public boolean APIremoveCommsService(java.lang.String commsID)
commsID - String - id of the comms to be removed
public void APIclearGames()
public void APIclearPlayers()
public void APIclearCommsServices()
public boolean checkLicense()
public SPGameAPIInterface APIgetGameAPI(java.lang.String gameID)
gameID - String - id of the gameAPI to be retrieved
public java.lang.String[] APIgetOpenCommServiceIDs()
public java.lang.String[] APIgetOpenGameIDs()
public java.lang.String[] APIgetOpenPlayerIDs()
public boolean isPlayerIncluded(java.lang.String pid)
pid - String - the player id to be checked
public boolean isGameIncluded(java.lang.String gid)
gid - String - the game id to be checked
public boolean isCommsIncluded(java.lang.String cid)
cid - String - the comms id to be checked
public boolean APIcreateGame(SPGameInterface game,
java.lang.String gameID,
java.lang.String master,
boolean signaturepolicy,
boolean encryptionpolicy)
game - SPGameInterface - the game object to be attachedgameID - String - game id of the new game.master - String - the master of the new game.signaturepolicy - boolean - signature policy of the game.encryptionpolicy - boolean - encryption policy of the game.
public boolean APIcreateGame(SPGameInterface game,
java.lang.String gameID,
java.lang.String master,
boolean signaturepolicy,
boolean encryptionpolicy,
SPLogInterface log,
SPSecurityManagerInterface security)
game - SPGameInterface - the game object to be attachedgameID - String - game id of the new game.master - String - the master of the new game.signaturepolicy - boolean - signature policy of the game.encryptionpolicy - boolean - encryption policy of the game.log - SPLogInterface - the log class for this game.security - SPSecurityManagerInterface - security manager for this game.
public boolean APIcreatePlayer(SPPlayerInterface player,
java.lang.String playerID)
player - SPPlayerInterface - the player object to be attachedplayerID - String - the player id
public java.lang.String getCompany()
public java.lang.String getEmail()
public boolean isInitialized()
public java.lang.String getPocname()
public SPMap getPrcommsServicesList()
public SPMap getPrgamesList()
public SPMap getPrplayersList()
public java.lang.String getSiteURL()
public java.lang.String getSPLicenseKey()
public java.lang.String getSPSerialNumber()
public java.lang.String APIgetLicenseSummary()
public SPRelayInterface APIgetRelayManager()
public boolean APIsetRelay(SPRelayInterface relay)
public boolean isRelayActive()
public SPLogInterface getDefaultLog()
public SPSecurityManagerInterface getDefaultSecurityManager()
public boolean setDefaultLog(SPLogInterface log)
log - SPLogInterface - the new default log
public boolean setDefaultSecurityManager(SPSecurityManagerInterface security)
security -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||