Package org.xwiki.crypto.cipher
Interface CipherFactory
- All Superinterfaces:
CipherSpecifications
Factory creating block ciphers for encryption and decryption.
- Since:
- 5.4M1
- Version:
- $Id: 864c091a788b14f331b54143cd8ce63de448fd5f $
-
Method Summary
Modifier and TypeMethodDescriptiongetInstance
(boolean forEncryption, CipherParameters parameters) Methods inherited from interface org.xwiki.crypto.cipher.CipherSpecifications
getCipherAlgorithmName, getIVSize, getKeySize, getSupportedKeySizes, isSupportedKeySize
-
Method Details
-
getInstance
- Parameters:
forEncryption
- if true the cipher is initialised for encryption, if false for decryption.parameters
- the key and other data required by the cipher.- Returns:
- an initialized cipher ready to process data.
-