public abstract class OfficeCryptCodecHandler extends BaseCryptCodecHandler
Modifier and Type | Class and Description |
---|---|
protected static class |
OfficeCryptCodecHandler.Phase |
CIPHER_DECRYPT_MODE, CIPHER_ENCRYPT_MODE
Modifier | Constructor and Description |
---|---|
protected |
OfficeCryptCodecHandler(com.healthmarketscience.jackcess.impl.PageChannel channel,
byte[] encodingKey) |
Modifier and Type | Method and Description |
---|---|
protected static int |
bits2bytes(int bits) |
static com.healthmarketscience.jackcess.impl.CodecHandler |
create(PasswordCallback callback,
com.healthmarketscience.jackcess.impl.PageChannel channel,
Charset charset) |
void |
decodePage(ByteBuffer inPage,
ByteBuffer outPage,
int pageNumber) |
protected abstract void |
decodePageImpl(ByteBuffer inPage,
ByteBuffer outPage,
int pageNumber) |
ByteBuffer |
encodePage(ByteBuffer buffer,
int pageNumber,
int pageOffset) |
protected abstract ByteBuffer |
encodePageImpl(ByteBuffer buffer,
int pageNumber,
int pageOffset) |
protected org.bouncycastle.crypto.Digest |
getDigest() |
protected OfficeCryptCodecHandler.Phase |
getPhase() |
protected org.bouncycastle.crypto.Digest |
initCryptDigest() |
protected org.bouncycastle.crypto.Digest |
initDigest() |
protected org.bouncycastle.crypto.Digest |
initPwdDigest() |
protected byte[] |
int2bytes(int val) |
protected byte[] |
iterateHash(byte[] baseHash,
int iterations) |
protected void |
reset() |
protected abstract boolean |
verifyPassword(byte[] pwdBytes) |
applyPageNumber, blockDecrypt, blockDecryptBytes, blockEncrypt, computeCipherParams, decryptBytes, decryptBytes, decryptInit, decryptInit, encryptInit, encryptInit, fill, fixToLength, fixToLength, getBlockCipher, getCipherParams, getEncodingKey, getEncodingKey, getStreamCipher, getTempBuffer, hash, hash, hash, hash, isBlankKey, processBytesFully, readHeaderPage, streamDecrypt, streamEncrypt, toString, wrap
protected OfficeCryptCodecHandler(com.healthmarketscience.jackcess.impl.PageChannel channel, byte[] encodingKey)
public static com.healthmarketscience.jackcess.impl.CodecHandler create(PasswordCallback callback, com.healthmarketscience.jackcess.impl.PageChannel channel, Charset charset) throws IOException
IOException
protected OfficeCryptCodecHandler.Phase getPhase()
protected org.bouncycastle.crypto.Digest getDigest()
protected org.bouncycastle.crypto.Digest initDigest()
protected org.bouncycastle.crypto.Digest initPwdDigest()
protected org.bouncycastle.crypto.Digest initCryptDigest()
protected final byte[] int2bytes(int val)
protected void reset()
public void decodePage(ByteBuffer inPage, ByteBuffer outPage, int pageNumber) throws IOException
IOException
public ByteBuffer encodePage(ByteBuffer buffer, int pageNumber, int pageOffset) throws IOException
IOException
protected byte[] iterateHash(byte[] baseHash, int iterations)
protected static int bits2bytes(int bits)
protected abstract void decodePageImpl(ByteBuffer inPage, ByteBuffer outPage, int pageNumber) throws IOException
IOException
protected abstract ByteBuffer encodePageImpl(ByteBuffer buffer, int pageNumber, int pageOffset) throws IOException
IOException
protected abstract boolean verifyPassword(byte[] pwdBytes)
Copyright © 2010–2015. All rights reserved.