Click or drag to resize

SecurityHandlerAuthorize Method

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.

Namespace:  pdftron.SDF
Assembly:  pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax
public bool Authorize(
	SecurityHandlerPermission p
)

Parameters

p
Type: pdftron.SDFSecurityHandlerPermission
permission to authorize

Return Value

Type: Boolean

[Missing <returns> documentation for "M:pdftron.SDF.SecurityHandler.Authorize(pdftron.SDF.SecurityHandlerPermission)"]

Remarks
This callback must not obtain the authorization data
Examples
by displaying a user interface into which a user can type a password). This is handled by the security handler’s GetAuthorizationData(), which must be called before this callback. Instead, Authorize() should work with authorization data it has access to.
See Also