SecurityHandler Methods |
The SecurityHandler type exposes the following members.
Name | Description | |
---|---|---|
Authorize | The method is called when a user tries to set security for an encrypted document and when a user tries to open a file. It must decide, based on the contents of the authorization data structure, whether or not the user is permitted to open the file, and what permissions the user has for this file. | |
AuthorizeFailed | A callback method indicating repeated failed authorization. Override this callback in order to provide a UI feedback for failed authorization. Default implementation returns immediately. | |
ChangeMasterPassword(Byte) |
Changes the master/owner password.
| |
ChangeMasterPassword(String) | Changes master password
| |
ChangeRevisionNumber | Changes revision number
| |
ChangeUserPassword(Byte) |
Changes the user password.
| |
ChangeUserPassword(String) | Changes user password
| |
Close | ||
EditSecurityData | Called when the security handler should activate a dialog box with the current security settings that may be modified. | |
Equals | (Inherited from Object.) | |
FillEncryptDict | Fills the document's Encryption dictionary with whatever information the security handler wants to store in the document.
The sequence of events during creation of the encrypt_dict is as follows:
| |
GetAuthorizationData | This method is invoked in case Authorize() failed.The callback must determine the user’s authorization properties for the document by obtaining authorization data(e.g. a password through a GUI dialog).The authorization data is subsequently used by the security handler’s Authorize() to determine whether or not the user is authorized to open the file. | |
GetEncryptionAlgorithmID | Gets the encryption algorithm id.
| |
GetHandlerDocName | Gets the handler doc name.
| |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetKeyLength | Gets the key length.
| |
GetMasterPassword | Gets master password
| |
GetPermission | Gets permission | |
GetRevisionNumber | Gets revision number
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetUserPassword | Gets user password
| |
Initialize | Occurs when authorization fails
| |
InitPassword(Byte) |
Initializes the password.
| |
InitPassword(String) | Clones instance of SecurityHandler.
| |
IsAES | Checks if AES encryption algorithm is used
| |
IsAES(Obj) | The following function can be used to verify whether a given stream is
encrypted using AES.
| |
IsMasterPasswordRequired | Checks if master password required
| |
IsModified | If the user changes SecurityHandler's settings(e.g. by changing a password), IsModified() should return true. | |
IsRC4 | Checks if RC4 encryption algorithm is used
| |
IsUserPasswordRequired | Checks if user password required
| |
SetEncryptMetadata | Sets whether to encrypt metadata
| |
SetModified | The method allows derived classes to set SecurityHandler is modified flag. This method should be called whenever there are changes(e.g. a password change) to the SecurityHandler | |
SetModified(Boolean) | The method allows derived classes to set SecurityHandler is modified flag. This method should be called whenever there are changes(e.g. a password change) to the SecurityHandler | |
SetPermission | Set the permission setting of the StdSecurityHandler.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |