def authenticate(self, password):
if self.isClosed:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>val = _fitz.Document_authenticate(self, password)<EOL>if val: <EOL><INDENT>self.isEncrypted = <NUM_LIT:0><EOL>self.initData()<EOL>self.thisown = True<EOL><DEDENT>return val<EOL>
Decrypt document with a password.