intarsys PDF library API

de.intarsys.pdf.crypt
Class COSEncryption

java.lang.Object
  extended by de.intarsys.pdf.cos.COSBasedObject
      extended by de.intarsys.pdf.crypt.COSEncryption
All Implemented Interfaces:
ICOSObjectListener, IAttributeSupport

public class COSEncryption
extends COSBasedObject

The definition of the document encryption.

This object contains the state information defining the context for the document encryption.


Nested Class Summary
static class COSEncryption.MetaClass
          The meta class implementation
 
Field Summary
static COSName CN_IDENTITY
           
static COSName DK_CF
           
static COSName DK_EFF
           
static COSName DK_Filter
           
static COSName DK_Length
           
static COSName DK_StmF
           
static COSName DK_StrF
           
static COSName DK_SubFilter
           
static COSName DK_V
           
static COSEncryption.MetaClass META
          The meta class instance
 
Method Summary
 COSDictionary getCryptFilterDict(COSName name)
           
 COSName getCryptFilterNameFile()
           
 COSName getCryptFilterNameStream()
           
 COSName getCryptFilterNameString()
           
static COSEncryption getEncryptionIn(STXRefSection xRefSection)
           
 COSName getFilter()
           
 int getLength()
          The length of the encryption key, in bits.
 int getVersion()
           
 void setEncryptionIn(STXRefSection xRefSection)
           
 
Methods inherited from class de.intarsys.pdf.cos.COSBasedObject
changed, cosGetArray, cosGetDict, cosGetDoc, cosGetField, cosGetObject, cosGetStream, cosHasField, cosRemoveField, cosSetField, getAttribute, getFieldBoolean, getFieldDate, getFieldFixed, getFieldFixedArray, getFieldInt, getFieldMLString, getFieldString, invalidateCaches, removeAttribute, setAttribute, setFieldBoolean, setFieldFixed, setFieldInt, setFieldMLString, setFieldName, setFieldObject, setFieldString, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DK_Filter

public static final COSName DK_Filter

DK_SubFilter

public static final COSName DK_SubFilter

DK_V

public static final COSName DK_V

DK_Length

public static final COSName DK_Length

DK_CF

public static final COSName DK_CF

CN_IDENTITY

public static final COSName CN_IDENTITY

DK_StmF

public static final COSName DK_StmF

DK_EFF

public static final COSName DK_EFF

DK_StrF

public static final COSName DK_StrF

META

public static final COSEncryption.MetaClass META
The meta class instance

Method Detail

getEncryptionIn

public static COSEncryption getEncryptionIn(STXRefSection xRefSection)

setEncryptionIn

public void setEncryptionIn(STXRefSection xRefSection)

getFilter

public COSName getFilter()

getLength

public int getLength()
The length of the encryption key, in bits. The value must be a multiple of 8, in the range 40 to 128. Default value: 40.

Returns:
length of the encryption key, in bits

getCryptFilterNameString

public COSName getCryptFilterNameString()

getCryptFilterNameStream

public COSName getCryptFilterNameStream()

getCryptFilterNameFile

public COSName getCryptFilterNameFile()

getCryptFilterDict

public COSDictionary getCryptFilterDict(COSName name)

getVersion

public int getVersion()

intarsys PDF library API

Copyright © 2006 intarsys consulting GmbH. All Rights Reserved.