com.healthmarketscience.jackcess.impl
Class JetCryptCodecHandler

java.lang.Object
  extended by com.healthmarketscience.jackcess.impl.BaseCryptCodecHandler
      extended by com.healthmarketscience.jackcess.impl.BaseJetCryptCodecHandler
          extended by com.healthmarketscience.jackcess.impl.JetCryptCodecHandler
All Implemented Interfaces:
com.healthmarketscience.jackcess.impl.CodecHandler

public class JetCryptCodecHandler
extends BaseJetCryptCodecHandler

CodecHandler for Jet databases.

Author:
Vladimir Berezniker

Field Summary
 
Fields inherited from class com.healthmarketscience.jackcess.impl.BaseCryptCodecHandler
CIPHER_DECRYPT_MODE, CIPHER_ENCRYPT_MODE
 
Method Summary
protected  org.bouncycastle.crypto.params.KeyParameter computeCipherParams(int pageNumber)
          Generates the cipher parameters for the given page number.
static com.healthmarketscience.jackcess.impl.CodecHandler create(com.healthmarketscience.jackcess.impl.PageChannel channel)
           
protected  int getMaxEncodedPage()
           
 
Methods inherited from class com.healthmarketscience.jackcess.impl.BaseJetCryptCodecHandler
canDecodeInline, canEncodePartialPage, decodePage, encodePage, getStreamCipher
 
Methods inherited from class com.healthmarketscience.jackcess.impl.BaseCryptCodecHandler
applyPageNumber, blockDecrypt, blockDecryptBytes, blockEncrypt, decryptBytes, decryptBytes, decryptInit, decryptInit, encryptInit, encryptInit, fill, fixToLength, fixToLength, getBlockCipher, getCipherParams, getEncodingKey, getEncodingKey, getTempBuffer, hash, hash, hash, hash, isBlankKey, processBytesFully, readHeaderPage, streamDecrypt, streamEncrypt, toString, wrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

create

public static com.healthmarketscience.jackcess.impl.CodecHandler create(com.healthmarketscience.jackcess.impl.PageChannel channel)
                                                                 throws IOException
Throws:
IOException

computeCipherParams

protected org.bouncycastle.crypto.params.KeyParameter computeCipherParams(int pageNumber)
Description copied from class: BaseCryptCodecHandler
Generates the cipher parameters for the given page number.

Specified by:
computeCipherParams in class BaseCryptCodecHandler

getMaxEncodedPage

protected int getMaxEncodedPage()
Specified by:
getMaxEncodedPage in class BaseJetCryptCodecHandler


Copyright © 2010-2017 Health Market Science. All Rights Reserved.