What happens when an applications attempts to access a password-protected file?



When an application attempts to access a password-protected file in a vault, CBFS Storage tries to obtain the password using the following steps:

  1. If the file is accessed via a CBFS Storage API, and any password is provided directly, then that password is used (and the access will fail if it is incorrect). If a password is not provided directly, then the steps below apply.
  2. If the file's password has been cached for one-time use using the CacheFilePassword method, then that password is used.
  3. Otherwise, if the DefaultFilePassword property is set, and contains the correct password for the file in question, then that password is used.
  4. Otherwise, the FilePasswordNeeded event fires, giving your application a chance to supply the correct password dynamically (or not, if you wish to deny the access attempt).
When the CBDrive component has been used to mount a vault as a virtual drive, steps 2-4 also apply anytime a user or third-party application attempts to access a password-protected file via the drive.

We appreciate your feedback. If you have any questions, comments, or suggestions about this article please contact our support team at support@callbacktechnologies.com.