# keystore attribute

Type: | url
Inherited: | no
Used By: | input
See: | alias handler keypassword keystoretype location password reason signer

This attribute sets the URL of the keystore containing the private key for digital signatures. It is only used with the input type="signature" element, and is mandatory.

This shows how to digitally sign a document

    <input type="signature"
           handler="verisign"               // handler used to verify this signature
           keystore="file:/privatekey.jks"  // URL of the keystore
           keystoretype="JKS-SUN"           // type of keystore
           password="storepassword"         // password to unlock the keystore
           alias="secretkey"                // key from the keystore to use
           keypassword="secretkeypassword"  // password to unlock the key, if required
           signer="John Smith"              // name to place on the signature
           reason="I am the author"         // reason you're signing the document
    />