Implementing Your Own Permission |
The steps Chris would take, after creating the
HighScore
andHighScorePermission
classes, are:Compile the Classes
javac HighScore.java HighScorePermission.javaPlace the class files in a JAR File
jar cvf hs.jar HighScore*classCreate a Keystore and Keys for Signing
keytool -genkey -keystore chris.keystore -alias signJarsSpecify whatever you want for the passwords and distinguished name information.Sign the JAR File
jarsigner -keystore chris.keystore hs.jar signJarsExport the Public Key Certificate
keytool -export -keystore chris.keystore -alias signJars -file Chris.cerSupply Files and Information Needed by Game Developers and Users
That is, supply them
- 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. For this, Chris could supply the exact grant entry needed.
Implementing Your Own Permission |