Start of Tutorial > Start of Trail > Start of Lesson |
Search
Feedback Form |
The steps Terry would take, after creating a game (
TerrysGame
) that calls theHighScore
getHighScore
andsetHighScore
methods to get and set, respectively, the user's high scores, are:
javac TerrysGame.java -classpath hs.jar -d .
jar cvf terry.jar com/gamedev/games/TerrysGame.class
keytool -genkey -keystore terry.keystore -alias signTJars
Specify whatever you want for the passwords and distinguished name information.
jarsigner -keystore terry.keystore terry.jar signTJars
keytool -export -keystore terry.keystore -alias signTJars -file Terry.cer
That is, supply themGame users also need files and information from Chris. For their convenience, Terry may forward this information to them:
- the signed JAR File
terry.jar,
- the public key certificate file
Terry.cer
, and
- information as to the permissions the
TerrysGame
class needs. For this, Terry could supply the exact grant entry needed.
- the signed JAR File
hs.jar
,
- the public key certificate file
Chris.cer
, and
- information as to the permissions the
HighScore
andHighScorePermission
classes must be granted in a policy file in order to work. This could be the exact grant entry needed.
Start of Tutorial > Start of Trail > Start of Lesson |
Search
Feedback Form |
Copyright 1995-2001 Sun Microsystems, Inc. All rights reserved.