com.lowagie.text.pdf
Class PdfEncryption
java.lang.Object
com.lowagie.text.pdf.PdfEncryption
public class PdfEncryption
- extends Object
- Author:
- Paulo Soares (psoares@consiste.pt), Kazuya Ujihara
Method Summary |
static byte[] |
createDocumentId()
|
static PdfObject |
createInfoId(byte[] id)
|
void |
encryptRC4(byte[] data)
|
void |
encryptRC4(byte[] dataIn,
byte[] dataOut)
|
void |
encryptRC4(byte[] data,
int off,
int len)
|
void |
encryptRC4(byte[] dataIn,
int off,
int len,
byte[] dataOut)
|
PdfDictionary |
getEncryptionDictionary()
|
PdfObject |
getFileID()
|
void |
prepareKey()
|
void |
prepareRC4Key(byte[] key)
|
void |
prepareRC4Key(byte[] key,
int off,
int len)
|
void |
setHashKey(int number,
int generation)
|
void |
setupAllKeys(byte[] userPassword,
byte[] ownerPassword,
int permissions,
boolean strength128Bits)
|
void |
setupAllKeys(byte[] userPassword,
byte[] ownerPassword,
int permissions,
int keylength,
int revision)
|
void |
setupByOwnerPassword(byte[] documentID,
byte[] ownerPassword,
byte[] userKey,
byte[] ownerKey,
int permissions,
boolean strength128Bits)
|
void |
setupByOwnerPassword(byte[] documentID,
byte[] ownerPassword,
byte[] userKey,
byte[] ownerKey,
int permissions,
int keylength,
int revision)
|
void |
setupByUserPassword(byte[] documentID,
byte[] userPassword,
byte[] ownerKey,
int permissions,
boolean strength128Bits)
|
void |
setupByUserPassword(byte[] documentID,
byte[] userPassword,
byte[] ownerKey,
int permissions,
int keylength,
int revision)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PdfEncryption
public PdfEncryption()
PdfEncryption
public PdfEncryption(PdfEncryption enc)
setupAllKeys
public void setupAllKeys(byte[] userPassword,
byte[] ownerPassword,
int permissions,
int keylength,
int revision)
setupAllKeys
public void setupAllKeys(byte[] userPassword,
byte[] ownerPassword,
int permissions,
boolean strength128Bits)
createDocumentId
public static byte[] createDocumentId()
setupByUserPassword
public void setupByUserPassword(byte[] documentID,
byte[] userPassword,
byte[] ownerKey,
int permissions,
boolean strength128Bits)
setupByUserPassword
public void setupByUserPassword(byte[] documentID,
byte[] userPassword,
byte[] ownerKey,
int permissions,
int keylength,
int revision)
setupByOwnerPassword
public void setupByOwnerPassword(byte[] documentID,
byte[] ownerPassword,
byte[] userKey,
byte[] ownerKey,
int permissions,
boolean strength128Bits)
setupByOwnerPassword
public void setupByOwnerPassword(byte[] documentID,
byte[] ownerPassword,
byte[] userKey,
byte[] ownerKey,
int permissions,
int keylength,
int revision)
prepareKey
public void prepareKey()
setHashKey
public void setHashKey(int number,
int generation)
createInfoId
public static PdfObject createInfoId(byte[] id)
getEncryptionDictionary
public PdfDictionary getEncryptionDictionary()
prepareRC4Key
public void prepareRC4Key(byte[] key)
prepareRC4Key
public void prepareRC4Key(byte[] key,
int off,
int len)
encryptRC4
public void encryptRC4(byte[] dataIn,
int off,
int len,
byte[] dataOut)
encryptRC4
public void encryptRC4(byte[] data,
int off,
int len)
encryptRC4
public void encryptRC4(byte[] dataIn,
byte[] dataOut)
encryptRC4
public void encryptRC4(byte[] data)
getFileID
public PdfObject getFileID()
Copyright © 2006-2007 EGIZ - E-Government Innovationszentrum. All Rights Reserved.