SecurePlayLibray J2SE
v2.1

com.SecurePlay
Interface SPSecurityManagerInterface

All Known Implementing Classes:
SPSSecurityManager_BasicJavaSecClass, SPSSecurityManager_SecLiteClass

public interface SPSecurityManagerInterface

This is the interface for the security manager class.

Author:
IT GlobalSecure
See Also:
SecurePlay License Information
 

Method Summary
 boolean onIncomingTransaction(SPMessageClass messobj)
           
 byte[] SPcreateBHash(java.lang.String input, java.lang.String gameid)
          This is a wrapper function for creating a hash of a string.
 byte[] SPcreateBSignature(java.lang.String senderID, byte[] input, java.lang.String gameid)
          This is a wrapper function for creating a digital signature based on an existing hashed string and a Sender ID.
 java.lang.String SPcreateHash(java.lang.String input, java.lang.String gameid)
          This is a wrapper function for creating a hash of a string.
 java.lang.String SPcreateSignature(java.lang.String senderID, java.lang.String input, java.lang.String gameid)
          This is a wrapper function for creating a digital signature based on an existing hashed string and a Sender ID.
 java.lang.String[] SPdecrypt(java.lang.String[] input, java.lang.String senderID, java.lang.String[] recvrs, java.lang.String gameID, java.lang.String messageID)
          This is a placeholder for an decryption function.
 java.lang.String[] SPencrypt(java.lang.String[] input, java.lang.String senderID, java.lang.String[] recvrs, java.lang.String gameID, java.lang.String messageID)
          This is a placeholder for an encryption function.
 boolean SPsetGame(SPGameInterface game, java.lang.String gameID)
          This method sets the game object associated with the Security Manager.
 boolean SPverifySignature(byte[] sigToVerify, java.lang.String senderID, byte[] testhash, java.lang.String gameid)
          This is a wrapper for a digital signature verification function.
 boolean SPverifySignature(java.lang.String signature, java.lang.String senderID, java.lang.String testhash, java.lang.String gameid)
          This is a wrapper for a digital signature verification function.
 

Method Detail

onIncomingTransaction

public boolean onIncomingTransaction(SPMessageClass messobj)

SPcreateBHash

public byte[] SPcreateBHash(java.lang.String input,
                            java.lang.String gameid)
This is a wrapper function for creating a hash of a string. This reference implementation includes a MD5 hash.

Parameters:
input - String
Returns:
str - String - Hash of input

SPcreateBSignature

public byte[] SPcreateBSignature(java.lang.String senderID,
                                 byte[] input,
                                 java.lang.String gameid)
This is a wrapper function for creating a digital signature based on an existing hashed string and a Sender ID. The reference implementation currently uses an MD5 function to approximate performance of a real signature. The included signature function is a sample function - REPLACE with a function that meets your specific security requirements.

Parameters:
senderID - String
input - byte[]
gameid - String
Returns:
realSig - byte[] - digital signature of hashstring signed by senderID.

SPcreateHash

public java.lang.String SPcreateHash(java.lang.String input,
                                     java.lang.String gameid)
This is a wrapper function for creating a hash of a string. This reference implementation includes a MD5 hash.

Parameters:
input - String
Returns:
str - String - Hash of input

SPcreateSignature

public java.lang.String SPcreateSignature(java.lang.String senderID,
                                          java.lang.String input,
                                          java.lang.String gameid)
This is a wrapper function for creating a digital signature based on an existing hashed string and a Sender ID. The reference implementation currently uses an MD5 function to approximate performance of a real signature. The included signature function is a sample function - REPLACE with a function that meets your specific security requirements.

Parameters:
senderID - String
input - String
gameid - String
Returns:
str - String - digital signature of hashstring signed by senderID.

SPdecrypt

public java.lang.String[] SPdecrypt(java.lang.String[] input,
                                    java.lang.String senderID,
                                    java.lang.String[] recvrs,
                                    java.lang.String gameID,
                                    java.lang.String messageID)
This is a placeholder for an decryption function. An actual encryption function is the responsibility of the game implementer.

Parameters:
input - String[] - input message body to be decrypted
senderID - String - sender id
recvrs - String[] - receiver id list
gameID - String - game id
messageID - String - message id
Returns:
mess - String[] - String array of decrypted messagebody.

SPencrypt

public java.lang.String[] SPencrypt(java.lang.String[] input,
                                    java.lang.String senderID,
                                    java.lang.String[] recvrs,
                                    java.lang.String gameID,
                                    java.lang.String messageID)
This is a placeholder for an encryption function. An actual encryption function is the responsibility of the game implementer.

Parameters:
input - String[] - message body to be encrypted
senderID - String - sender id
recvrs - String[] - receiver id list
gameID - String - game id
messageID - String - message id
Returns:
mess - String[] - Encrypted message body

SPverifySignature

public boolean SPverifySignature(byte[] sigToVerify,
                                 java.lang.String senderID,
                                 byte[] testhash,
                                 java.lang.String gameid)
This is a wrapper for a digital signature verification function. CAREFUL CHOICE OF ACTUAL DIGITAL SIGNATURES AND VERIFICATION IS CRITICAL. SELECTION OF APPROPRIATE FUNCTIONS AND IMPLEMENTATION MAY HAVE A SUBSTANTIAL IMPACT ON THE SECURITY AND PERFORMANCE OF A GAME IMPLEMENTATION.

Parameters:
sigToVerify - byte[]
senderID - String
testhash - String
Returns:
true - Boolean - TRUE, if verification Successful, FALSE, if not.

SPverifySignature

public boolean SPverifySignature(java.lang.String signature,
                                 java.lang.String senderID,
                                 java.lang.String testhash,
                                 java.lang.String gameid)
This is a wrapper for a digital signature verification function. CAREFUL CHOICE OF ACTUAL DIGITAL SIGNATURES AND VERIFICATION IS CRITICAL. SELECTION OF APPROPRIATE FUNCTIONS AND IMPLEMENTATION MAY HAVE A SUBSTANTIAL IMPACT ON THE SECURITY AND PERFORMANCE OF A GAME IMPLEMENTATION.

Parameters:
signature - String
senderID - String
testhash - String
Returns:
true - Boolean - TRUE, if verification Successful, FALSE, if not.

SPsetGame

public boolean SPsetGame(SPGameInterface game,
                         java.lang.String gameID)
This method sets the game object associated with the Security Manager. Note, it may be possible in certain implementations to associate multiple games with one security manager.

Parameters:
game -
gameID -
Returns:
boolean

SecurePlayLibray J2SE
v2.1

2006 Copyright Filed by IT GlobalSecure, Inc. All Rights Reserved. Not to be used without authorization by Author. SecurePlay, IT GlobalSecure, and IT Armor are registered trademarks by IT GlobalSecure, Inc. Software protected by software license, and one or more the following U.S. and International patent numbers: U.S. Patent 6,030,288, U.S. Patent 6,165,072, European Patent Office EP1016049A1,and World Intellectual Property Organization WO9912135C1 and additional filings worldwide.