multivalent.std.adaptor.pdf
public abstract class SecurityHandler extends Object implements Cloneable
Version: $Revision: 1.6 $ $Date: 2003/08/17 08:40:17 $
Field Summary | |
---|---|
static SecurityHandler | IDENTITY |
Constructor Summary | |
---|---|
SecurityHandler(Dict edict, COSSource coss) |
Method Summary | |
---|---|
abstract boolean | authOwner(String owner) |
abstract boolean | authUser(String user) |
Object | clone() |
abstract byte[] | computeKey(String password) |
abstract byte[] | decrypt(byte[] data, int off, int len)
Decrypts stream data of object objnum with generation gennum.
|
abstract byte[] | encrypt(byte[] data, int off, int len)
Encrypts data of object objnum with generation gennum.
|
static SecurityHandler | getInstance(String filter, Dict shdict, COSSource coss)
java.lang.reflect.Constructor#newInstance(Object[]) for a description of the exceptions thrown. |
abstract byte[] | getKey() CryptFilter may take key from a security handler and use in Adobe algorithms. |
abstract boolean | isAuthorized() Returns true if a valid decryption password, either user or owner, been set? |
static void | register(String filterName, String className)
Registers the security handler className, which must be a subclass of Encrypt, for filterName.
|
abstract SecurityHandler | reset(int objnum, int gennum) Resets for decrypting/encrypting another subobject of object at given number. |
Returns: handle to decrypted data, which is same handle as the passed data.
Returns: handle to encrypted data, which is same handle as the passed data.
Throws: UnsupportedOperationException if filter not registered ClassNotFoundException if class name registered to filter is not the CLASSPATH ParseException if can't read parameters for filter
register("Standard", "multivalent.std.adaptor.pdf.SecurityHandlerStandard")
.