Table of Contents

Class SecurityHandler

Namespace
Org.Apache.Pdfbox.Pdmodel.Encryption
Assembly
MASES.NetPDF.dll
public class SecurityHandler : JVMBridgeBase<SecurityHandler>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
JVMBridgeBase
JVMBridgeBase<SecurityHandler>
SecurityHandler
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Inherited Members
JVMBridgeBase<SecurityHandler>.IsAssignableFrom(IJavaType)
JVMBridgeBase<SecurityHandler>.IsAssignableFrom<T>()
JVMBridgeBase<SecurityHandler>.Execute<T>(params T[])
JVMBridgeBase<SecurityHandler>.DynBridgeClazz
JVMBridgeBase<SecurityHandler>.BridgeClazz
JVMBridgeBase.RuntimeClassNameOf<T>()
JVMBridgeBase.ClassNameOf<T>()
JVMBridgeBase.ClassOf<T>()
JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)
JVMBridgeBase.MonitorEnter()
JVMBridgeBase.MonitorExit()
JVMBridgeBase.IsInstanceOf(IJavaType)
JVMBridgeBase.IsInstanceOf<T>()
JVMBridgeBase.RuntimeIsInstanceOf<T>()
JVMBridgeBase.CastTo<TNewClass>()
JVMBridgeBase.CastDirect<TNewClass>()
JVMBridgeBase.Dispose()
JVMBridgeBase.ToString()
JVMBridgeBase.GetHashCode()
JVMBridgeBase.Notify()
JVMBridgeBase.NotifyAll()
JVMBridgeBase.Wait()
JVMBridgeBase.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.IsBridgeListener

Constructors

SecurityHandler()

Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge

[Obsolete("SecurityHandler class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public SecurityHandler()

SecurityHandler(params object[])

Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class

[Obsolete("SecurityHandler class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public SecurityHandler(params object[] args)

Parameters

args object[]

Properties

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

CurrentAccessPermission

public AccessPermission CurrentAccessPermission { get; set; }

Property Value

AccessPermission

EncryptionKey

public byte[] EncryptionKey { get; set; }

Property Value

byte[]

IsBridgeAbstract

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

public override bool IsBridgeStatic { get; }

Property Value

bool

KeyLength

public int KeyLength { get; set; }

Property Value

int

Methods

Decrypt(COSBase, long, long)

public void Decrypt(COSBase arg0, long arg1, long arg2)

Parameters

arg0 COSBase

COSBase

arg1 long

long

arg2 long

long

Exceptions

IOException

DecryptStream(COSStream, long, long)

public void DecryptStream(COSStream arg0, long arg1, long arg2)

Parameters

arg0 COSStream

COSStream

arg1 long

long

arg2 long

long

Exceptions

IOException

EncryptStream(COSStream, long, int)

public void EncryptStream(COSStream arg0, long arg1, int arg2)

Parameters

arg0 COSStream

COSStream

arg1 long

long

arg2 int

int

Exceptions

IOException

EncryptString(COSString, long, int)

public void EncryptString(COSString arg0, long arg1, int arg2)

Parameters

arg0 COSString

COSString

arg1 long

long

arg2 int

int

Exceptions

IOException

HasProtectionPolicy()

public bool HasProtectionPolicy()

Returns

bool

bool

IsAES()

public bool IsAES()

Returns

bool

bool

IsDecryptMetadata()

public bool IsDecryptMetadata()

Returns

bool

bool

PrepareDocumentForEncryption(PDDocument)

public void PrepareDocumentForEncryption(PDDocument arg0)

Parameters

arg0 PDDocument

PDDocument

Exceptions

IOException

PrepareForDecryption(PDEncryption, COSArray, DecryptionMaterial)

public void PrepareForDecryption(PDEncryption arg0, COSArray arg1, DecryptionMaterial arg2)

Parameters

arg0 PDEncryption

PDEncryption

arg1 COSArray

COSArray

arg2 DecryptionMaterial

DecryptionMaterial

Exceptions

IOException

SetAES(bool)

public void SetAES(bool arg0)

Parameters

arg0 bool

bool

SetCustomSecureRandom(SecureRandom)

public void SetCustomSecureRandom(SecureRandom arg0)

Parameters

arg0 SecureRandom

SecureRandom