www.developer.com/security/article.php/3587361

Back to Article

Java Applet for Signing with a Smart Card
By Svetlin Nakov
February 24, 2006

Listing 4: TestSmartCardSignerApplet.html

<html> 
 
<head> 
    <title>Test Smart Card Signer Applet</title> 
</head> 
 
<body> 
    <form name="mainForm" method="post" action="FileUploadServlet"> 
        Choose file to upload and sign: 
        <input type="file" name="fileToBeSigned"> 
        <br> 
        Certification chain: 
        <input type="text" name="certificationChain"> 
        <br> 
        Signature: 
        <input type="text" name="signature"> 
    </form> 
 
    <object 
        classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" 
        codebase="http://java.sun.com/update/1.5.0/jinstall-1_5-windows-i586.cab#Version=5,0,0,5" 
        width="130" height="25" name="SmartCardSignerApplet"> 
        <param name="code" value="SmartCardSignerApplet"> 
        <param name="archive" value="SmartCardSignerApplet.jar"> 
        <param name="mayscript" value="true"> 
        <param name="type" value="application/x-java-applet;version=1.5"> 
        <param name="scriptable" value="false"> 
        <param name="fileNameField" value="fileToBeSigned"> 
        <param name="certificationChainField" value="certificationChain"> 
        <param name="signatureField" value="signature"> 
        <param name="signButtonCaption" value="Sign selected file"> 
 
        <comment> 
            <embed 
                type="application/x-java-applet;version=1.5" 
                code="SmartCardSignerApplet" archive="SmartCardSignerApplet.jar" 
                width="130" height="25" scriptable="true" 
                pluginspage="http://java.sun.com/products/plugin/index.html#download" 
                fileNameField="fileToBeSigned" 
                certificationChainField="certificationChain" 
                signatureField="signature" 
                signButtonCaption="Sign selected file"> 
            </embed> 
            <noembed> 
                Smart card signing applet can not be started because 
                Java Plugin 1.5 or newer is not installed. 
            </noembed> 
        </comment> 
    </object> 
</body> 
 
</html>

  Go to page: Prev  1  2  3  4  5  6  7  8  

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers