com.healthmarketscience.jackcess.impl
Class MSISAMCryptCodecHandler

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

public class MSISAMCryptCodecHandler
extends BaseJetCryptCodecHandler

CodecHandler for MSISAM 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(PasswordCallback callback, com.healthmarketscience.jackcess.impl.PageChannel channel, Charset charset)
           
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(PasswordCallback callback,
                                                                        com.healthmarketscience.jackcess.impl.PageChannel channel,
                                                                        Charset charset)
                                                                 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.