Show / Hide Table of Contents

# Class PDFTronCustomSecurityHandler

This class represents PDFTron Custom Security handler that applies PDFTron's custom encryption method on save.

##### Inheritance

object
SecurityHandler
StdSecurityHandler
PDFTronCustomSecurityHandler

##### Implements

IDisposable

##### Inherited Members

StdSecurityHandler.GetAuthorizationData(SecurityHandler.Permission)
StdSecurityHandler.AuthorizeFailed()
StdSecurityHandler.EditSecurityData(SDFDoc)
StdSecurityHandler.Clone()
StdSecurityHandler.InitPassword(byte[])
StdSecurityHandler.InitPassword(string)
StdSecurityHandler.Initialize(SDFDoc, Obj, int)
StdSecurityHandler.ChangeUserPassword(byte[])
StdSecurityHandler.ChangeUserPassword(string)
StdSecurityHandler.GetUserPassword()
StdSecurityHandler.ChangeMasterPassword(byte[])
StdSecurityHandler.ChangeMasterPassword(string)
StdSecurityHandler.GetMasterPassword()
StdSecurityHandler.SetPermission(SecurityHandler.Permission, bool)
StdSecurityHandler.ChangeRevisionNumber(int)
StdSecurityHandler.GetRevisionNumber()
StdSecurityHandler.IsUserPasswordRequired()
StdSecurityHandler.IsMasterPasswordRequired()
StdSecurityHandler.Authorize(SecurityHandler.Permission)
StdSecurityHandler.FillEncryptDict(SDFDoc)
StdSecurityHandler.GetPermission(SecurityHandler.Permission)
StdSecurityHandler.GetKeyLength()
StdSecurityHandler.GetEncryptionAlgorithmID()
StdSecurityHandler.IsModified()
StdSecurityHandler.GetHandlerDocName()
StdSecurityHandler.SetModified(bool)
StdSecurityHandler.SetModified()
StdSecurityHandler.SetEncryptMetadata(bool)
StdSecurityHandler.IsAES(Obj)
StdSecurityHandler.IsAES()
StdSecurityHandler.IsRC4()
SecurityHandler.Dispose()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()

###### Namespace: pdftron.SDF

###### Assembly: PDFNet.dll

##### Syntax

    public sealed class PDFTronCustomSecurityHandler : StdSecurityHandler, IDisposable

### Constructors

#### PDFTronCustomSecurityHandler(int)

Constructor

##### Declaration

    public PDFTronCustomSecurityHandler(int custom_id)

##### Parameters

Type | Name | Description
--- | --- | ---
int | custom_id | The user's custom ID. A random ID is suggested to make the custom security unique to the application.

##### Remarks

Please refer to PDFNet.AddPDFTronCustomHandler(int custom_id) for more details.

##### Exceptions

Type | Condition
--- | ---
PDFNetException | PDFNetException the PDFNet exception

### Implements

IDisposable