multivalent.std.adaptor.pdf

Class SecurityHandlerPublicKey

public class SecurityHandlerPublicKey extends SecurityHandler

NOT IMPLEMENTED. Public Key encryption, as defined in Adobe's PDF Reference.

Version: $Revision: 1.2 $ $Date: 2003/08/17 08:40:57 $

Constructor Summary
SecurityHandlerPublicKey(Dict edict, COSSource coss)
SecurityHandlerPublicKey(StringBuffer id0, int R, int P, int Length, String userpassword, String ownerpassword)
Construct a Standard encryption filter with given parameters and passwords.
Method Summary
booleanauthOwner(String owner)
booleanauthUser(String user)
byte[]computeKey(String password)
byte[]decrypt(byte[] data, int off, int len)
byte[]encrypt(byte[] data, int off, int len)
byte[]getKey()
intgetR()
Returns version of standard security handler.
booleanisAuthorized()
SecurityHandlerreset(int objnum, int gennum)

Constructor Detail

SecurityHandlerPublicKey

public SecurityHandlerPublicKey(Dict edict, COSSource coss)

SecurityHandlerPublicKey

public SecurityHandlerPublicKey(StringBuffer id0, int R, int P, int Length, String userpassword, String ownerpassword)
Construct a Standard encryption filter with given parameters and passwords. Sets key for further encryption/decryption.

Method Detail

authOwner

public boolean authOwner(String owner)

authUser

public boolean authUser(String user)

computeKey

public byte[] computeKey(String password)

decrypt

public byte[] decrypt(byte[] data, int off, int len)

encrypt

public byte[] encrypt(byte[] data, int off, int len)

getKey

public byte[] getKey()

getR

public int getR()
Returns version of standard security handler.

isAuthorized

public boolean isAuthorized()

reset

public SecurityHandler reset(int objnum, int gennum)