Class SecurityHandler
- Namespace
- Org.Apache.Pdfbox.Pdmodel.Encryption
- Assembly
- MASES.NetPDF.dll
public class SecurityHandler : JVMBridgeBase<SecurityHandler>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<SecurityHandler>SecurityHandler
- Implements
-
IJVMBridgeCoreIJVMBridgeBaseStaticIJVMBridgeBaseIJVMBridgeDefinition
- Inherited Members
-
JVMBridgeBase<SecurityHandler>.SExecuteWithSignature<TReturn>(Type, string, string, params object[])JVMBridgeBase<SecurityHandler>.IsAssignableFrom(IJavaType)JVMBridgeBase<SecurityHandler>.IsAssignableFrom<T>()JVMBridgeBase<SecurityHandler>.Execute<T>(params T[])JVMBridgeBase<SecurityHandler>.DynBridgeClazzJVMBridgeBase<SecurityHandler>.BridgeClazzJVMBridgeBase.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.IExecuteWithSignature<TNewClass, TReturn, TConverter>(string, string, params object[])JVMBridgeBase.DynBridgeInstanceJVMBridgeBase.BridgeInstanceJVMBridgeBase.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
https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_BridgeClassName.htm
public override string BridgeClassName { get; }
Property Value
CurrentAccessPermission
https://www.javadoc.io/doc/org.apache.pdfbox/pdfbox/3.0.4/org/apache/pdfbox/pdmodel/encryption/SecurityHandler.html#getCurrentAccessPermission-- https://www.javadoc.io/doc/org.apache.pdfbox/pdfbox/3.0.4/org/apache/pdfbox/pdmodel/encryption/SecurityHandler.html#setCurrentAccessPermission-org.apache.pdfbox.pdmodel.encryption.AccessPermission-
public AccessPermission CurrentAccessPermission { get; set; }
Property Value
EncryptionKey
https://www.javadoc.io/doc/org.apache.pdfbox/pdfbox/3.0.4/org/apache/pdfbox/pdmodel/encryption/SecurityHandler.html#getEncryptionKey-- https://www.javadoc.io/doc/org.apache.pdfbox/pdfbox/3.0.4/org/apache/pdfbox/pdmodel/encryption/SecurityHandler.html#setEncryptionKey-byte[]-
public byte[] EncryptionKey { get; set; }
Property Value
- byte[]
IsBridgeAbstract
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
public override bool IsBridgeStatic { get; }
Property Value
KeyLength
https://www.javadoc.io/doc/org.apache.pdfbox/pdfbox/3.0.4/org/apache/pdfbox/pdmodel/encryption/SecurityHandler.html#getKeyLength-- https://www.javadoc.io/doc/org.apache.pdfbox/pdfbox/3.0.4/org/apache/pdfbox/pdmodel/encryption/SecurityHandler.html#setKeyLength-int-
public int KeyLength { get; set; }
Property Value
Methods
Decrypt(COSBase, long, long)
public void Decrypt(COSBase arg0, long arg1, long arg2)
Parameters
Exceptions
DecryptStream(COSStream, long, long)
public void DecryptStream(COSStream arg0, long arg1, long arg2)
Parameters
Exceptions
EncryptStream(COSStream, long, int)
public void EncryptStream(COSStream arg0, long arg1, int arg2)
Parameters
Exceptions
EncryptString(COSString, long, int)
public void EncryptString(COSString arg0, long arg1, int arg2)
Parameters
Exceptions
HasProtectionPolicy()
public bool HasProtectionPolicy()
Returns
IsAES()
public bool IsAES()
Returns
IsDecryptMetadata()
public bool IsDecryptMetadata()
Returns
PrepareDocumentForEncryption(PDDocument)
public void PrepareDocumentForEncryption(PDDocument arg0)
Parameters
arg0
PDDocument
Exceptions
PrepareForDecryption(PDEncryption, COSArray, DecryptionMaterial)
public void PrepareForDecryption(PDEncryption arg0, COSArray arg1, DecryptionMaterial arg2)
Parameters
arg0
PDEncryptionarg1
COSArrayarg2
DecryptionMaterial
Exceptions
SetAES(bool)
public void SetAES(bool arg0)
Parameters
SetCustomSecureRandom(SecureRandom)
public void SetCustomSecureRandom(SecureRandom arg0)
Parameters
arg0
SecureRandom