cete.dynamicpdf.io.encrypter
Encrypter
- Namespace: ceTe.DynamicPDF.IO
- Assemblies: ceTe.DynamicPDF.40.dll
Represents an Encrypter class used for encryption of the document.
public class Encrypter
Public Class Encrypter
Inheritance: Object → Encrypter
Licensing
This class is a DynamicPDF Generator Enterprise Edition feature. One of the following licenses is required for non-evaluation usage:
- DynamicPDF Generator for .NET Enterprise Edition
- DynamicPDF Merger for .NET Enterprise Edition
- DynamicPDF ReportWriter for .NET Enterprise Edition
- DynamicPDF Core Suite for .NET Enterprise Edition
Constructors
Encrypter(Byte[], Byte[], Byte[], Int32)
Initializes a new instance of the Encrypter class.
public Encrypter(Byte[] owner, Byte[] user, Byte[] encryptionKey, int privileges)
Public Sub New (owner As Byte(), user As Byte(), encryptionKey As Byte(), privileges As Integer)
Parameters
- owner: Byte[]
Encrypted owner password.
- user: Byte[]
Encrypted user password.
- encryptionKey: Byte[]
Encryption key.
- privileges: Int32
PDF value of privileges.
Methods
Draw(DocumentWriter)
Draws the encrypter dictionary to the given DocumentWriter object.
public void Draw(DocumentWriter writer)
Sub Draw(writer As DocumentWriter)
Parameters
- writer: DocumentWriter
DocumentWriter object to receive the output.
Encrypt(Byte)
Encrypts the byte.
public byte Encrypt(byte data)
Function Encrypt(data As Byte) As Byte
Parameters
- data: Byte
Byte to encrypt.
Returns
An encrypted byte.
Encrypt(Byte[])
Encrypts the data found in the data byte array and returns the output.
public Byte[] Encrypt(Byte[] data)
Function Encrypt(data As Byte()) As Byte()
Parameters
- data: Byte[]
Data to encrypt.
Returns
An encrypted byte array.
Encrypt(Stream, Byte[], Int32, Int32)
Encrypts the data found in the data byte array to the output stream.
public void Encrypt(Stream stream, Byte[] data, int start, int length)
Sub Encrypt(stream As Stream, data As Byte(), start As Integer, length As Integer)
Parameters
- stream: Stream
The output stream to recieve the encrypted data.
- data: Byte[]
Data to encrypt.
- start: Int32
Start of the data to encrypt.
- length: Int32
Length of the data to encrypt.
Equals(Object)
Determines whether the specified Object is equal to the current Object . (Inherited from Object)
public bool Equals(Object obj)
Function Equals(obj As Object) As Boolean
Parameters
- obj: Object
The Object to compare with the current Object .
Returns
true if the specified Object is equal to the current Object ; otherwise, false.
GetHashCode()
Serves as a hash function for a particular type. (Inherited from Object)
public int GetHashCode()
Function GetHashCode() As Integer
Returns
A hash code for the current Object .
GetType()
Gets the Type of the current instance. (Inherited from Object)
public Type GetType()
Function GetType() As Type
Returns
The Type instance that represents the exact runtime type of the current instance.
Reset(Int32)
Resets the encryptor.
public void Reset(int objectNumber)
Sub Reset(objectNumber As Integer)
Parameters
- objectNumber: Int32
ToString()
Returns a String that represents the current Object . (Inherited from Object)
public string ToString()
Function ToString() As String
Returns
A String that represents the current Object .