|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.healthmarketscience.jackcess.impl.BaseCryptCodecHandler
public abstract class BaseCryptCodecHandler
Common CodecHandler support.
| Field Summary | |
|---|---|
static boolean |
CIPHER_DECRYPT_MODE
|
static boolean |
CIPHER_ENCRYPT_MODE
|
| Method Summary | |
|---|---|
static byte[] |
applyPageNumber(byte[] key,
int offset,
int pageNumber)
Returns a copy of the given key with the bytes of the given pageNumber applied at the given offset using XOR. |
static byte[] |
fill(byte[] bytes,
int value)
Fills the given array with the given value and returns it. |
static byte[] |
fixToLength(byte[] bytes,
int len)
|
static byte[] |
fixToLength(byte[] bytes,
int len,
int padByte)
|
static byte[] |
hash(Digest digest,
byte[] bytes)
Hashes the given bytes using the given digest and returns the result. |
static byte[] |
hash(Digest digest,
byte[] bytes1,
byte[] bytes2)
Hashes the given bytes1 and bytes2 using the given digest and returns the result. |
static byte[] |
hash(Digest digest,
byte[] bytes1,
byte[] bytes2,
int resultLen)
Hashes the given bytes1 and bytes2 using the given digest and returns the hash fixed to the given length. |
static byte[] |
hash(Digest digest,
byte[] bytes,
int resultLen)
Hashes the given bytes using the given digest and returns the hash fixed to the given length. |
String |
toString()
|
static ByteBuffer |
wrap(byte[] bytes)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.healthmarketscience.jackcess.impl.CodecHandler |
|---|
canDecodeInline, canEncodePartialPage, decodePage, encodePage |
| Field Detail |
|---|
public static final boolean CIPHER_DECRYPT_MODE
public static final boolean CIPHER_ENCRYPT_MODE
| Method Detail |
|---|
public String toString()
toString in class Object
public static byte[] applyPageNumber(byte[] key,
int offset,
int pageNumber)
public static byte[] hash(Digest digest,
byte[] bytes)
public static byte[] hash(Digest digest,
byte[] bytes1,
byte[] bytes2)
public static byte[] hash(Digest digest,
byte[] bytes,
int resultLen)
public static byte[] hash(Digest digest,
byte[] bytes1,
byte[] bytes2,
int resultLen)
public static byte[] fixToLength(byte[] bytes,
int len)
public static byte[] fixToLength(byte[] bytes,
int len,
int padByte)
public static ByteBuffer wrap(byte[] bytes)
public static byte[] fill(byte[] bytes,
int value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||