文档

Java™ 教程-Java Tutorials 中文版
HighScore Developer(Chris)的步骤
Trail: Security Features in Java SE
Lesson: Implementing Your Own Permission
Section: Putting It All Together

HighScore Developer(Chris)的步骤

The steps Chris would take, after creating the HighScore and HighScorePermission classes, are:

Compile the Classes

javac HighScore*.java -d .

Place the class files in a JAR File

jar cvf hs.jar com/scoredev/scores/HighScore*.class

Create a Keystore and Keys for Signing

keytool -genkey -keystore chris.keystore -alias signJars

Specify whatever you want for the passwords and distinguished name information.

签名 JAR 文件

jarsigner -keystore chris.keystore hs.jar signJars

导出公钥证书

keytool -export -keystore chris.keystore
    -alias signJars -file Chris.cer

Supply Files and Information Needed by Game Developers and Users

That is, supply them


Previous page: Putting It All Together
Next page: Steps for the ExampleGame Developer (Terry)