![Magtek DYNAMAG Instruction Manual Download Page 24](http://html.mh-extra.com/html/magtek/dynamag/dynamag_instruction-manual_694747024.webp)
2 - How to Set Up the Swipe Reader Control Panel
Dynamag, DynaMAX, eDynamo, mDynamo, tDynamo, DynaWave, and iDynamo 6| Secure Card Reader Authenticators | Programmer’s
Reference (Java and Java Applet)
Page 24
JavaScript code. If a call is made from JavaScript code that is not located in a domain specified by the
Caller-Allowable-Codebase
attribute, the call is blocked. To specify more than one domain,
separate the domains by a space, for example:
Caller-Allowable-Codebase: *.yahoo.com *.google.com *.magtek.com *
The
Application-Library-Allowable-Codebase
attribute identifies the locations where your signed
RIA is expected to be found. This attribute is used to determine what is listed in the Location field for the
security prompt that is shown to users when the JAR file for your RIA is in a different location than the
JNLP file or HTML page that starts your RIA. If the files are not in the locations identified, the RIA is
blocked. Set this attribute to the domains where the JAR file, JNLP file, and HTML page are located. To
specify more than one domain, separate the domains by a space, for example:
Application-Library-Allowable-Codebase: *.yahoo.com *.google.com
*.magtek.com *
For more information regarding the JAR File Manifest Attributes for Security, please visit this website
http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/security/manifest.html
In order to modify the Manifest file, please follow these steps
.
1)
Find installation folder by default, the installation folder is:
\Sample Code\Java Applet\Object\Unsigned
2)
Launch the command prompt and extract the META-INF/MANIFEST.MF from the jar file.
jar xf mtscra.jar META-INF/MANIFEST.MF
3)
Open
MANIFEST.MF
and look for the
Caller-Allowable-Codebase
and
Application-Library-
Allowable-Codebase
and add your website URL to the list like the example above.
4)
Update the manifest to the jar file.
jar umf META-INF/MANIFEST.MF mtscra.jar
2.7
How to Sign JAR
These instructions provide an overview of obtaining and using Sun Java signing and a digital certificate.
1)
Make sure your machine has the latest Java JDK installed.
2)
Generate a public/private key pair by entering the following command, specifying an alias for your
keystore:
keytool -genkey -keyalg rsa -alias MyCert
3)
Generate a certificate signing request (CSR) by entering the following command:
keytool -certreq -alias MyCert
After prompting you to enter the password for your keystore, keytool will generate a CSR
.
4)
Save the certificate received from the Certificate provider as Certname.p7b.
5)
Import your Digital Certificate by entering the following command:
keytool -import -alias MyCert -file Certname.p7b