setKeyStorePassword
void session.setKeyStorePassword ( String password ) (professional and enterprise editions only)
Description
Sets the password for the keystore file. Some web sites require a special type of authentication that requires the use of a keystore file. See our blog entry on Using Client Certificates for more detail. Calling this method is the equivalent of setting the corresponding value under the "Advanced" tab for the scraping session in the workbench.
Parameters
- filePath The password for the keystore file.
Return Values
None
Change Log
Version | Description |
---|---|
5.5.10a | Available in all editions. |
Examples
Set the path to the keystore file
// Set the password.
session.setKeyStorePassword( "My_password" );
// Output the current password.
session.log( "Keystore password is: " + session.getKeyStorePassword() );
session.setKeyStorePassword( "My_password" );
// Output the current password.
session.log( "Keystore password is: " + session.getKeyStorePassword() );
todd on 03/08/2012 at 12:46 pm
- Printer-friendly version
- Login or register to post comments