|
NOTA: La traducción de esta documentación es un esfuerzo personal y voluntario, no es un documento oficial de Sun Microsystems
ni Oracle ni está patrocinado por ninguna de estas empresas. Los documentos originales (en inglés) están disponibles en:
http://java.sun.com/docs/books/tutorial/.
Dirija cualquier comentario, petición, felicitación, etc. a tutorialesjava_@RROBA_codexion.com. |
Si desea ayudar a mantener en funcionamiento esta web, colaborar con la traducción de estos documentos o necesita que se traduzca algĂșn capĂtulo en concreto puede realizar una donación directa mediante Paypal:
|
The steps Terry would take, after creating a game (
TerrysGame) that calls theHighScoregetHighScoreandsetHighScoremethods 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
TerrysGameclass 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
HighScoreandHighScorePermissionclasses must be granted in a policy file in order to work. This could be the exact grant entry needed.