public class NeedPasswordEvent extends DocumentEvent
password is
required to decrypt a document.| Constructor and Description |
|---|
NeedPasswordEvent(IDocument document,
Operation operation) |
| Modifier and Type | Method and Description |
|---|---|
int |
getAttemptCount()
Returns the number of the current attempt to decrypt a document with the
correct password.
|
Operation |
getOperation()
Returns the type of the current document-processing operation that requires
the password.
|
String |
getPassword()
Returns the current password.
|
boolean |
isCallAgainIfUnsuccessful()
Returns whether another password would be requested if the original
password was not correct.
|
boolean |
isForceFullPermission()
Returns whether document user restrictions is set to be ignored.
|
void |
setCallAgainIfUnsuccessful(boolean callAgainIfUnsuccessful)
Specifies whether if another password would be requested if the original
password was not correct.
|
void |
setForceFullPermission(boolean forceFullPermission)
Sets whether document user restrictions should be ignored.
|
void |
setPassword(String password)
Specifies a password that should be used to decrpt a document.
|
getDocumentgetSource, toStringpublic void setPassword(String password)
password - password for decrpting a documentpublic String getPassword()
public Operation getOperation()
public int getAttemptCount()
public boolean isForceFullPermission()
public void setForceFullPermission(boolean forceFullPermission)
forceFullPermission - true if document user restrictions should be ignored; false if
otherwisepublic boolean isCallAgainIfUnsuccessful()
public void setCallAgainIfUnsuccessful(boolean callAgainIfUnsuccessful)
callAgainIfUnsuccessful - true if another password should be requested; false if otherwise