Top Fields Constructors Methods
org.hsqldb.persist

public Class Crypto

extends Object
Class Inheritance
Imports
java.io.IOException, .InputStream, .OutputStream, java.security.InvalidAlgorithmParameterException, .InvalidKeyException, .NoSuchAlgorithmException, .NoSuchProviderException, javax.crypto.BadPaddingException, .Cipher, .CipherInputStream, .CipherOutputStream, .IllegalBlockSizeException, .KeyGenerator, .NoSuchPaddingException, .SecretKey, .ShortBufferException, javax.crypto.spec.IvParameterSpec, .SecretKeySpec, org.hsqldb.error.Error, .ErrorCode, org.hsqldb.lib.StringConverter

Author
Fred Toussi (fredt@users dot sourceforge.net)
Since
1.9.0
Version
2.4.1

Field Summary

Modifier and TypeField and Description
pack-priv final Cipher
pack-priv final Cipher
pack-priv final IvParameterSpec
pack-priv final SecretKeySpec
pack-priv final Cipher
pack-priv final Cipher

Constructor Summary

AccessConstructor and Description
public
Crypto(String keyString, String ivString, String cipherName, String provider)

Method Summary

Modifier and TypeMethod and Description
public synchronized int
decode(byte[] source, int sourceOffset, int length, byte[] dest, int destOffset)

public synchronized int
encode(byte[] source, int sourceOffset, int length, byte[] dest, int destOffset)

public synchronized int
getEncodedSize(int size)

public synchronized InputStream
public static byte[]
getNewKey(String cipherName, String provider)

public synchronized OutputStream
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

inCipherback to summary
pack-priv final Cipher inCipher
inStreamCipherback to summary
pack-priv final Cipher inStreamCipher
ivSpecback to summary
pack-priv final IvParameterSpec ivSpec
keyback to summary
pack-priv final SecretKeySpec key
outCipherback to summary
pack-priv final Cipher outCipher
outStreamCipherback to summary
pack-priv final Cipher outStreamCipher

Constructor Detail

Cryptoback to summary
public Crypto(String keyString, String ivString, String cipherName, String provider)

Method Detail

decodeback to summary
public synchronized int decode(byte[] source, int sourceOffset, int length, byte[] dest, int destOffset)
encodeback to summary
public synchronized int encode(byte[] source, int sourceOffset, int length, byte[] dest, int destOffset)
getEncodedSizeback to summary
public synchronized int getEncodedSize(int size)
getInputStreamback to summary
public synchronized InputStream getInputStream(InputStream in)
getNewKeyback to summary
public static byte[] getNewKey(String cipherName, String provider)
getOutputStreamback to summary
public synchronized OutputStream getOutputStream(OutputStream out)